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."); } }
private void editToolStripMenuItem1_Click(object sender, EventArgs e) { PropertyEdit pEdit = new PropertyEdit(); pEdit.Show(); }