private void miAddEmployee_Click(object sender, RoutedEventArgs e)
        {
            var editorF = new EditorFormEmployee();

            editorF.Owner = this;
            editorF.ShowDialog();
            this.Show();
        }
        private void EmployeeEdit_Click(object sender, RoutedEventArgs e)
        {
            var editorF = new EditorFormEmployee((Employee)((sender as MenuItem).DataContext));

            editorF.Owner = this;
            editorF.ShowDialog();
            this.Show();
        }
Example #3
0
 private void EmployeeEdit_Click(object sender, RoutedEventArgs e)
 {
     var editorF = new EditorFormEmployee((Employee)((sender as MenuItem).DataContext));
     editorF.Owner = this;
     editorF.ShowDialog();
     this.Show();
 }
Example #4
0
 private void miAddEmployee_Click(object sender, RoutedEventArgs e)
 {
     var editorF = new EditorFormEmployee();
     editorF.Owner = this;
     editorF.ShowDialog();
     this.Show();
 }