Пример #1
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            AddIncomeType addIncomeType = new AddIncomeType();

            addIncomeType.mode = 1;
            addIncomeType.Show();
        }
Пример #2
0
        private void edit_Click(object sender, RoutedEventArgs e)
        {
            var           x             = ((IncomeType)datagridview.SelectedItem);
            AddIncomeType addIncomeType = new AddIncomeType();

            addIncomeType.incometypeid = x.IncomeTypeID;
            addIncomeType.mode         = 2;
            addIncomeType.Show();
        }