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

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

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