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