File tree Expand file tree Collapse file tree 4 files changed +67
-7
lines changed
src/Stratis.VS.StratisEVM Expand file tree Collapse file tree 4 files changed +67
-7
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,16 @@ public void RunStarted(object automationObject,
41
41
{
42
42
// Display a form to the user. The form collects
43
43
// input for the custom message.
44
- inputForm = new SolidityProjectWizardUserInputForm ( ) ;
45
- inputForm . ShowDialog ( ) ;
44
+ // inputForm = new SolidityProjectWizardUserInputForm();
45
+ // inputForm.ShowDialog();
46
46
47
- customMessage = SolidityProjectWizardUserInputForm . CustomMessage ;
47
+ // customMessage = SolidityProjectWizardUserInputForm.CustomMessage;
48
48
49
+ Window1 window1 = new Window1 ( ) ;
50
+ window1 . ShowDialog ( ) ;
49
51
// Add custom parameters.
50
- replacementsDictionary . Add ( "$custommessage$" ,
51
- customMessage ) ;
52
+ // replacementsDictionary.Add("$custommessage$",
53
+ // customMessage);
52
54
}
53
55
catch ( Exception ex )
54
56
{
Original file line number Diff line number Diff line change 63
63
<Compile Include =" SolidityLanguageClient.cs" />
64
64
<Compile Include =" StratisEVMPackage.cs" />
65
65
<Compile Include =" StratisEVMPackageIds.cs" />
66
+ <Compile Include =" Window1.xaml.cs" >
67
+ <DependentUpon >Window1.xaml</DependentUpon >
68
+ </Compile >
66
69
<Compile Include =" VSUtil.cs" />
67
70
</ItemGroup >
68
71
<ItemGroup >
94
97
</None >
95
98
</ItemGroup >
96
99
<ItemGroup >
100
+ <Reference Include =" PresentationCore" />
101
+ <Reference Include =" PresentationFramework" />
97
102
<Reference Include =" System" />
98
103
<Reference Include =" System.Drawing" />
99
- <Reference Include =" System.Windows.Forms" />
104
+ <Reference Include =" System.Xaml" />
105
+ <Reference Include =" WindowsBase" />
100
106
</ItemGroup >
101
107
<ItemGroup >
102
108
<PackageReference Include =" Microsoft.VisualStudio.LanguageServer.Client" >
167
173
<ManifestResourceName >StratisEVMPackage</ManifestResourceName >
168
174
</EmbeddedResource >
169
175
</ItemGroup >
170
- <ItemGroup />
176
+ <ItemGroup >
177
+ <Page Include =" Window1.xaml" >
178
+ <SubType >Designer</SubType >
179
+ <Generator >MSBuild:Compile</Generator >
180
+ </Page >
181
+ </ItemGroup >
171
182
<Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
172
183
<Import Project =" $(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition =" '$(VSToolsPath)' != ''" />
173
184
<!--
Original file line number Diff line number Diff line change
1
+ <VS : DialogWindow x : Class =" Stratis.VS.StratisEVM.Window1"
2
+ xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
+ xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
4
+ xmlns : VS =" clr-namespace:Microsoft.VisualStudio.PlatformUI"
5
+ Title =" Window1" Height =" 100" Width =" 300" >
6
+ <Window .Resources>
7
+ <SolidColorBrush x : Key =" MyBrush" Color =" Gold" />
8
+ <Style TargetType =" Border" x : Key =" PageBackground" >
9
+ <Setter Property =" BorderBrush" Value =" Blue" />
10
+ <Setter Property =" BorderThickness" Value =" 5" />
11
+ </Style >
12
+ </Window .Resources>
13
+ <Border Style =" {StaticResource PageBackground}" >
14
+ <StackPanel >
15
+ <TextBlock Text =" Hello" />
16
+ </StackPanel >
17
+ </Border >
18
+ </VS : DialogWindow >
19
+
Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using System . Collections . Generic ;
3
+ using System . Linq ;
4
+ using System . Text ;
5
+ using System . Threading . Tasks ;
6
+ using System . Windows ;
7
+ using System . Windows . Controls ;
8
+ using System . Windows . Data ;
9
+ using System . Windows . Documents ;
10
+ using System . Windows . Input ;
11
+ using System . Windows . Media ;
12
+ using System . Windows . Media . Imaging ;
13
+ using System . Windows . Navigation ;
14
+ using System . Windows . Shapes ;
15
+ using Microsoft . VisualStudio . PlatformUI ;
16
+ namespace Stratis . VS . StratisEVM
17
+ {
18
+ /// <summary>
19
+ /// Interaction logic for UserControl1.xaml
20
+ /// </summary>
21
+ public partial class Window1 : DialogWindow
22
+ {
23
+ public Window1 ( )
24
+ {
25
+ InitializeComponent ( ) ;
26
+ }
27
+ }
28
+ }
You can’t perform that action at this time.
0 commit comments