private void 修改ToolStripMenuItem_Click(object sender, EventArgs e) { Form12 Form12 = new Form12(); Form12.ShowDialog(); }
private void button4_Click(object sender, EventArgs e) { string autho; using (sqlAdapter sqladp = new sqlAdapter()) { string sql = "select autho from [user] where username = '******'"; autho = sqladp.ExecuteScalar(sql) as string; } if (autho == "1" || autho == "0") { Form12 Form12 = new Form12(); Form12.ShowDialog(); } else { MessageBox.Show("权限不足", "提示"); return; } }