Beispiel #1
0
        private void QnfSplitEdit_Click(object sender, EventArgs e)
        {
            QnfSplitDialog qnf = new QnfSplitDialog();

            qnf.Deserialize(QnfSplitFormat.Text);
            DialogResult dr = qnf.ShowDialog(SessionManager.ActiveForm);

            if (dr == DialogResult.Cancel)
            {
                return;
            }
            QnfSplitFormat.Text = qnf.Serialize();
            return;
        }
Beispiel #2
0
        public static string Show(
            string qnfSplitText)
        {
            if (Instance == null)
            {
                Instance = new QnfSplitDialog();
            }

            Instance.Deserialize(qnfSplitText);

            DialogResult dr = Instance.ShowDialog(SessionManager.ActiveForm);

            if (dr == DialogResult.Cancel)
            {
                return(null);
            }

            qnfSplitText = Instance.Serialize();
            return(qnfSplitText);
        }