예제 #1
0
        private void NewButton_OnClick(object sender, RoutedEventArgs e)
        {
            var window = new ContractForm();
            var result = window.ShowDialog();

            if (result.HasValue && result.Value)
            {
                filterButton_Click(sender, null);
            }
        }
예제 #2
0
        private void DataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            var model = (ContractReportModel)DataGrid.SelectedItem;

            if (model == null)
            {
                return;
            }

            var window = new ContractForm(model.Id);
            var result = window.ShowDialog();

            if (result.HasValue && result.Value)
            {
                filterButton_Click(sender, null);
            }
        }