Esempio n. 1
0
 private void deleteToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (Convert.ToInt32(Program.UserInfo.Role_id) == 1)
     {
         PropertyDelete pDelete = new PropertyDelete();
         pDelete.Show();
     }
     else
     {
         MessageBox.Show("Only amdins can delete properties.");
     }
 }
        private void deleteToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            PropertyDelete pDelete = new PropertyDelete();

            pDelete.Show();
        }