コード例 #1
0
ファイル: View.xaml.cs プロジェクト: scrbkv/NoteBook
 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();
 }
コード例 #2
0
ファイル: View.xaml.cs プロジェクト: scrbkv/NoteBook
 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();
 }