예제 #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();
        }