コード例 #1
0
        /*=== events ===*/

        // Fired when the unlock button is clicked.
        private void btnUnlock_Click(object sender, EventArgs e)
        {
            UnlockForm form = new UnlockForm();

            if (form.ShowDialog() == DialogResult.OK)
            {
                this.Close();
            }
        }
コード例 #2
0
        // Fired when the user clicks the unlock button.
        private void btnUnlock_Click(object sender, EventArgs e)
        {
            UnlockForm form = new UnlockForm();

            form.ShowDialog();
        }