예제 #1
0
 private void editToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (Convert.ToInt32(Program.UserInfo.Role_id) == 1 || Convert.ToInt32(Program.UserInfo.Role_id) == 2)
     {
         PropertyEdit pEdit = new PropertyEdit();
         pEdit.Show();
     }
     else
     {
         MessageBox.Show("Only agents and amdins can add properties.");
     }
 }
예제 #2
0
        private void editToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            PropertyEdit pEdit = new PropertyEdit();

            pEdit.Show();
        }