예제 #1
0
        private void ButtonAdd_Click(object sender, RoutedEventArgs e)
        {
            var form = new AddEditDayCost(DatePickerDate.SelectedDate.Value);

            form.ShowDialog();

            if (form.Date != null)
            {
                FillDataGrid(form.Date.Value);
            }
        }
예제 #2
0
        private void ButtonEdit_OnClick(object sender, RoutedEventArgs e)
        {
            var infoCost = DataGridCurrentDateCosts.SelectedItem as InfoCost;

            var form = new AddEditDayCost(infoCost.Date, infoCost.Id);

            form.ShowDialog();

            if (form.Date != null)
            {
                FillDataGrid(form.Date.Value);
            }
        }