Example #1
0
        public static int RunSTAThread(ParameterizedThreadStart Method, object Parameter)
        {
            IronThread IT = new IronThread(Method, Parameter);

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

            IT.STAMode = true;
            return(IT.StartThread());
        }
Example #3
0
 public void StopModule()
 {
     try
     {
         IronThread.Stop(this.ThreadId);
     }
     catch { }
 }
Example #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);
 }
Example #5
0
 public static int Run(ParameterizedThreadStart Method, object Parameter)
 {
     IronThread IT = new IronThread(Method, Parameter);
     return IT.StartThread();
 }
Example #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();
 }
Example #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());
        }
Example #8
0
 public void ShowUi()
 {
     IronThread.Run(ShowUiObject, this);
 }
Example #9
0
 internal static void StartModuleOnUrl(string ModuleDisplayName, string Url)
 {
     IronThread.RunSTAThread(StartModuleOnUrl, new List <object> {
         ModuleDisplayName, Url
     });
 }
Example #10
0
 internal static void StartModuleOnFinding(string ModuleDisplayName, int FindingId)
 {
     IronThread.RunSTAThread(StartModuleOnFinding, new List <object> {
         ModuleDisplayName, FindingId
     });
 }
Example #11
0
 internal static void StartModuleOnSession(string ModuleDisplayName, string Source, int LogId)
 {
     IronThread.RunSTAThread(StartModuleOnSession, new List <object> {
         ModuleDisplayName, Source, LogId
     });
 }
Example #12
0
 internal static void StartModule(string ModuleDisplayName)
 {
     IronThread.RunSTAThread(StartModule, new List <object> {
         ModuleDisplayName
     });
 }
Example #13
0
 public static int RunSTAThread(ParameterizedThreadStart Method, object Parameter)
 {
     IronThread IT = new IronThread(Method, Parameter);
     IT.STAMode = true;
     return IT.StartThread();
 }
Example #14
0
 public static int RunSTAThread(ThreadStart Method)
 {
     IronThread IT = new IronThread(Method);
     IT.STAMode = true;
     return IT.StartThread();
 }