public Window() { var wnd = this; wnd.CreateMainWindow(100, 100, SciterXDef.SCITER_CREATE_WINDOW_FLAGS.SW_MAIN | SciterXDef.SCITER_CREATE_WINDOW_FLAGS.SW_ALPHA | SciterXDef.SCITER_CREATE_WINDOW_FLAGS.SW_ENABLE_DEBUG); wnd.HideTaskbarIcon(); wnd.Title = WND_TITLE; wnd.Icon = Properties.Resources.IconMain; // shortcut _hotkey.RegisterGlobalHotKey((int)Keys.Oem102, GlobalHotkeys.MOD_WIN, wnd._hwnd); }
private void Form1_Load(object sender, EventArgs e) { this.webBrowser1.Navigate(HomeUrl); lsProducts = new List <ProductItem>(); //this.dateTimePicker1.Value = DateTime.Now.AddYears(-1); //this.dateTimePicker2.Value = DateTime.Now.AddYears(1); //this.dateTimePickerModifyB.Value = this.dateTimePicker1.Value; //this.dateTimePickerModifyF.Value = this.dateTimePicker2.Value; DateTime dtInit = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00")); this.dateTimePickerModifyB.Value = dtInit; this.dateTimePickerModifyF.Value = dtInit; this.dateTimePickerQueryB.Value = dtInit; this.dateTimePickerQueryE.Value = dtInit; this.dateTimePickerAddB.Value = dtInit; this.dateTimePickerAddF.Value = dtInit; this.backgroundWorker1.DoWork += backgroundWorker1_DoWork; this.backgroundWorker1.RunWorkerCompleted += backgroundWorker1_RunWorkerCompleted; this.backgroundWorker1.ProgressChanged += backgroundWorker1_ProgressChanged; appconifg.ReadConfig(configFileName); if (string.IsNullOrEmpty(appconifg.ReadConfig(configFileName))) { this.textBoxDbServer.Text = appconifg.ServerAdd; this.textBoxDbPort.Text = appconifg.ServerPort; this.textBoxDbUser.Text = appconifg.UserID; this.textBoxDbPass.Text = appconifg.Password; this.textBoxDbName.Text = appconifg.DataBase; this.textBoxProductTableName.Text = appconifg.ProductTableName; } dt = new DataTable(); for (int i = 0; i < captionProductGrid.Length; i++) { //DataColumn col=dt.Columns.Add(captionProductGrid[i]); DataColumn col = dt.Columns.Add(colNameProductGrid[i]); } hotkey = new GlobalHotkeys(); hotkey.RegisterGlobalHotKey((int)Keys.F1, 0, this.Handle); UpdateTreeNode(string.Empty); }
private void Form1_Load(object sender, EventArgs e) { this.webBrowser1.Navigate(HomeUrl); lsProducts = new List<ProductItem>(); //this.dateTimePicker1.Value = DateTime.Now.AddYears(-1); //this.dateTimePicker2.Value = DateTime.Now.AddYears(1); //this.dateTimePickerModifyB.Value = this.dateTimePicker1.Value; //this.dateTimePickerModifyF.Value = this.dateTimePicker2.Value; DateTime dtInit = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd 00:00:00")); this.dateTimePickerModifyB.Value = dtInit; this.dateTimePickerModifyF.Value = dtInit; this.dateTimePickerQueryB.Value = dtInit; this.dateTimePickerQueryE.Value = dtInit; this.dateTimePickerAddB.Value = dtInit; this.dateTimePickerAddF.Value = dtInit; this.backgroundWorker1.DoWork += backgroundWorker1_DoWork; this.backgroundWorker1.RunWorkerCompleted += backgroundWorker1_RunWorkerCompleted; this.backgroundWorker1.ProgressChanged += backgroundWorker1_ProgressChanged; appconifg.ReadConfig(configFileName); if (string.IsNullOrEmpty(appconifg.ReadConfig(configFileName))) { this.textBoxDbServer.Text = appconifg.ServerAdd; this.textBoxDbPort.Text = appconifg.ServerPort; this.textBoxDbUser.Text = appconifg.UserID; this.textBoxDbPass.Text = appconifg.Password; this.textBoxDbName.Text = appconifg.DataBase; this.textBoxProductTableName.Text = appconifg.ProductTableName; } dt = new DataTable(); for (int i = 0; i < captionProductGrid.Length; i++) { //DataColumn col=dt.Columns.Add(captionProductGrid[i]); DataColumn col = dt.Columns.Add(colNameProductGrid[i]); } hotkey = new GlobalHotkeys(); hotkey.RegisterGlobalHotKey((int)Keys.F1, 0,this.Handle); UpdateTreeNode(string.Empty); }