Ejemplo n.º 1
0
        private void OpenDlg(string s1)
        {
            popup = new frmGSHOP08_Pop02();
            //popup.Owner = this;

            if (s1 == "1")
            {
                popup.pURL = lblpic1.Text;
            }
            else if (s1 == "2")
            {
                popup.pURL = lblpic2.Text;
            }
            else if (s1 == "3")
            {
                popup.pURL = lblpic3.Text;
            }
            else if (s1 == "4")
            {
                popup.pURL = lblpic4.Text;
            }
            else if (s1 == "5")
            {
                popup.pURL = lblpic5.Text;
            }

            popup.FormClosed += popup_FormClosed;
            popup.ShowDialog();
        }
Ejemplo n.º 2
0
        private void popup_FormClosed(object sender, FormClosedEventArgs e)
        {
            popup.FormClosed -= popup_FormClosed;

            //if (popup.DialogResult == DialogResult.OK)
            //{
            //    this.txtX.EditValue = popup.nX;
            //    this.txtY.EditValue = popup.nY;
            //}

            //OpenTag(gfloorInfo.FLR, "LDT");
            popup = null;
        }