private void btSecurity_Click(object sender, EventArgs e) { if (selectedTask != null) { fUserTask fUT = new fUserTask(selectedTask.tbSecu, selectedTask.tbSecuGroup); fUT.ShowDialog(); selectedTask.tbSecu = fUT.Data; selectedTask.tbSecuGroup = fUT.DataGr; } }
private void btSecurity_Click(object sender, EventArgs e) { if (selectedTask != null) { if (selectedTask.tbSecu == null) { MessageBox.Show("You must update before set security"); return; } fUserTask fUT = new fUserTask(selectedTask.tbSecu, selectedTask.tbSecuGroup); fUT.ShowDialog(); selectedTask.tbSecu = fUT.Data; selectedTask.tbSecuGroup = fUT.DataGr; } }