Exemplo n.º 1
0
        private void QnfStatsEdit_Click(object sender, EventArgs e)
        {
            string newStats = QnfStats.Show(QnfStatsTextEdit.Text);

            if (newStats != null)
            {
                QnfStatsTextEdit.Text = newStats;
            }

            return;
        }
Exemplo n.º 2
0
        public static string Show(string serializedQnf)
        {
            if (Instance == null)
            {
                Instance = new QnfStats();
            }
            Instance.Deserialize(serializedQnf);
            DialogResult dr = Instance.ShowDialog(SessionManager.ActiveForm);

            if (dr == DialogResult.OK)
            {
                serializedQnf = Instance.Serialize();
                return(serializedQnf);
            }

            else
            {
                return(null);
            }
        }