private void btnEditParticipant_Click(object sender, RoutedEventArgs e) { Topic t = EditedTopic; if (t == null || EditedDiscussion == null) { return; } Person p = lstBxParticipants.SelectedItem as Person; if (p == null) { return; } PersonDiscConfigWnd wnd = new PersonDiscConfigWnd(EditedDiscussion, p); wnd.ShowDialog(); if (wnd.person != null && !tmpPersons.Contains(wnd.person)) { tmpPersons.Remove(p); //remove previous person insertPersonOrdered(wnd.person); //add new } }
private void btnAddParticipant_Click(object sender, RoutedEventArgs e) { Topic t = EditedTopic; if (t == null || EditedDiscussion == null) { return; } PersonDiscConfigWnd wnd = new PersonDiscConfigWnd(EditedDiscussion, null); wnd.ShowDialog(); if (wnd.person != null && !tmpPersons.Contains(wnd.person)) { insertPersonOrdered(wnd.person); } }
private void btnEditParticipant_Click(object sender, RoutedEventArgs e) { Topic t = EditedTopic; if (t == null || EditedDiscussion == null) return; Person p = lstBxParticipants.SelectedItem as Person; if (p == null) return; PersonDiscConfigWnd wnd = new PersonDiscConfigWnd(EditedDiscussion, p); wnd.ShowDialog(); if (wnd.person != null && !tmpPersons.Contains(wnd.person)) { tmpPersons.Remove(p); //remove previous person insertPersonOrdered(wnd.person); //add new } }
private void btnAddParticipant_Click(object sender, RoutedEventArgs e) { Topic t = EditedTopic; if (t == null || EditedDiscussion == null) return; PersonDiscConfigWnd wnd = new PersonDiscConfigWnd(EditedDiscussion, null); wnd.ShowDialog(); if (wnd.person != null && !tmpPersons.Contains(wnd.person)) insertPersonOrdered(wnd.person); }