public static int RunSTAThread(ParameterizedThreadStart Method, object Parameter) { IronThread IT = new IronThread(Method, Parameter); IT.STAMode = true; return(IT.StartThread()); }
public static int RunSTAThread(ThreadStart Method) { IronThread IT = new IronThread(Method); IT.STAMode = true; return(IT.StartThread()); }
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); }
public static int Run(ParameterizedThreadStart Method, object Parameter) { IronThread IT = new IronThread(Method, Parameter); return IT.StartThread(); }
//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(); }
//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()); }
public void ShowUi() { IronThread.Run(ShowUiObject, this); }
internal static void StartModuleOnUrl(string ModuleDisplayName, string Url) { IronThread.RunSTAThread(StartModuleOnUrl, new List <object> { ModuleDisplayName, Url }); }
internal static void StartModuleOnFinding(string ModuleDisplayName, int FindingId) { IronThread.RunSTAThread(StartModuleOnFinding, new List <object> { ModuleDisplayName, FindingId }); }
internal static void StartModuleOnSession(string ModuleDisplayName, string Source, int LogId) { IronThread.RunSTAThread(StartModuleOnSession, new List <object> { ModuleDisplayName, Source, LogId }); }
internal static void StartModule(string ModuleDisplayName) { IronThread.RunSTAThread(StartModule, new List <object> { ModuleDisplayName }); }
public static int RunSTAThread(ParameterizedThreadStart Method, object Parameter) { IronThread IT = new IronThread(Method, Parameter); IT.STAMode = true; return IT.StartThread(); }
public static int RunSTAThread(ThreadStart Method) { IronThread IT = new IronThread(Method); IT.STAMode = true; return IT.StartThread(); }