Ejemplo n.º 1
0
        private void txtEQPPPID_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                TextBox txtTemp = (TextBox)sender;
                strClickType = txtTemp.Tag.ToString();

                if (pfrmPPIDList != null)
                {
                    pfrmPPIDList.Close();
                }

                pfrmPPIDList = new frmPPIDList();
                pfrmPPIDList.subFormLoad("EQP", 3);
                pfrmPPIDList.ppidselect += new frmPPIDList.PPIDSelect(pfrmPPIDList_ppidselect);

                if (pfrmPPIDList.ShowDialog() == System.Windows.Forms.DialogResult.Yes)
                {
                    txtTemp.Text = strPPIDName;
                }
            }
            catch (Exception ex)
            {
                this.PInfo.subLog_Set(InfoAct.clsInfo.LogType.CIM, ex.ToString());
            }
        }
Ejemplo n.º 2
0
        private void txtHost_HOSTPPID_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                if (pfrmPPIDList != null)
                {
                    pfrmPPIDList.Close();
                }
                pfrmPPIDList             = new frmPPIDList();
                pfrmPPIDList.ppidselect += new frmPPIDList.PPIDSelect(pfrmPPIDList_ppidselect);
                pfrmPPIDList.subFormLoad("HOST", 2);

                if (pfrmPPIDList.ShowDialog() == DialogResult.Yes)
                {
                    subDisplayChange("Host_HostPPID");
                }
                else
                {
                    strSelectPPIDName = "";
                }
            }
            catch (Exception ex)
            {
                pInfo.subLog_Set(clsInfo.LogType.CIM, ex.ToString());
            }
        }