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); }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(KryptonAccessController.AccessDataBase.Model.Manager model) { return(dal.Update(model)); }
/// <summary> /// 增加一条数据 /// </summary> public bool Add(KryptonAccessController.AccessDataBase.Model.Manager model) { return(dal.Add(model)); }