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

            addDeduction.mode  = 1;
            addDeduction.empid = empid;
            addDeduction.Show();
        }
Пример #2
0
        private void edit_Click(object sender, RoutedEventArgs e)
        {
            var          x            = ((DMSIClass._Deduction)datagridview.SelectedItem);
            AddDeduction addDeduction = new AddDeduction();

            addDeduction.deductionid = x.DeductionID;
            addDeduction.mode        = 2;
            addDeduction.empid       = empid;
            addDeduction.Show();
        }