Example #1
0
 private void Group_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         Controller.ChangeContactGroup(Controller.CurrentContact, ((ComboBox)sender).Text);
         GroupGraph.Update();
     }
 }
Example #2
0
 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();
 }
Example #3
0
 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();
     }
 }
Example #4
0
 private void RemoveButton_Click(object sender, RoutedEventArgs e)
 {
     Controller.RemoveContact();
     GroupGraph.Update();
 }
Example #5
0
 public MainWindow(Controller c)
 {
     Controller = c;
     InitializeComponent();
     GroupGraph.Update();
 }
Example #6
0
 private void EditableField_Deleted(EditableField obj)
 {
     Controller.CurrentContact.Details.Remove(obj.Tag as ContactDetail);
     ((ContactDetail)obj.Tag).Destroy();
     GroupGraph.Update();
 }