private void StatisticForm_Load(object sender, EventArgs e) { Design.ApplyFormColor(this); Design.ApplyDGVColor(dgvOrderStatistic); Design.ApplyButtonInfo(btnReverse); Design.ApplyButtonSuccess(btnShowBenefit); Design.ApplyButtonSuccess(btnShowPopularMenuItem); Design.ApplyButtonSuccess(btnShowTotalOrders); dtpFrom.Format = DateTimePickerFormat.Custom; dtpFrom.CustomFormat = "dd/MM/yyyy"; dtpTo.Format = DateTimePickerFormat.Custom; dtpTo.CustomFormat = "dd/MM/yyyy"; }
public frmStaff() { InitializeComponent(); Design.ApplyFormColor(this); Design.ApplyDGVColor(dgvStaff); Design.ApplyGroupColor(grbInfo); Design.ApplyButtonSuccess(btnAdd); Design.ApplyButtonDanger(btnDelete); Design.ApplyButtonInfo(btnUpdate); Design.ApplyButtonInfo(btnSearch); InitRoleDataSet(); LoadDataOnCombobox(); InitStaffDataSet(); LoadData(); }
public MenuForm() { InitializeComponent(); InitDataSet(); Design.ApplyFormColor(this); Design.ApplyDGVColor(dgvMenu); dgvMenu.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; Design.ApplyDGVColor(dgvCategory); dgvCategory.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; Design.ApplyGroupColor(groupBox1); Design.ApplyGroupColor(groupBox2); Design.ApplyGroupColor(groupContent); Design.ApplyButtonSuccess(btnAddNew); Design.ApplyButtonDanger(btnDeactive); Design.ApplyButtonInfo(btnUpdate); }
private void darkThemeToolStripMenuItem_Click(object sender, EventArgs e) { Design.isDarkTheme = true; Design.SetTheme(); }