private void CreateNewLector() { EditLectorDialog editLector = new EditLectorDialog(client); editLector.ShowDialog(); if (editLector.lector != null) { RecreateSeminarsTree(); } }
private void lectorsListBox_DoubleClick(object sender, EventArgs e) { var lector = lectorsListBox.SelectedItem as Lector; if (lector == null) return; EditLectorDialog editLector = new EditLectorDialog(client, lector); editLector.ShowDialog(); RecreateSeminarsTree(); }