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(tabOrder, "MacSilver"); //spPatient theme1.SetTheme(sC, theme1.Theme); sB1.Text = ""; bg = txtHn.BackColor; fc = txtHn.ForeColor; ff = txtHn.Font; //vsOld = new VisitOld(); vs = new Visit(); ptt = new Patient(); //pttOld = new PatientOld(); //pttO = new PatientOld(); stt = new C1SuperTooltip(); sep = new C1SuperErrorProvider(); color = ColorTranslator.FromHtml(ic.iniC.grfRowColor); imgCorr = Resources.red_checkmark_png_16; imgTran = Resources.red_checkmark_png_51; ic.setCboLangSticker(cboLangSticker, "Thai"); ic.ivfDB.dtrOldDB.setCboDoctor(cboDoctor, ""); ic.ivfDB.pttDB.setCboAllergy(cboAllergyDesc); btnFinish.Click += BtnFinish_Click; cboLangSticker.SelectedIndexChanged += CboLangSticker_SelectedIndexChanged; btnNoteAdd.Click += BtnNoteAdd_Click; tlpPatient.Resize += TlpPatient_Resize; btnPrnSticker.Click += BtnPrnSticker_Click; btnCalBack.Click += BtnCalBack_Click; setControl(vsid); initGrfRx(); setGrfRx(); initGrfNote(); setGrfNote(); initGrfOrder(); setGrfOrder(txtVn.Text); picPtt.SizeMode = PictureBoxSizeMode.StretchImage; }