private void button_Click(object sender, RoutedEventArgs e)
        {
            AddIncomeLogistics addIncomeLogistics = new AddIncomeLogistics();

            addIncomeLogistics.mode       = 1;
            addIncomeLogistics.employeeid = empid;
            addIncomeLogistics.Show();
        }
        private void edit_Click(object sender, RoutedEventArgs e)
        {
            var x = ((DMSIClass._Income)datagridview.SelectedItem);
            AddIncomeLogistics addIncomeLogistics = new AddIncomeLogistics();

            addIncomeLogistics.incomeid   = x.IncomeID;
            addIncomeLogistics.employeeid = empid;
            addIncomeLogistics.mode       = 2;
            addIncomeLogistics.Show();
        }