4
4
using System . ComponentModel ;
5
5
using System . Linq ;
6
6
using System . Reflection ;
7
- using System . Windows . Forms ;
8
- using static InteropAssembly . Demant__46ServiceFoo ;
9
7
10
-
11
- namespace OpenTap . Plugins . LabviewInterop
8
+ namespace OpenTap . LabView
12
9
{
13
- [ Display ( "Load Assembly" , Group : "OpenTap.Plugins.LabviewInterop " , Description : "Load Assembly from Labview VI Interop" ) ]
14
- public class AssemblyLoaderStep : TestStep
10
+ [ Display ( "Load Assembly" , Group : "LabVIEW " , Description : "Load Assembly from Labview VI Interop" ) ]
11
+ class AssemblyLoaderStep : TestStep
15
12
{
16
13
#region Settings
17
14
// ToDo: Add property here for each parameter the end user should be able to change.
@@ -27,17 +24,13 @@ public class ListItem
27
24
[ Browsable ( true ) ]
28
25
public void Button_Clicked ( )
29
26
{
30
- OpenFileDialog openFileDialog1 = new OpenFileDialog ( ) ;
31
- openFileDialog1 . Filter = "Assembly Files (*.dll, *.exe)|*.dll;*.exe|All files (*.*)|*.*" ;
32
- openFileDialog1 . FilterIndex = 1 ;
33
- openFileDialog1 . RestoreDirectory = true ;
27
+
34
28
35
- if ( openFileDialog1 . ShowDialog ( ) == DialogResult . OK )
36
29
{
37
30
_listOfAvailableText . Clear ( ) ;
38
31
_listOfAvailableValues . Clear ( ) ;
39
32
40
- assemblyPath = openFileDialog1 . FileName ;
33
+ assemblyPath = "test.dll" ;
41
34
42
35
// Load the assembly
43
36
_assembly = Assembly . LoadFrom ( assemblyPath ) ;
@@ -148,7 +141,7 @@ public override void Run()
148
141
149
142
if ( selectedMethod . GetParameters ( ) . Count ( x => x . ParameterType . Name == "Qry" ) != 0 )
150
143
{
151
- objList . Add ( new Qry ( ) ) ;
144
+ // objList.Add(new Qry());
152
145
}
153
146
154
147
object [ ] parameters2 = getParameters ( selectedMethod , objList . ToArray ( ) ) ;
0 commit comments