Ejemplo n.º 1
0
        public static int RunSTAThread(ParameterizedThreadStart Method, object Parameter)
        {
            IronThread IT = new IronThread(Method, Parameter);

            IT.STAMode = true;
            return(IT.StartThread());
        }
Ejemplo n.º 2
0
        public static int RunSTAThread(ThreadStart Method)
        {
            IronThread IT = new IronThread(Method);

            IT.STAMode = true;
            return(IT.StartThread());
        }
Ejemplo n.º 3
0
 public void StopModule()
 {
     try
     {
         IronThread.Stop(this.ThreadId);
     }
     catch { }
 }
Ejemplo n.º 4
0
 private void RunModuleBtn_Click(object sender, EventArgs e)
 {
     this.ProgressBarPanel.Visible = true;
     this.StatusLbl.Text           = "Loading Module.....";
     //this.ProgressPB.PerformStep();
     this.ModuleAuthroized = true;
     IronThread.Run(Module.LoadModule, this.DisplayedModule);
 }
Ejemplo n.º 5
0
 public static int Run(ParameterizedThreadStart Method, object Parameter)
 {
     IronThread IT = new IronThread(Method, Parameter);
     return IT.StartThread();
 }
Ejemplo n.º 6
0
 //IronRuby must use IronThread.Run(lambda{method_name}) for parameter less methods
 //IronRuby must use IronThread.Run(lambda{method_name('parameter')}) for methods with parameter
 public static int Run(ThreadStart Method)
 {
     IronThread IT = new IronThread(Method);
     return IT.StartThread();
 }
Ejemplo n.º 7
0
        //IronRuby must use IronThread.Run(lambda{method_name}) for parameter less methods
        //IronRuby must use IronThread.Run(lambda{method_name('parameter')}) for methods with parameter
        public static int Run(ThreadStart Method)
        {
            IronThread IT = new IronThread(Method);

            return(IT.StartThread());
        }
Ejemplo n.º 8
0
 public void ShowUi()
 {
     IronThread.Run(ShowUiObject, this);
 }
Ejemplo n.º 9
0
 internal static void StartModuleOnUrl(string ModuleDisplayName, string Url)
 {
     IronThread.RunSTAThread(StartModuleOnUrl, new List <object> {
         ModuleDisplayName, Url
     });
 }
Ejemplo n.º 10
0
 internal static void StartModuleOnFinding(string ModuleDisplayName, int FindingId)
 {
     IronThread.RunSTAThread(StartModuleOnFinding, new List <object> {
         ModuleDisplayName, FindingId
     });
 }
Ejemplo n.º 11
0
 internal static void StartModuleOnSession(string ModuleDisplayName, string Source, int LogId)
 {
     IronThread.RunSTAThread(StartModuleOnSession, new List <object> {
         ModuleDisplayName, Source, LogId
     });
 }
Ejemplo n.º 12
0
 internal static void StartModule(string ModuleDisplayName)
 {
     IronThread.RunSTAThread(StartModule, new List <object> {
         ModuleDisplayName
     });
 }
Ejemplo n.º 13
0
 public static int RunSTAThread(ParameterizedThreadStart Method, object Parameter)
 {
     IronThread IT = new IronThread(Method, Parameter);
     IT.STAMode = true;
     return IT.StartThread();
 }
Ejemplo n.º 14
0
 public static int RunSTAThread(ThreadStart Method)
 {
     IronThread IT = new IronThread(Method);
     IT.STAMode = true;
     return IT.StartThread();
 }