void tabForms_DoubleClick(object sender, EventArgs e) { try { // get the tab page under the click clickedTab = tabForms.SelectedTab; if (clickedTab != null) { frmViewer _viewer = new frmViewer(clickedTab); _viewer.Show(this); } } catch (Exception ex) { CommonRoutines.DisplayErrorMessage("$E:" + moduleName + ".InitializeApp > " + ex.Message); } return; }
/// <summary> /// string Execute() /// Execute /// </summary> /// <returns></returns> public string Execute() { string _result = ""; try { // load the viewer form IGenFormCommonRoutines.runMode = true; frmViewer _viewer = new frmViewer(); _viewer.WindowState = FormWindowState.Maximized; _viewer.displayIGenForms = this; _viewer.DisplayForms(); _viewer.ShowDialog(); IGenFormCommonRoutines.runMode = false; _viewer.Dispose(); CommonRoutines.DisplayStatus("Done"); } catch (Exception ex) { CommonRoutines.DisplayErrorMessage("$E:" + moduleName + ".Execute > " + ex.Message); } return _result; }
/// <summary> /// void ProcessRightClickItem(string itemName,string itemTag) /// Process the selection of a drop down menu item /// </summary> /// <param name="itemName"></param> /// <param name="itemTag"></param> void ProcessRightClickItem(string itemName, string itemTag, string itemChecked) { try { string itemKey = (itemName.ToUpper().IndexOf("ADDFIELDS-") == 0) ? "ADDFIELDS" : itemName; itemKey = (itemKey.ToUpper().IndexOf("ALIGN-") == 0) ? "ALIGN" : itemKey; switch (itemKey.ToUpper()) { case "BREAKOUT": // get the tab page under the click if (clickedTab != null) { frmViewer _viewer = new frmViewer(clickedTab); _viewer.Show(this); } break; } } catch (Exception ex) { CommonRoutines.DisplayErrorMessage("$E:" + moduleName + ".Item_Click > " + ex.Message); } return; }