private void Group_KeyUp(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { Controller.ChangeContactGroup(Controller.CurrentContact, ((ComboBox)sender).Text); GroupGraph.Update(); } }
private void Button_Click_2(object sender, RoutedEventArgs e) { Controller.AddSimpleDetail(AddDetailTitle.Text, AddDetailValue.Text); AddDetailTitle.Text = ""; AddDetailValue.Text = ""; AddDetailPanel.Visibility = Visibility.Collapsed; GroupGraph.Update(); }
private void Button_Click_1(object sender, RoutedEventArgs e) { if (AddContactName.Text.Length > 0) { AddContactPanel.Visibility = Visibility.Collapsed; Controller.CreateContact(AddContactName.Text); AddContactName.Text = ""; GroupGraph.Update(); } }
private void RemoveButton_Click(object sender, RoutedEventArgs e) { Controller.RemoveContact(); GroupGraph.Update(); }
public MainWindow(Controller c) { Controller = c; InitializeComponent(); GroupGraph.Update(); }
private void EditableField_Deleted(EditableField obj) { Controller.CurrentContact.Details.Remove(obj.Tag as ContactDetail); ((ContactDetail)obj.Tag).Destroy(); GroupGraph.Update(); }