Пример #1
0
 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";
 }
Пример #2
0
 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();
 }
Пример #3
0
 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);
 }
Пример #4
0
 private void darkThemeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Design.isDarkTheme = true;
     Design.SetTheme();
 }