private void btnEditGST_Click(object sender, EventArgs e) { try { Master.GSTMaster objForm = getGST(); btn = objForm.btnSave; objForm.btnSave = Common.setUpdate(btn); objForm.ShowDialog(); onPageLoad(); } catch (Exception ex) { Common.showDenger(ex.Message); } }
private void setColorBtnCon(Bunifu.Framework.UI.BunifuFlatButton btn) { btnPhongBan.Normalcolor = Color.FromArgb(33, 38, 41); btnChucVu.Normalcolor = Color.FromArgb(33, 38, 41); btnQLHoSo.Normalcolor = Color.FromArgb(33, 38, 41); btnQLTrinhDoChuyenMon.Normalcolor = Color.FromArgb(33, 38, 41); btnQLTrinhDoNgoaiNgu.Normalcolor = Color.FromArgb(33, 38, 41); btnQLQuaTrinhCongTac.Normalcolor = Color.FromArgb(33, 38, 41); btnQLNhanVienChucVu.Normalcolor = Color.FromArgb(33, 38, 41); btnInHoSo1NV.Normalcolor = Color.FromArgb(33, 38, 41); btnInThongKeTrinhDoChuyenMon.Normalcolor = Color.FromArgb(33, 38, 41); btnInThongKeTrinhDoNgoaiNgu.Normalcolor = Color.FromArgb(33, 38, 41); btn.Normalcolor = Color.FromArgb(0, 172, 193); }
/// <summary> /// Triggered when the user clicks a 'view' button which then in return will present /// a new window with a datagrid view. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void btn_viewData_Click(object sender, EventArgs e) { try { using (DataViewer dv = new DataViewer()) { Bunifu.Framework.UI.BunifuFlatButton btn = (Bunifu.Framework.UI.BunifuFlatButton)sender; int tag = int.Parse(btn.Tag.ToString()); switch (ActiveCategory) { case 0: // PRs Created dv.DataLoader += KpiDataTableLoader.Other.LoadPrsCreated; dv.ColumnTag = tag; break; case 1: // PRs Released dv.DataLoader += KpiDataTableLoader.Other.LoadPrsReleased; dv.ColumnTag = tag; break; case 2: // Total Spend dv.DataLoader += KpiDataTableLoader.Other.LoadTotalSpend; dv.ColumnTag = tag; break; case 3: // PR vs PO Value dv.DataLoader += KpiDataTableLoader.Other.LoadPrVsPoValue; dv.ColumnTag = tag; break; case 4: // Hot Job PRs dv.DataLoader += KpiDataTableLoader.Other.LoadHotJobPrs; dv.ColumnTag = tag; break; default: break; } dv.ShowDialog(); } } catch (Exception ex) { MessageBox.Show(ex.Message, "KPI -> Other Values Viewer Calculation Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void updateControlColor(Bunifu.Framework.UI.BunifuFlatButton sender) { btnCart.Textcolor = Color.White; btnDash.Textcolor = Color.White; btnProducts.Textcolor = Color.White; btnSales.Textcolor = Color.White; btnProvider.Textcolor = Color.White; btnClient.Textcolor = Color.White; btnPlus.Textcolor = Color.White; sender.selected = true; if (sender.selected) { sender.Textcolor = Color.Black; } }
void setSelectForecolor(Bunifu.Framework.UI.BunifuFlatButton sender) { bunifuFlatButton1.Textcolor = Color.DimGray; bunifuFlatButton2.Textcolor = Color.DimGray; bunifuFlatButton3.Textcolor = Color.DimGray; bunifuFlatButton4.Textcolor = Color.DimGray; bunifuFlatButton5.Textcolor = Color.DimGray; sender.selected = true; if (sender.selected) { sender.Textcolor = Color.White; } }
/// <summary> /// Triggered when the user clicks a 'view' button which then in return will present /// a new window with a datagrid view. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void btn_viewData_Click(object sender, EventArgs e) { try { using (DataViewer dv = new DataViewer()) { Bunifu.Framework.UI.BunifuFlatButton btn = (Bunifu.Framework.UI.BunifuFlatButton)sender; int tag = int.Parse(btn.Tag.ToString()); switch (ActiveCategory) { case 0: // Initial Confirmation vs Current Confirmation dv.DataLoader += KpiDataTableLoader.FollowUp.LoadCurrConfVsInitConfDataTable; dv.ColumnTag = tag; break; case 1: // Final Confirmation Date vs Final Planned Date dv.DataLoader += KpiDataTableLoader.FollowUp.LoadFinalConfDateVsFinalPlanDateDataTable; dv.ColumnTag = tag; break; case 2: // Receipt Date vs Current Planned Date dv.DataLoader += KpiDataTableLoader.FollowUp.LoadRecDateVsCurrPlanDateDataTable; dv.ColumnTag = tag; break; case 3: // Receipt Date vs Orig Conf Date dv.DataLoader += KpiDataTableLoader.FollowUp.LoadRecDateVsOrigConfDateDataTable; dv.ColumnTag = tag; break; case 4: // Receipt Date vs Current Conf Date dv.DataLoader += KpiDataTableLoader.FollowUp.LoadRecDateVsCurrConfDateDataTable; dv.ColumnTag = tag; break; default: break; } dv.ShowDialog(); } } catch (Exception ex) { MessageBox.Show(ex.Message, "KPI -> Follow Up Viewer Calculation Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
//metodo para cambiar el color de los botones al ser seleccionados public void seleccionBoton(Bunifu.Framework.UI.BunifuFlatButton sender) { btnDashboard.Textcolor = Color.White; btnProductos.Textcolor = Color.White; btnVentas.Textcolor = Color.White; btnCompras.Textcolor = Color.White; btnProveedores.Textcolor = Color.White; btnTrabajadores.Textcolor = Color.White; btnClientes.Textcolor = Color.White; btnGanancias.Textcolor = Color.White; sender.selected = true; if (sender.selected) { sender.Textcolor = Color.FromArgb(98, 195, 140); } }
public void changeColor(Bunifu.Framework.UI.BunifuFlatButton tb) { foreach (Control i in drawer.Controls) { if (i.GetType() == tb.GetType()) { if ((i as Bunifu.Framework.UI.BunifuFlatButton) == tb) { (i as Bunifu.Framework.UI.BunifuFlatButton).Textcolor = Color.FromArgb(26, 188, 156); } else { (i as Bunifu.Framework.UI.BunifuFlatButton).Textcolor = Color.White; } } } }
//===================================================================================// // TAB ANIMATION AND SWITCHING CODE: // //===================================================================================// public void tab_animate(Bunifu.Framework.UI.BunifuFlatButton selectedTab, Panel selectedIndicator, bool selectNewTab) { //Deactivate all other tabs dashboard_indicator.Visible = deployment_indicator.Visible = management_indicator.Visible = control_indicator.Visible = scheduledtasks_indicator.Visible = false; dashboard_tab.Textcolor = deployment_tab.Textcolor = management_tab.Textcolor = control_tab.Textcolor = scheduledtasks_tab.Textcolor = Color.FromArgb(145, 155, 166); dashboard_tab.Activecolor = deployment_tab.Activecolor = management_tab.Activecolor = control_tab.Activecolor = scheduledtasks_tab.Activecolor = Color.FromArgb(26, 32, 40); dashboard_tab.BackColor = deployment_tab.BackColor = management_tab.BackColor = control_tab.BackColor = scheduledtasks_tab.BackColor = Color.FromArgb(26, 32, 40); if (selectNewTab) //If True { //Make selected tab active selectedTab.Textcolor = Color.FromArgb(67, 181, 129); selectedTab.Activecolor = Color.FromArgb(16, 22, 30); selectedTab.BackColor = Color.FromArgb(16, 22, 30); selectedIndicator.Visible = true; } }
/// <summary> /// Triggered when the category buttons are clicked /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CategoryButton_Click(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuFlatButton btn = (Bunifu.Framework.UI.BunifuFlatButton)sender; btn_One.selected = false; btn_Two.selected = false; btn_Three.selected = false; btn_Four.selected = false; btn_Five.selected = false; btn.selected = true; DefaultButtonTextColor = System.Drawing.Color.DarkGray; btn.Textcolor = System.Drawing.Color.Coral; int tag = int.Parse(btn.Tag.ToString()); ActiveCategory = tag; switch (tag) { case 0: RenderOne(); break; case 1: RenderTwo(); break; case 2: RenderThree(); break; case 3: RenderFour(); break; case 4: RenderFive(); break; default: break; } }
private void odem_turuile_hesap_kapat_Click(object sender, EventArgs e) { string isim = ""; int buton_no; Bunifu.Framework.UI.BunifuFlatButton genel = (sender as Bunifu.Framework.UI.BunifuFlatButton); isim = genel.Name; buton_no = Convert.ToInt16(isim.Substring(9, 2)); if (buton_no == 1) { odeme_turu = "Nakit"; lb_odeme_tur_aciklama.Text = "Ödeme türü olarak NAKİT seçildi."; } else if (buton_no == 2) { odeme_turu = "Kredi Kartı"; lb_odeme_tur_aciklama.Text = "Ödeme türü olarak KREDİ KARTI seçildi."; } else if (buton_no == 3) { odeme_turu = "Diğerleri"; lb_odeme_tur_aciklama.Text = "Ödeme türü olarak DİĞERLERİ seçildi."; } else if (buton_no == 4) //Hesap Kapat Butonu { hesap_kapat(odeme_turu); } else {//Toplam Ürünleri Göster veritabani.adisyon_urun_birlestir(lv_adisyon, masa_no); lv_adisyon.Columns[0].Width = lv_adisyon.Width / 4 - 1; lv_adisyon.Columns[1].Width = lv_adisyon.Width / 4 - 1; lv_adisyon.Columns[2].Width = lv_adisyon.Width / 4 - 1; lv_adisyon.Columns[3].Width = lv_adisyon.Width / 4 - 1; foreach (ListViewItem item in lv_adisyon.Items) { item.BackColor = item.Index % 2 == 0 ? Color.White : Color.LightBlue; } pl_toplamgoster.Visible = true; pl_toplamgoster.Height = this.Height; } }
//metodo para cambiar color de texto botones y el sender representa // el boton que yo seleccione public void color_texto_botones(Bunifu.Framework.UI.BunifuFlatButton sender) { btn_dashboard.Textcolor = Color.White; btn_producto.Textcolor = Color.White; btn_ventas.Textcolor = Color.White; btn_compras.Textcolor = Color.White; btn_trabajadores.Textcolor = Color.White; btn_clientes.Textcolor = Color.White; btn_proveedores.Textcolor = Color.White; btn_ganancia.Textcolor = Color.White; sender.selected = true; if (sender.selected) { sender.Textcolor = Color.FromArgb(98, 195, 140); } }
private void Form2_Load(object sender, EventArgs e) { panel1.Location = new System.Drawing.Point(gunaShadowPanel1.Width, gunaGradient2Panel2.Height); panel1.Size = new System.Drawing.Size(this.Width - gunaShadowPanel1.Width, this.Height - gunaGradient2Panel2.Height); tab1QLBanAn1.Location = new Point(0, 0); tab1QLBanAn1.Size = new System.Drawing.Size(this.Width - gunaShadowPanel1.Width, this.Height - gunaGradient2Panel2.Height); tab2QLThucDon1.Location = new Point(0, 0); tab2QLThucDon1.Size = panel1.Size; tab3.Location = new Point(0, 0); tab3.Size = panel1.Size; tab4.Location = new Point(0, 0); tab4.Size = panel1.Size; tab5.Location = new Point(0, 0); tab5.Size = panel1.Size; LoadInPanel(); button = QLBAn; button.BackColor = Color.FromArgb(136, 59, 176); }
private void SetTab(Bunifu.Framework.UI.BunifuFlatButton sender) { InvisingAllTabs(); sender.selected = true; SelectedButton = sender.Name; if (sender.Name == "ZEngine_TeamMenu") { ZETab.Parent = ContentPanel; try { ZETab.Show(); } catch (Exception) { } } else if (sender.Name == "GGC_TeamMenu") { GGTab.Parent = ContentPanel; GGTab.Show(); } else if (sender.Name == "StatMenu_Button") { StatisticsTab.Parent = ContentPanel; StatisticsTab.Show(); } else if (sender.Name == "SettingsButton_Menu") { SettingsTab.Parent = ContentPanel; SettingsTab.Show(); } else if (sender.Name == "NotifyButton_Menu") { NotifyTab.Parent = ContentPanel; NotifyTab.Show(); } else { MessageBox.Show("KeyUP Not detect !"); } }
private void QLTD_Click(object sender, EventArgs e) { if (TaiKhoangDN.Substring(0, 2) == "NV") { QLTD.colselected = Color.White; button.colbackground = Color.FromArgb(136, 59, 176); MessageBox.Show("Chỉ có chức vụ quản lý mới được truy cập vào mục này."); } else { if (c != tab2QLThucDon1) { button.colbackground = Color.White; tab2QLThucDon1.BringToFront(); c = tab2QLThucDon1; button = QLTD; } } }
private void TK_Click(object sender, EventArgs e) { if (TaiKhoangDN.Substring(0, 2) == "NV") { TK.colselected = Color.White; button.colbackground = Color.FromArgb(136, 59, 176); MessageBox.Show("Chỉ có chức vụ quản lý mới được truy cập vào mục này.", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { if (c != tab5) { button.colbackground = Color.White; tab5.BringToFront(); c = tab5; button = QLHD; } } }
public Data dataProgram { get; set; } // The data to save and load public Form1() { InitializeComponent(); this.RightToLeftLayout = true; checkedLessonsFromCourses = new List<Lesson>(); PanelCoursesList.WIDTH_WINDOWS = panelMain.Width; PanelCoursesList.HEIGHT_WINDOWS = panelMain.Height; form_Import = new FormImport(this); lbl_NameUser.SendToBack(); Data dataRef = new Data(); dataProgram = dataRef.LoadData(); updateDateFromSavement(); // setup at first home page schedule enablePanel(btn_home); panel_Scheduler = new PanelSchedule(this); panel_CourseList_cards = new PanelCoursesList(this, importCourses); panel_CourseList_array = new PanelCoursesListBackup(importCourses); panel_savements = new PanelSavements(this); updateDateFromSavement(); if (newCheckingCoursesDone) { if (checkedCourses == null) checkedCourses = new LessonList(); panel_Scheduler.setNewList(checkedCourses); panel_Scheduler.ClickRightsRadioButtonsByLessonsSelected(checkedLessonsFromCourses); newCheckingCoursesDone = false; } pnl_schedule = panel_Scheduler.getPanel(); panelMain.Controls.Add(pnl_schedule); Bunifu.Framework.UI.BunifuFlatButton ext = btn_exit_out; iconExitRed = new Bitmap(Schedule.Properties.Resources.ShutdownRed, btn_exit_out.Iconimage.Size.Width, btn_exit_out.Iconimage.Size.Height); iconExitWhite = new Bitmap(Schedule.Properties.Resources.shutdown, btn_exit_out.Iconimage.Size.Width, btn_exit_out.Iconimage.Size.Height); ImportNewDataFromFile = false; newCheckingCoursesDone = false; }
/// <summary> /// Triggered when the category buttons are clicked /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CategoryButton_Click(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuFlatButton btn = (Bunifu.Framework.UI.BunifuFlatButton)sender; btn_One.selected = false; btn_Two.selected = false; btn_Three.selected = false; btn.selected = true; DefaultButtonTextColor = Color.DarkGray; btn.Textcolor = Color.Coral; int tag = int.Parse(btn.Tag.ToString()); ActiveCategory = tag; switch (tag) { case 0: pnl_PercentagePanel.Visible = false; btn_unconfIncludedStatusButton.Visible = false; RenderOne(); break; case 1: pnl_PercentagePanel.Visible = false; btn_unconfIncludedStatusButton.Visible = false; RenderTwo(); break; case 2: pnl_PercentagePanel.Visible = true; btn_unconfIncludedStatusButton.Visible = true; RenderThree(); break; default: break; } }
private void btn_TrangChu_Click(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuFlatButton btn = (Bunifu.Framework.UI.BunifuFlatButton)sender; ChangeTitle(btn.Text.TrimStart()); InVisibleAllUserControl(); if (btn == btn_TrangChu) { ucTrangChu1.Visible = true; } else if (btn == btn_BanThuoc) { ucBanThuoc1.Visible = true; } else if (btn == btn_QuanLyThuoc) { ucQuanLyThuoc1.Visible = true; } else if (btn == btn_NhapHang) { ucNhapHang1.Visible = true; } else if (btn == btn_PhieuNhap) { ucPhieuNhap1.Visible = true; } else if (btn == btn_DonThuoc) { ucDonThuoc1.Visible = true; } else if (btn == btn_NhaCungCap) { ucNhaCungCap1.Visible = true; } else if (btn == btn_CaiDat) { ucCaiDat1.Visible = true; } else { ucThongTin1.Visible = true; } }
/// <summary> /// Triggered when the user clicks a 'view' button which then in return will present /// a new window with a datagrid view. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void btn_viewData_Click(object sender, EventArgs e) { try { using (DataViewer dv = new DataViewer()) { Bunifu.Framework.UI.BunifuFlatButton btn = (Bunifu.Framework.UI.BunifuFlatButton)sender; int tag = int.Parse(btn.Tag.ToString()); // Initial Confirmation vs PR Planned Date dv.DataLoader += KpiDataTableLoader.Purch.LoadInitialConfVsPrPlanDateDataTable; dv.ColumnTag = tag; dv.ShowDialog(); } } catch (Exception ex) { MessageBox.Show(ex.Message, "KPI -> Purch Values Viewer Calculation Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
/// <summary> /// Triggered when the user clicks a 'view' button which then in return will present /// a new window with a datagrid view. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void btn_viewData_Click(object sender, EventArgs e) { try { using (DataViewer dv = new DataViewer()) { Bunifu.Framework.UI.BunifuFlatButton btn = (Bunifu.Framework.UI.BunifuFlatButton)sender; int tag = int.Parse(btn.Tag.ToString()); // PR Release Date to Confrimation Entry Date dv.DataLoader += KpaDataTableLoader.PurchTotal.LoadPrReleaseToConfEntryDataTable; dv.ColumnTag = tag; dv.ShowDialog(); } } catch (Exception ex) { MessageBox.Show(ex.Message, "KPA -> Purch Total Data Viewer Calculation Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void FormMain_Load(object sender, EventArgs e) { pnCoordinates.Location = new System.Drawing.Point(pnControl.Width, pnHeaderWhite.Height); pnCoordinates.Size = new System.Drawing.Size(this.Width - pnControl.Width, this.Height - pnHeaderWhite.Height); tab1.Location = new Point(0, 0); tab1.Size = new System.Drawing.Size(this.Width - pnControl.Width, this.Height - pnHeaderWhite.Height); tab2.Location = new Point(0, 0); tab2.Size = pnCoordinates.Size; tab3.Location = new Point(0, 0); tab3.Size = pnCoordinates.Size; tab4.Location = new Point(0, 0); tab4.Size = pnCoordinates.Size; tab5.Location = new Point(0, 0); tab5.Size = pnCoordinates.Size; tab1.TKDN = TaiKhoangDN; tab2.TKDN = TaiKhoangDN; tab3.TKDN = TaiKhoangDN; tab4.TKDN = TaiKhoangDN; LoadInPanel(); button = QLBAn; button.BackColor = Color.FromArgb(136, 59, 176); }
/// <summary> /// Triggered when the user clicks a 'view' button which then in return will present /// a new window with a datagrid view. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void btn_viewData_Click(object sender, EventArgs e) { try { using (DataViewer dv = new DataViewer()) { Bunifu.Framework.UI.BunifuFlatButton btn = (Bunifu.Framework.UI.BunifuFlatButton)sender; int tag = int.Parse(btn.Tag.ToString()); switch (ActiveCategory) { case 0: // PRs Aging Released dv.DataLoader += KpaDataTableLoader.Purch.LoadPrsAgingReleasedDataTable; dv.ColumnTag = tag; break; case 1: // PO First Release dv.DataLoader += KpaDataTableLoader.Purch.LoadPoFirstReleaseDataTable; dv.ColumnTag = tag; break; case 2: // PO Prev Release dv.DataLoader += KpaDataTableLoader.Purch.LoadPoPrevReleaseDataTable; dv.ColumnTag = tag; break; case 3: // No Confirmations dv.DataLoader += KpaDataTableLoader.Purch.LoadNoConfirmationsDataTable; dv.ColumnTag = tag; break; } dv.ShowDialog(); } } catch (Exception ex) { MessageBox.Show(ex.Message, "KPA -> Purch Data Viewer Calculation Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
/// <summary> /// Triggered when the category buttons are clicked /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CategoryButton_Click(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuFlatButton btn = (Bunifu.Framework.UI.BunifuFlatButton)sender; btn_One.selected = false; btn.selected = true; DefaultButtonTextColor = Color.DarkGray; btn.Textcolor = Color.Coral; int tag = int.Parse(btn.Tag.ToString()); ActiveCategory = tag; switch (tag) { case 0: RenderOne(); break; default: break; } }
private void Letter_Click(object sender, EventArgs e) { Bunifu.Framework.UI.BunifuFlatButton b = (Bunifu.Framework.UI.BunifuFlatButton)sender; if (Game.CheckForMatch(b.Text)) { StatusTextBox.ForeColor = Color.SeaGreen; StatusTextBox.Text = $"> Буква: [{b.Text}] - Верно!"; SecretWordTextBox.Text = Game.UpdateSecretWordState(); if (Game.Win) { GoodEnding(); } } else { StatusTextBox.ForeColor = Color.Red; StatusTextBox.Text = $"> Буква: [{b.Text}] - Неверно!"; Game.Lives--; UpdateHangmanState(); } b.Enabled = false; ResetTimer(); }
/// <summary> /// Triggered when the user clicks a 'view' button which then in return will present /// a new window with a datagrid view. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void btn_viewData_Click(object sender, EventArgs e) { try { using (DataViewer dv = new DataViewer()) { Bunifu.Framework.UI.BunifuFlatButton btn = (Bunifu.Framework.UI.BunifuFlatButton)sender; int tag = int.Parse(btn.Tag.ToString()); switch (ActiveCategory) { case 0: // PR 2nd Lvl Release Vs PO Creation dv.DataLoader += KpiDataTableLoader.PurchTwo.LoadPr2ndLvlRelVsPOCreationDataTable; dv.ColumnTag = tag; break; case 1: // PO Creatoin vs PO Release dv.DataLoader += KpiDataTableLoader.PurchTwo.LoadPoCreationVsPoReleaseDataTable; dv.ColumnTag = tag; break; case 2: // PO Release vs PO Confirmation dv.DataLoader += KpiDataTableLoader.PurchTwo.LoadPoReleaseVsPoConfDataTable; dv.ColumnTag = tag; break; default: break; } dv.ShowDialog(); } } catch (Exception ex) { MessageBox.Show(ex.Message, "KPI -> Purch Two Values Viewer Calculation Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
/// <summary> /// Triggered when the user clicks a 'view' button which then in return will present /// a new window with a datagrid view. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void btn_viewData_Click(object sender, EventArgs e) { try { using (DataViewer dv = new DataViewer()) { Bunifu.Framework.UI.BunifuFlatButton btn = (Bunifu.Framework.UI.BunifuFlatButton)sender; int tag = int.Parse(btn.Tag.ToString()); switch (ActiveCategory) { case 0: // PR Planned Date vs Current Planned dv.DataLoader += KpiDataTableLoader.Plan.LoadPrPlanDateVsCurrentPlanDateDataTable; dv.ColumnTag = tag; break; case 1: // (Original Planned Date - 2nd Lvl Release Date) vs Coded lead-time dv.DataLoader += KpiDataTableLoader.Plan.LoadOrigPlanDate2ndLvlRelDate_CodedLeadDataTable; dv.ColumnTag = tag; break; case 2: // (Current Planned Date - 2nd Lvl Release Date) vs Coded lead-time dv.DataLoader += KpiDataTableLoader.Plan.LoadCurrPlanDate2ndLvlRelDate_CodedLeadDataTable; dv.ColumnTag = tag; break; default: break; } dv.ShowDialog(); } } catch (Exception ex) { MessageBox.Show(ex.Message, "KPI -> Plan Values Viewer Calculation Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private Bunifu.Framework.UI.BunifuFlatButton GetSelectedButton() { Bunifu.Framework.UI.BunifuFlatButton responseButton = null; switch (SelectedButton) { case "ZEngine_TeamMenu": { responseButton = ZEngine_TeamMenu; break; } case "NotifyButton_Menu": { responseButton = NotifyButton_Menu; break; } case "SettingsButton_Menu": { responseButton = SettingsButton_Menu; break; } default: { responseButton = ZEngine_TeamMenu; break; } } return(responseButton); }
private void enablePanel(Bunifu.Framework.UI.BunifuFlatButton btn = null) { panelMain.Controls.Remove(pnl_schedule); panelMain.Controls.Remove(pnl_coursList); panelMain.Controls.Remove(form_Import); panelMain.Controls.Remove(pnl_savement); if (btn == btn_home) { lbl_title_selected.Text = "דף ראשי"; } else if (btn == btn_courses) { lbl_title_selected.Text = "רשימת קורסים"; } else if (btn == btn_import) { lbl_title_selected.Text = "ייבוא"; } else if (btn == btn_save) { lbl_title_selected.Text = "שמירה / טעינה"; } else if (btn == btn_setting) { lbl_title_selected.Text = "הגדרות"; } else if (btn == btn_export) { lbl_title_selected.Text = "ייצוא"; } else if (btn == btn_listCourses2) { lbl_title_selected.Text = "רשימת שיעורים"; } }
/// <summary> /// Triggered when the user clicks a 'view' button which then in return will present /// a new window with a datagrid view. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btn_viewData_Click(object sender, EventArgs e) { try { using (DataViewer dv = new DataViewer()) { Bunifu.Framework.UI.BunifuFlatButton btn = (Bunifu.Framework.UI.BunifuFlatButton)sender; int tag = int.Parse(btn.Tag.ToString()); switch (ActiveCategory) { case 0: // PRs Aging (Not Released) dv.DataLoader += KpaDataTableLoader.ExcessStock_OpenOrders.LoadPrsAgingNotReleased; dv.ColumnTag = tag; break; case 1: // PRs Aging (Released) dv.DataLoader += KpaDataTableLoader.ExcessStock_OpenOrders.LoadPrsAgingReleased; dv.ColumnTag = tag; break; case 2: // Po Creation Date to Confirmation Entry dv.DataLoader += KpaDataTableLoader.ExcessStock_OpenOrders.LoadPoConfThruDeliv; dv.ColumnTag = tag; break; default: break; } dv.ShowDialog(); } } catch (Exception ex) { MessageBox.Show(ex.Message, "KPA -> Excess Stock - Open Orders Dat Viewer Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }