Exemplo n.º 1
0
 private void AddButton_Click(object sender, RoutedEventArgs e)
 {
     this.editWindow = new EditWindow(Positions);
     this.editWindow.ApplyChanges   += EditWindow_ApplyChanges;
     this.editWindow.RecordModified += EditWindow_RecordModified;
     this.editWindow.AddNewRecord   += EditWindow_AddNewRecord;
     editWindow.ShowDialog();
 }
Exemplo n.º 2
0
 private void EditButton_Click(object sender, RoutedEventArgs e)
 {
     this.editWindow = new EditWindow(this.Records.Items[this.Records.SelectedIndex] as Record, Positions);
     this.editWindow.ApplyChanges   += EditWindow_ApplyChanges;
     this.editWindow.RecordModified += EditWindow_RecordModified;
     this.editWindow.AddNewRecord   += EditWindow_AddNewRecord;
     this.editWindow.ShowDialog();
 }