private void metroButton2_Click(object sender, EventArgs e) { var frm = new frm_Importer(); frm.Text = "Import From Excel File"; frm.MyCaller_proc = this; frm.YearSource = YearsOf.ProcessSetup; FormHelpers.ShowDialog(frm); }
private void listTS_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { var strtag = e.ClickedItem.Tag; if (BPSolutionsTools.BPSUtilitiesV1.NZ(strtag, "").ToString() != "") { switch (strtag.ToString().ToLower()) { case "new": ShowEntryForm(FormState.Add); break; case "edit": ShowEntryForm(FormState.Edit); break; case "delete": DeleteRecord(); break; case "view": ShowEntryForm(FormState.View); break; case "refresh": RefreshGrid(); PageManager(1); break; case "print": GenerateReport("rpt_Component.rpt", "sp_Component"); break; case "copy": var frm = new frm_YearHelper(); frm.Text = "Copy Previous Components"; frm.MyCaller_com = this; frm.YearSource = YearsOf.Components; FormHelpers.ShowDialog(frm); break; case "import": var form = new frm_Importer(); form.Text = "Import From Excel File"; form.MyCaller_com = this; form.YearSource = YearsOf.Components; FormHelpers.ShowDialog(form); break; } } }
private void listTS_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { var strtag = e.ClickedItem.Tag; if (BPSolutionsTools.BPSUtilitiesV1.NZ(strtag, "").ToString() != "") { switch (strtag.ToString().ToLower()) { case "new": ShowEntryForm(FormState.Add); break; case "edit": ShowEntryForm(FormState.Edit); break; case "delete": Delete(); break; case "view": ShowEntryForm(FormState.View); break; case "refresh": RefreshGrid(); PageManager(1); break; case "copy": var frm = new frm_YearHelper(); frm.MyCaller_mtvp = this; frm.YearSource = YearsOf.MaintainanceTable; frm.YearofMaintenanceTable_Sub = MaintainanceTableSub.VacuumPlating; frm.Text = "Copy Previous VP"; FormHelpers.ShowDialog(frm); break; case "import": var form = new frm_Importer(); form.Text = "Import From Excel File"; form.MyCaller_mtvp = this; form.YearSource = YearsOf.MaintainanceTable; form.YearofMaintenanceTable_Sub = MaintainanceTableSub.VacuumPlating; FormHelpers.ShowDialog(form); break; } } }