private void FrmMain_Load(object sender, EventArgs e) { //disabled the maximize FormStyleUtil.RemoveMaximizeMenu(this); //load targetdb info LoadTargetDBINFO(); //dbserver list represent ViewManager.Load(new DBList()); }
private void FrmMain_Load(object sender, System.EventArgs e) { //disabled the maximize FormStyleUtil.RemoveMaximizeMenu(this); //加载配置 //创建并开启启动计划 var taskController = new TaskController(); taskController.BootTask(); //启动后开始执行 button2.PerformClick(); }
/// <summary> /// 加载本地盘符 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MainForm_Load(object sender, EventArgs e) { //disabled the maximize FormStyleUtil.RemoveMaximizeMenu(this); ConfigController configCtrl = new ConfigController(); Config config = configCtrl.Get(); DriveInfo[] allDrives = DriveInfo.GetDrives(); foreach (DriveInfo d in allDrives) { if (d.IsReady) { this.comboBox1.Items.Add(d.Name); if (d.Name.Equals(config.Volume)) { this.comboBox1.SelectedItem = d.Name; } } } this.textBox1.Text = config.Baseline; }
private void FrmMain_Load(object sender, System.EventArgs e) { //disabled the maximize FormStyleUtil.RemoveMaximizeMenu(this); ViewManager.Load(new Configure()); }