private void initConfig() { lFormDay1 = new LabFormDay1(); opu = new LabOpu(); ptt = new Patient(); ovs = new VisitOld(); vs = new Visit(); stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); ic.ivfDB.dtrOldDB.setCboDoctor(cboDoctor, ""); ic.ivfDB.lformDay1DB.setCboRemark(cboRemark); ic.setCboDay(cboEmbryoFreezingDay, ""); setControl(); chkBiopsy.CheckedChanged += ChkBiopsy_CheckedChanged; chkEmbryoFreezingDay.CheckedChanged += ChkEmbryoFreezingDay_CheckedChanged; chkBlastocyst.CheckedChanged += ChkBlastocyst_CheckedChanged; chkEmbryoTransferFresh.CheckedChanged += ChkEmbryoTransferFresh_CheckedChanged; btnPrint.Click += BtnPrint_Click; chkPgsMin.CheckedChanged += ChkPgsMin_CheckedChanged; chkNgs.CheckedChanged += ChkNgs_CheckedChanged; btmDonorSearch.Click += BtmDonorSearch_Click; btnMaleSearch.Click += BtnMaleSearch_Click; btnSave.Click += BtnSave_Click; ChkBiopsy_CheckedChanged(null, null); ChkEmbryoFreezingDay_CheckedChanged(null, null); ChkBlastocyst_CheckedChanged(null, null); ChkEmbryoTransferFresh_CheckedChanged(null, null); ChkPgsMin_CheckedChanged(null, null); ChkNgs_CheckedChanged(null, null); }
private void initConfig() { ordg = new OrOperationGroup(); fEdit = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Regular); fEditB = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Bold); C1ThemeController.ApplicationTheme = ic.iniC.themeApplication; theme1.Theme = C1ThemeController.ApplicationTheme; theme1.SetTheme(sB, "BeigeOne"); foreach (Control c in panel2.Controls) { theme1.SetTheme(c, "Office2013Red"); } bg = txtGiagGrpCode.BackColor; fc = txtGiagGrpCode.ForeColor; ff = txtGiagGrpCode.Font; btnNew.Click += BtnNew_Click; btnSave.Click += BtnSave_Click; btnEdit.Click += BtnEdit_Click; initGrfPosi(); setGrfPosi(); setControlEnable(false); setFocusColor(); sB1.Text = ""; btnVoid.Hide(); txtPasswordVoid.Hide(); stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); }
private void initConfig() { fEdit = new Font(xC.iniC.grdViewFontName, xC.grdViewFontSize, FontStyle.Regular); fEditB = new Font(xC.iniC.grdViewFontName, xC.grdViewFontSize, FontStyle.Bold); C1ThemeController.ApplicationTheme = xC.iniC.themeApplication; theme1.Theme = C1ThemeController.ApplicationTheme; theme1.SetTheme(sB, "BeigeOne"); sB1.Text = ""; cop = new Company(); cop = xC.xtDB.copDB.selectByCode1("001"); //bll = new Billing(); cus = new Customer(); jim = new JobImport(); bll = new Billing(); stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); txtCusNameT.KeyUp += TxtCusNameT_KeyUp; initGrfJob(); initGrfBill(); initGrfBillD(); }
private void initConfig() { dgss = new DocGroupSubScan(); fEdit = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Regular); fEditB = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Bold); C1ThemeController.ApplicationTheme = ic.iniC.themeApplication; theme1.Theme = C1ThemeController.ApplicationTheme; theme1.SetTheme(sB, "BeigeOne"); foreach (Control c in panel3.Controls) { theme1.SetTheme(c, "Office2013Red"); } bg = txtDocGroupSubName.BackColor; fc = txtDocGroupSubName.ForeColor; ff = txtDocGroupSubName.Font; ic.ivfDB.dgsDB.setCboBsp(cboDocGroupName, ""); txtPasswordVoid.KeyUp += TxtPasswordVoid_KeyUp; btnNew.Click += BtnNew_Click; btnEdit.Click += BtnEdit_Click; btnSave.Click += BtnSave_Click; initGrfPosi(); setGrfPosi(); setControlEnable(false); setFocusColor(); sB1.Text = ""; btnVoid.Hide(); txtPasswordVoid.Hide(); stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); }
private void initConfig() { fEdit = new Font(xC.iniC.grdViewFontName, xC.grdViewFontSize, FontStyle.Regular); fEditB = new Font(xC.iniC.grdViewFontName, xC.grdViewFontSize, FontStyle.Bold); C1ThemeController.ApplicationTheme = xC.iniC.themeApplication; theme1.Theme = C1ThemeController.ApplicationTheme; theme1.SetTheme(sB, "BeigeOne"); sB1.Text = ""; chkAll.Click += ChkAll_Click; chkAppvOk.Click += ChkAppvOk_Click; chkAppvWait.Click += ChkAppvWait_Click; stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); //stt.BackgroundGradient = C1.Win.C1SuperTooltip.BackgroundGradient.Gold; chkAll.Checked = true; xC.setCboYear(cboYear); initGrfDept(); setGrfDeptH(); chkAppvWait.Checked = true; }
private void initConfig() { res = new Restaurant(); fEdit = new Font(mposC.iniC.grdViewFontName, mposC.grdViewFontSize, FontStyle.Regular); fEditB = new Font(mposC.iniC.grdViewFontName, mposC.grdViewFontSize, FontStyle.Bold); //C1ThemeController.ApplicationTheme = mposC.iniC.themeApplication; theme1.Theme = mposC.iniC.themeApplication; theme1.SetTheme(sB, "BeigeOne"); foreach (Control c in panel3.Controls) { theme1.SetTheme(c, mposC.iniC.themeApplication); } bg = txtResCode.BackColor; fc = txtResCode.ForeColor; ff = txtResCode.Font; txtPasswordVoid.KeyUp += TxtPasswordVoid_KeyUp; btnPrnTest.Click += BtnPrnTest_Click; btnSavePrn.Click += BtnSavePrn_Click; //mposC.mposDB.areaDB.setCboArea(cboArea); initGrfRestaurant(); setGrfRestaurant(); setControlEnable(false); setFocusColor(); sB1.Text = ""; btnVoid.Hide(); txtPasswordVoid.Hide(); stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); //stt.BackgroundGradient = C1.Win.C1SuperTooltip.BackgroundGradient.Gold; }
private void initConfig() { fooT = new MaterialType(); fEdit = new Font(mposC.iniC.grdViewFontName, mposC.grdViewFontSize, FontStyle.Regular); fEditB = new Font(mposC.iniC.grdViewFontName, mposC.grdViewFontSize, FontStyle.Bold); //C1ThemeController.ApplicationTheme = mposC.iniC.themeApplication; theme1.Theme = mposC.iniC.themeApplication; theme1.SetTheme(panel3, mposC.iniC.themeApplication); theme1.SetTheme(sB, "BeigeOne"); foreach (Control c in panel3.Controls) { theme1.SetTheme(c, mposC.iniC.themeApplication); } bg = txtAreaCode.BackColor; fc = txtAreaCode.ForeColor; ff = txtAreaCode.Font; txtPasswordVoid.KeyUp += TxtPasswordVoid_KeyUp; btnNew.Click += BtnNew_Click; btnEdit.Click += BtnEdit_Click; btnVoid.Click += BtnVoid_Click; btnSave.Click += BtnSave_Click; initGrfMaterialType(); setGrfMaterialType(); setControlEnable(false); setFocusColor(); sB1.Text = ""; btnVoid.Hide(); txtPasswordVoid.Hide(); stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); //stt.BackgroundGradient = C1.Win.C1SuperTooltip.BackgroundGradient.Gold; }
private void initConfig() { fEdit = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Regular); fEditB = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Bold); C1ThemeController.ApplicationTheme = ic.iniC.themeApplication; theme1.Theme = C1ThemeController.ApplicationTheme; theme1.SetTheme(sB, "BeigeOne"); foreach (Control c in panel2.Controls) { theme1.SetTheme(c, "Office2013Red"); } sB1.Text = ""; stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); sdrk = new OldStockDrug(); ic.ivfDB.oStkdDB.setCboUsageE(cboUsageE); ic.ivfDB.oStkdDB.setCboUsageT(cboUsageT); btnNew.Click += BtnNew_Click; btnSave.Click += BtnSave_Click; chkVoid.Click += ChkVoid_Click; txtPasswordVoid.KeyUp += TxtPasswordVoid_KeyUp; btnVoid.Click += BtnVoid_Click; initGrfStockDrug(); setGrfStockDrug(); }
private void initConfig() { fEdit = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Regular); fEditB = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Bold); //C1ThemeController.ApplicationTheme = ic.iniC.themeApplication; theme1.Theme = ic.iniC.themeApplication; theme1.SetTheme(sB, "BeigeOne"); theme1.SetTheme(tC, "Office2010Blue"); sB1.Text = ""; bg = txtSearch.BackColor; fc = txtSearch.ForeColor; ff = txtSearch.Font; stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); initGrfQue(); setGrfQue(); initGrfOpera(); setGrfOpera(); int timerlab = 0; int.TryParse(ic.iniC.timerlabreqaccept, out timerlab); timer = new Timer(); timer.Interval = timerlab * 1000; timer.Tick += Timer_Tick; timer.Enabled = true; }
private void initConfig() { fcb = new FoodsCatSub(); fEdit = new Font(mposC.iniC.grdViewFontName, mposC.grdViewFontSize, FontStyle.Regular); fEditB = new Font(mposC.iniC.grdViewFontName, mposC.grdViewFontSize, FontStyle.Bold); //C1ThemeController.ApplicationTheme = mposC.iniC.themeApplication; theme1.Theme = mposC.iniC.themeApplication; theme1.SetTheme(sB, "BeigeOne"); foreach (Control c in panel3.Controls) { theme1.SetTheme(c, mposC.iniC.themeApplication); } bg = txtFcbCode.BackColor; fc = txtFcbCode.ForeColor; ff = txtFcbCode.Font; txtPasswordVoid.KeyUp += TxtPasswordVoid_KeyUp; mposC.mposDB.foocDB.setCboFoodsCat(cboFoodsCat); initGrfFoodsCatSub(); setGrfFoodsCatSub(); setControlEnable(false); setFocusColor(); sB1.Text = ""; btnVoid.Hide(); txtPasswordVoid.Hide(); stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); //stt.BackgroundGradient = C1.Win.C1SuperTooltip.BackgroundGradient.Gold; }
/// <summary> /// コンポーネント初期化 /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.GanttBarToolTip = new C1.Win.C1SuperTooltip.C1SuperTooltip(this.components); this.ResourcesToolTip = new C1.Win.C1SuperTooltip.C1SuperTooltip(this.components); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); this.SuspendLayout(); // // GanttBarToolTip // this.GanttBarToolTip.AutoPopDelay = 50000; this.GanttBarToolTip.Font = new System.Drawing.Font("Tahoma", 8F); this.GanttBarToolTip.InitialDelay = 100; this.GanttBarToolTip.ReshowDelay = 0; this.GanttBarToolTip.RightToLeft = System.Windows.Forms.RightToLeft.Inherit; // // ResourcesToolTip // this.ResourcesToolTip.Font = new System.Drawing.Font("Tahoma", 8F); this.ResourcesToolTip.RightToLeft = System.Windows.Forms.RightToLeft.Inherit; // // FxGanttView // this.Rows.DefaultSize = 18; ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); this.ResumeLayout(false); }
private void initConfig() { expnD = new ExpensesDraw(); fEdit = new Font(xC.iniC.grdViewFontName, xC.grdViewFontSize, FontStyle.Regular); fEditB = new Font(xC.iniC.grdViewFontName, xC.grdViewFontSize, FontStyle.Bold); C1ThemeController.ApplicationTheme = xC.iniC.themeApplication; theme1.Theme = C1ThemeController.ApplicationTheme; theme1.SetTheme(sB, "BeigeOne"); foreach (Control c in panel3.Controls) { theme1.SetTheme(c, "Office2013Red"); } bg = txtDrawCode.BackColor; fc = txtDrawCode.ForeColor; ff = txtDrawCode.Font; //xC.xtDB.expndDB.setC1CboExpnC(cboStaff, ""); //DateTime jobDate = DateTime.Now; //txtExpndDrawDate.Value = jobDate.Year.ToString() + "-" + jobDate.ToString("MM-dd"); //jobDate = jobDate.AddDays(7); //txtDrawDate.Value = jobDate.Year.ToString() + "-" + jobDate.ToString("MM-dd"); sB1.Text = ""; stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); //stt.BackgroundGradient = C1.Win.C1SuperTooltip.BackgroundGradient.Gold; }
private void initConfig() { bg = txtContFNameT.BackColor; fc = txtContFNameT.ForeColor; ff = txtContFNameT.Font; fEdit = new Font(xC.iniC.grdViewFontName, xC.grdViewFontSize, FontStyle.Regular); fEditB = new Font(xC.iniC.grdViewFontName, xC.grdViewFontSize, FontStyle.Bold); initGrfContH(); setGrfInvH(); setFocusColor(); setControl(xC.contID); txtPasswordVoid.KeyUp += TxtPasswordVoid_KeyUp; C1ThemeController.ApplicationTheme = xC.iniC.themeApplication; theme1.Theme = C1ThemeController.ApplicationTheme; bg = txtContFNameT.BackColor; fc = txtContFNameT.ForeColor; theme1.SetTheme(sB, "BeigeOne"); sB1.Text = ""; cont = new Contact(); setControlEnable(false); cboPrefix = xC.iniDB.pfxDB.setCboPrefix(cboPrefix); btnVoid.Hide(); txtPasswordVoid.Hide(); stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); //stt.BackgroundGradient = C1.Win.C1SuperTooltip.BackgroundGradient.Gold; }
private void initConfig() { cusT = new CustomerTaxInvoice(); bg = txtRemark.BackColor; fc = txtRemark.ForeColor; ff = txtRemark.Font; fEdit = new Font(xC.iniC.grdViewFontName, xC.grdViewFontSize, FontStyle.Regular); fEditB = new Font(xC.iniC.grdViewFontName, xC.grdViewFontSize, FontStyle.Bold); C1ThemeController.ApplicationTheme = xC.iniC.themeApplication; theme1.Theme = C1ThemeController.ApplicationTheme; bg = txtRemark.BackColor; fc = txtRemark.ForeColor; txtPasswordVoid.KeyUp += TxtPasswordVoid_KeyUp; chkVoid.Click += ChkVoid_Click; theme1.SetTheme(sB, "BeigeOne"); sB1.Text = ""; setControl(xC.custID); setControlEnable(false); setFocusColor(); btnVoid.Hide(); txtPasswordVoid.Hide(); stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); //stt.BackgroundGradient = C1.Win.C1SuperTooltip.BackgroundGradient.Gold; }
private void initConfig() { fEdit = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Regular); fEditB = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Bold); //C1ThemeController.ApplicationTheme = ic.iniC.themeApplication; theme1.Theme = ic.iniC.themeApplication; theme1.SetTheme(sB, "BeigeOne"); txtDateEnd.Value = System.DateTime.Now; txtDateStart.Value = System.DateTime.Now; sB1.Text = ""; bg = txtHn.BackColor; fc = txtHn.ForeColor; ff = txtHn.Font; stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); lbReq = new LabRequest(); //btnNew.Click += BtnNew_Click; int timerlab = 0; int.TryParse(ic.iniC.timerlabreqaccept, out timerlab); btnSearch.Click += BtnSearch_Click; timer = new Timer(); timer.Interval = timerlab * 1000; timer.Tick += Timer_Tick; timer.Enabled = true; initGrfReq(); setGrfReq(); }
private void initConfig() { fEdit = new Font(xC.iniC.grdViewFontName, xC.grdViewFontSize, FontStyle.Regular); fEditB = new Font(xC.iniC.grdViewFontName, xC.grdViewFontSize, FontStyle.Bold); C1ThemeController.ApplicationTheme = xC.iniC.themeApplication; theme1.Theme = C1ThemeController.ApplicationTheme; theme1.SetTheme(sB, "BeigeOne"); DateTime pytDate = DateTime.Now; txtPytDate.Value = pytDate.Year.ToString() + "-" + pytDate.ToString("MM-dd"); btnSave.Click += BtnSave_Click; sB1.Text = ""; cop = new Company(); cop = xC.xtDB.copDB.selectByCode1("001"); //bll = new Billing(); cus = new Customer(); jim = new JobImport(); bll = new Billing(); pyt = new Payment(); stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); txtCusNameT.KeyUp += TxtCusNameT_KeyUp; initGrfJob(); initGrfBill(); initGrfBillD(); initGrfPay(); }
private void initConfig() { fEdit = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Regular); fEditB = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Bold); //C1ThemeController.ApplicationTheme = ic.iniC.themeApplication; theme1.Theme = ic.iniC.themeApplication; theme1.SetTheme(sB, "BeigeOne"); sB1.Text = ""; bg = txtHnMale.BackColor; fc = txtHnMale.ForeColor; ff = txtHnMale.Font; txtHn.Value = "-"; txtName.Value = "-"; stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); btnOk.Click += BtnOk_Click; initGrfCu(); initGrfHn(); setGrfCu(); tC1.SelectedTab = tabCurrent; btnSearch.Click += BtnSearch_Click; txtHnMale.KeyUp += TxtHnMale_KeyUp; tC1.Click += TC1_Click; txtHnMale.Focus(); }
private void initConfig() { fEdit = new Font(bc.iniC.grdViewFontName, bc.grdViewFontSize, FontStyle.Regular); fEditB = new Font(bc.iniC.grdViewFontName, bc.grdViewFontSize, FontStyle.Bold); //C1ThemeController.ApplicationTheme = ic.iniC.themeApplication; theme1.Theme = bc.iniC.themeApplication; theme1.SetTheme(sB, "BeigeOne"); sB1.Text = ""; bg = txtSearch.BackColor; fc = txtSearch.ForeColor; ff = txtSearch.Font; stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); initGrfCu(); initGrfVn(); setGrfCu(); tC1.SelectedTab = tabCurrent; btnSearch.Click += BtnSearch_Click; txtSearch.KeyUp += TxtSearch_KeyUp; btnOk.Click += BtnOk_Click; txtHn.TabStop = false; txtName.TabStop = false; txtVn.TabStop = false; }
private void initConfig() { fEdit = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Regular); fEditB = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Bold); //C1ThemeController.ApplicationTheme = ic.iniC.themeApplication; theme1.Theme = ic.iniC.themeApplication; theme1.SetTheme(sB, "BeigeOne"); sB1.Text = ""; bg = txtSearch.BackColor; fc = txtSearch.ForeColor; ff = txtSearch.Font; stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); chkToday.Checked = true; lSmartCard = new List <string>(); btnNew.Click += BtnNew_Click; txtSearch.KeyUp += TxtSearch_KeyUp; btnSmartcard.Click += BtnSmartcard_Click; initGrfPtt(); setGrfPtt(""); }
private void initConfig() { pageLoad = true; dgss = new DocGroupSubScan(); dfm = new DocGroupFM(); fEdit = new Font(bc.iniC.grdViewFontName, bc.grdViewFontSize, FontStyle.Regular); fEditB = new Font(bc.iniC.grdViewFontName, bc.grdViewFontSize, FontStyle.Bold); C1ThemeController.ApplicationTheme = bc.iniC.themeApplication; theme1.Theme = C1ThemeController.ApplicationTheme; theme1.SetTheme(sB, "BeigeOne"); bg = txtFmCode.BackColor; fc = txtFmCode.ForeColor; ff = txtFmCode.Font; bc.bcDB.dgssDB.setCboDGSS(cboDocGroupSubName, ""); bc.bcDB.dgsDB.setCboDgs(cboDocGroupName, ""); sB.Text = ""; btnVoid.Hide(); txtPasswordVoid.Hide(); stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); btnNew.Click += BtnNew_Click; btnEdit.Click += BtnEdit_Click; btnSave.Click += BtnSave_Click; txtPasswordVoid.KeyUp += TxtPasswordVoid_KeyUp; cboDocGroupName.SelectedIndexChanged += CboDocGroupName_SelectedIndexChanged; initGrfFMCode(); setGrfFMCode(); setControlEnable(false); setFocusColor(); pageLoad = false; }
private void initConfig() { theme1.Theme = bc.iniC.themeApplication; txtUserName.KeyUp += TxtUserName_KeyUp; txtUserName.LostFocus += TxtUserName_LostFocus; txtUserName.Enter += TxtUserName_Enter; txtPassword.KeyUp += TxtPassword_KeyUp; txtPassword.Enter += TxtUserName_Enter; btnOk.Click += BtnOk_Click; bg = txtUserName.BackColor; fc = txtUserName.ForeColor; //theme1.SetTheme(panel1, "Office2013Red"); theme1.SetTheme(btnOk, bc.iniC.themeApplication); stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); stfDB = new StaffDB(bc.conn); foreach (Control con in panel1.Controls) { theme1.SetTheme(con, bc.iniC.themeApplication); } theme1.SetTheme(txtUserName, bc.iniC.themeDonor); theme1.SetTheme(txtPassword, bc.iniC.themeDonor); //stt.BackgroundGradient = C1.Win.C1SuperTooltip.BackgroundGradient.Gold; //stt. }
private void initConfig() { bg = txtAddrT1.BackColor; fc = txtAddrT1.ForeColor; ff = txtAddrT1.Font; setFocusColor(); setControl(); C1ThemeController.ApplicationTheme = xC.iniC.themeApplication; theme1.Theme = C1ThemeController.ApplicationTheme; bg = txtAddrT1.BackColor; fc = txtAddrT1.ForeColor; theme1.SetTheme(sB, "BeigeOne"); txtPasswordVoid.KeyUp += TxtPasswordVoid_KeyUp; chkVoid.Click += ChkVoid_Click; btnVoid.Click += BtnVoid_Click; sB1.Text = ""; addr = new Address(); if (xC.addrID.Equals("")) { flagEdit = true; } else { flagEdit = false; } setControlEnable(flagEdit); setFocus(); btnVoid.Hide(); txtPasswordVoid.Hide(); stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); //stt.BackgroundGradient = C1.Win.C1SuperTooltip.BackgroundGradient.Gold; }
private void initConfig() { pageLoad = true; fEdit = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Regular); fEditB = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Bold); theme1 = new C1ThemeController(); theme1.Theme = ic.iniC.themeApplication; sep = new C1SuperErrorProvider(); stt = new C1SuperTooltip(); stf = new Staff(); stf = ic.ivfDB.stfDB.selectByPk1(ic.userId); initCompoment(); setControl(); setGrfTemplateDrug(ic.userId, "", grfDrug); ic.ivfDB.oStkdDB.setCboStockDrug(cboDrugName, ""); ic.ivfDB.tdrugDB.setCboUsageT(cboTempDrugName, stf.staff_id); this.Load += FrmDoctorTemplateDrug_Load; cboDrugName.SelectedItemChanged += CboDrugName_SelectedItemChanged; btnSave.Click += BtnSave_Click; cboTempDrugName.SelectedItemChanged += CboTempDrugName_SelectedItemChanged; grfDrug.DoubleClick += GrfDrug_DoubleClick; btnNew.Click += BtnNew_Click; cboTempDrugName.KeyPress += CboTempDrugName_KeyPress; cboDrugName.KeyPress += CboDrugName_KeyPress; txtQty.KeyPress += TxtQty_KeyPress; txtEng.KeyPress += TxtEng_KeyPress; txtThai.KeyPress += TxtThai_KeyPress; pageLoad = false; }
private void initConfig() { expnC = new ItemsCat(); fEdit = new Font(xC.iniC.grdViewFontName, xC.grdViewFontSize, FontStyle.Regular); fEditB = new Font(xC.iniC.grdViewFontName, xC.grdViewFontSize, FontStyle.Bold); C1ThemeController.ApplicationTheme = xC.iniC.themeApplication; theme1.Theme = C1ThemeController.ApplicationTheme; theme1.SetTheme(sB, "BeigeOne"); foreach (Control c in panel3.Controls) { theme1.SetTheme(c, "Office2013Red"); } bg = txtCode.BackColor; fc = txtCode.ForeColor; ff = txtCode.Font; txtPasswordVoid.KeyUp += TxtPasswordVoid_KeyUp; btnNew.Click += BtnNew_Click; btnEdit.Click += BtnEdit_Click; btnSave.Click += BtnSave_Click; initGrfDept(); setGrfDeptH(); setControlEnable(false); setFocusColor(); sB1.Text = ""; btnVoid.Hide(); txtPasswordVoid.Hide(); stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); //stt.BackgroundGradient = C1.Win.C1SuperTooltip.BackgroundGradient.Gold; }
private void initConfig() { posi = new Position(); fEdit = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Regular); fEditB = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Bold); C1ThemeController.ApplicationTheme = ic.iniC.themeApplication; theme1.Theme = C1ThemeController.ApplicationTheme; theme1.SetTheme(sB, "BeigeOne"); foreach (Control c in panel3.Controls) { theme1.SetTheme(c, "Office2013Red"); } bg = txtPosiCode.BackColor; fc = txtPosiCode.ForeColor; ff = txtPosiCode.Font; txtPasswordVoid.KeyUp += TxtPasswordVoid_KeyUp; initGrfPosi(); setGrfPosi(); setControlEnable(false); setFocusColor(); sB1.Text = ""; btnVoid.Hide(); txtPasswordVoid.Hide(); stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); //stt.BackgroundGradient = C1.Win.C1SuperTooltip.BackgroundGradient.Gold; }
private void initConfig() { fEdit = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Regular); fEditB = new Font(ic.iniC.grdViewFontName, ic.grdViewFontSize, FontStyle.Bold); //C1ThemeController.ApplicationTheme = ic.iniC.themeApplication; theme1.Theme = ic.iniC.themeApplication; theme1.SetTheme(sB, "BeigeOne"); sB1.Text = ""; bg = txtSearch.BackColor; fc = txtSearch.ForeColor; ff = txtSearch.Font; txtStartDate.Value = DateTime.Now; txtEndDate.Value = DateTime.Now; stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); chkHn.Checked = false; chkVisit.Checked = true; btnSerach.Click += BtnSerach_Click; initGrfPtt(); }
private void initConfig() { fEdit = new Font(mposC.iniC.grdViewFontName, mposC.grdViewFontSize, FontStyle.Regular); fEditB = new Font(mposC.iniC.grdViewFontName, mposC.grdViewFontSize, FontStyle.Bold); stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); matr = new MaterialRec(); //C1ThemeController.ApplicationTheme = mposC.iniC.themeApplication; theme1.Theme = mposC.iniC.themeApplication; theme1.SetTheme(panel2, mposC.iniC.themeApplication); theme1.SetTheme(sB, "BeigeOne"); foreach (Control c in panel2.Controls) { theme1.SetTheme(c, mposC.iniC.themeApplication); } txtMatrDate.Value = System.DateTime.Now.Year + "-" + System.DateTime.Now.ToString("MM-dd"); cboMethod = new C1ComboBox(); cboMethod.AutoCompleteMode = AutoCompleteMode.Suggest; cboMethod.AutoCompleteSource = AutoCompleteSource.ListItems; mposC.mposDB.matDB.setCboMaterial(cboMethod, ""); btnVoid.Hide(); txtPasswordVoid.Hide(); btnSave.Click += BtnSave_Click; chkVoid.CheckedChanged += ChkVoid_CheckedChanged; txtPasswordVoid.KeyUp += TxtPasswordVoid_KeyUp; btnVoid.Click += BtnVoid_Click; btnDoc.Click += BtnDoc_Click; initGrfMatr(); sB1.Text = ""; }
private void initConfig() { lFormA = new LabFormA(); stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); btnSave.Click += BtnSave_Click; setControl(); }
private void initConfig() { initCompoment(); fEdit = new Font(bc.iniC.grdViewFontName, bc.grdViewFontSize, FontStyle.Regular); fEditB = new Font(bc.iniC.grdViewFontName, bc.grdViewFontSize, FontStyle.Bold); fEditBig = new Font(bc.iniC.grdViewFontName, bc.grdViewFontSize + 2, FontStyle.Regular); stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); }
private void initControl() { this.Width = 250; this.Height = 120; this.MinimizeBox = false; this.MaximizeBox = false; this.FormBorderStyle = FormBorderStyle.FixedSingle; label1 = new System.Windows.Forms.Label(); label2 = new System.Windows.Forms.Label(); txtPassword = new C1.Win.C1Input.C1TextBox(); theme1 = new C1.Win.C1Themes.C1ThemeController(); theme1.Theme = "Office2013Red"; //C1ThemeController.ApplicationTheme = ic.iniC.themeApplication; theme1.Theme = C1ThemeController.ApplicationTheme; stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); label1.AutoSize = true; label1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240))))); label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(222))); label1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); label1.Location = new System.Drawing.Point(10, 20); //label1.Size = new System.Drawing.Size(68, 16); label1.TabIndex = 0; label1.Text = "รหัสผ่าน :"; label2.AutoSize = true; label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240))))); label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(222))); label2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(45))))); label2.Location = new System.Drawing.Point(10, label1.Top + 30); //label1.Size = new System.Drawing.Size(68, 16); label2.TabIndex = 1; label2.Text = "-"; txtPassword.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; txtPassword.DisabledForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(152)))), ((int)(((byte)(152))))); txtPassword.Font = new System.Drawing.Font("Microsoft Sans Serif", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(222))); txtPassword.Location = new System.Drawing.Point(80, 20); txtPassword.Name = "txtContFNameE"; txtPassword.Size = new System.Drawing.Size(100, 20); txtPassword.TabIndex = 84; txtPassword.Tag = null; txtPassword.PasswordChar = '*'; txtPassword.KeyUp += new KeyEventHandler(this.txtPassword_KeyUp); theme1.SetTheme(this.txtPassword, "(default)"); this.StartPosition = FormStartPosition.CenterParent; this.Controls.Add(label1); this.Controls.Add(label2); this.Controls.Add(txtPassword); }