static void Main() { //处理未捕获的异常 Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException); //处理UI线程异常 Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException); //处理非UI线程异常 AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); ConfigBll.GetInst().LoadConfig(); Application.Run(FormMain.GetInst()); // Application.Run(new FormTest()); }
private void myGridView1_DoubleClick(object sender, EventArgs e) { FormMain.GetInst().CurrentTask = this.FindSelect(); this.Close(); }
/// <summary> /// 选择 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void toolStripButton4_Click(object sender, EventArgs e) { FormMain.GetInst().CurrentTask = this.FindSelect(); this.Close(); }