Exemplo n.º 1
0
        private void btnShow_Click(object sender, EventArgs e)
        {
            if (dialog == null)
            {
                dialog = new frmDialog();
                dialog.iAmDying = DialogHasSuicided;
                dialog.heresSomeText = DialogStringUpdate;
            }

            dialog.updateFromText(txtTo.Text);
            dialog.StartPosition = FormStartPosition.Manual;
            dialog.Location = new Point(0, 0);
            dialog.Show();
            btnHide.Enabled = true;
            btnShow.Enabled = false;
            this.Focus();
        }
Exemplo n.º 2
0
        private void btnShow_Click(object sender, EventArgs e)
        {
            if (dialog == null)
            {
                dialog               = new frmDialog();
                dialog.iAmDying      = DialogHasSuicided;
                dialog.heresSomeText = DialogStringUpdate;
            }

            dialog.updateFromText(txtTo.Text);
            dialog.StartPosition = FormStartPosition.Manual;
            dialog.Location      = new Point(0, 0);
            dialog.Show();
            btnHide.Enabled = true;
            btnShow.Enabled = false;
            this.Focus();
        }