Esempio n. 1
0
        public FormMain(AccessDataBase.Model.Manager model)
        {
            InitializeComponent();
            this.model = model;
            this.CenterToScreen();
            this.WindowState = FormWindowState.Maximized;
            this.Icon = GetResourcesFile.getSystemIco();
            this.notifyIcon1.Icon = GetResourcesFile.getSystemIco();
            this.notifyIcon1.Text = this.Text;

            this.toolStripStatusLabel2.Text = "";
            this.toolStripStatusLabel3.Text = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");
            this.timer1.Interval = 1000;
            this.timer1.Start();

            initUserInterface();

            //WidgetThread.WidgetThread.displayFormOnPanel(this.splitContainer1.Panel2.Controls, webServer);
            //webServer.BringToFrontAndRefresh();

            toolStripMenuItemController_Click(null, null);
        }
        public FormMain(AccessDataBase.Model.Manager model)
        {
            InitializeComponent();
            this.model = model;
            this.CenterToScreen();
            this.WindowState      = FormWindowState.Maximized;
            this.Icon             = GetResourcesFile.getSystemIco();
            this.notifyIcon1.Icon = GetResourcesFile.getSystemIco();
            this.notifyIcon1.Text = this.Text;

            this.toolStripStatusLabel2.Text = "";
            this.toolStripStatusLabel3.Text = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");
            this.timer1.Interval            = 1000;
            this.timer1.Start();

            initUserInterface();

            //WidgetThread.WidgetThread.displayFormOnPanel(this.splitContainer1.Panel2.Controls, webServer);
            //webServer.BringToFrontAndRefresh();

            toolStripMenuItemController_Click(null, null);
        }
Esempio n. 3
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(KryptonAccessController.AccessDataBase.Model.Manager model)
 {
     return(dal.Update(model));
 }
Esempio n. 4
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public bool Add(KryptonAccessController.AccessDataBase.Model.Manager model)
 {
     return(dal.Add(model));
 }