private void Edit_Contract_Click(object sender, RoutedEventArgs e)
        {
            EditContract manage_Contracts = new EditContract();

            manage_Contracts.Show();
            Close();
        }
示例#2
0
        public void Execute(object parameter)
        {
            var mainViewModel = parameter as MainViewModel;

            editContractView       = new EditContract(mainViewModel);
            editContractView.Owner = Application.Current.MainWindow;
            editContractView.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            mainViewModel.Refresh = editContractView.ShowDialog();
        }