private void AddCompanyProc() { NewCompany = new NewCompanyModel(); _AddCompanyWindow = new AddCompanyWindow(); _AddCompanyWindow.Owner = Application.Current.MainWindow; _AddCompanyWindow.ShowDialog(); }
private void AddCompany_Click(object sender, RoutedEventArgs e) { AddCompanyWindow addCompanyWindow = new AddCompanyWindow(vm); addCompanyWindow.ShowDialog(); }