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

            pAdd.Show();
        }