Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DataTable dr = new DataTable();

            dr.Columns.Add("Password");
            dr.Rows.Add();
            Frm_Password frm = new Frm_Password(dr);

            frm.ShowDialog();

            if (dr.Rows[0][0].ToString() == "1223456")
            {
                Application.Exit();
            }
        }
Ejemplo n.º 2
0
        private void 修改ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DataTable dr = new DataTable();

            dr.Columns.Add("Password");
            dr.Rows.Add();
            Frm_Password frm = new Frm_Password(dr);

            frm.ShowDialog();

            if (dr.Rows[0][0].ToString() == "1223456")
            {
                openFileDialog1.Filter = "JPG|*.JPG";
                openFileDialog1.ShowDialog();
            }
        }