Beispiel #1
0
 private void 删除ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Form7 Form7 = new Form7();
     Form7.ShowDialog();
 }
Beispiel #2
0
 private void button2_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")
     {
         Form7 Form7 = new Form7();
         Form7.ShowDialog();
     }
     else
     {
         MessageBox.Show("权限不足", "提示");
         return;
     }
 }