コード例 #1
0
        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;
        }
コード例 #2
0
        /// <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;
        }