示例#1
0
文件: FrmMain.cs 项目: hst-bridge/BBS
        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());
        }
示例#2
0
        private void FrmMain_Load(object sender, System.EventArgs e)
        {
            //disabled the maximize
            FormStyleUtil.RemoveMaximizeMenu(this);
            //加载配置

            //创建并开启启动计划
            var taskController = new TaskController();

            taskController.BootTask();

            //启动后开始执行
            button2.PerformClick();
        }
示例#3
0
        /// <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;
        }
示例#4
0
 private void FrmMain_Load(object sender, System.EventArgs e)
 {
     //disabled the maximize
     FormStyleUtil.RemoveMaximizeMenu(this);
     ViewManager.Load(new Configure());
 }