private static void Application_Idle(object sender, EventArgs e) { Application.Idle -= new EventHandler(Application_Idle); if (context.MainForm == null) { Form_Main mw = new Form_Main(); context.MainForm = mw; mw.Init(); //主窗体要做的初始化事情在这里,该方法在主窗体里应该申明为public Form_Splash sp = (Form_Splash)context.Tag; //拆箱 mw.Show(); //启动主程序窗体 sp.Close(); //关闭启动窗体 } }
public Form_MainShow(Form_Main formmain) { formMain = formmain; InitializeComponent(); ComWithSqliteServer = new CDM.Sqlite.ComWithSqlite(); zedGraphUtilsDes = new ZedGraghUtils(zedGraphControl1, this); zedGraphUtilsTem = new ZedGraghUtils(zedGraphControl2, this) { DataDown = 10, DataUp = 50, }; zedGraphUtilsDriveGain = new ZedGraghUtils(zedGraphControl3, this) { DataDown = 0.5f, DataUp = 3, }; SaveDatas = new List <CDM.Sqlite.GatherSave>(); }
public Form_MainShow(Form_Main formmain) { formMain = formmain; InitializeComponent(); }