Exemple #1
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            AddOtherIncome addOtherIncome = new AddOtherIncome();

            addOtherIncome.mode  = 1;
            addOtherIncome.empid = empid;
            addOtherIncome.Show();
        }
Exemple #2
0
        private void edit_Click(object sender, RoutedEventArgs e)
        {
            var            x = ((DMSIClass._OtherIncome)datagridview.SelectedItem);
            AddOtherIncome addOtherIncome = new AddOtherIncome();

            addOtherIncome.otherincid = x.OtherIncomeID;
            addOtherIncome.mode       = 2;
            addOtherIncome.empid      = empid;
            addOtherIncome.Show();
        }