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

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

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