Ejemplo n.º 1
0
        private void MenuUpdatePersons_Click(object sender, RoutedEventArgs e)
        {
            UpdatePersonWindow wnd = new UpdatePersonWindow();

            wnd.Show();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// The user wants to update a line.
 /// </summary>
 /// <param name="line">Line to update.</param>
 private void UpdateLine(Line line)
 {
     // TODO: call a dialog using the MVVM pattern to update the line.
     UpdatePersonWindow updatePersonWindow = new UpdatePersonWindow(SelectedLine);
     var result = updatePersonWindow.ShowDialog();
 }