Exemplo n.º 1
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            AddOvertime addOvertime = new AddOvertime();

            addOvertime.mode  = 1;
            addOvertime.empid = empid;
            addOvertime.Show();
        }
Exemplo n.º 2
0
        private void edit_Click(object sender, RoutedEventArgs e)
        {
            var         x           = ((DMSIClass._Overtime)datagridview.SelectedItem);
            AddOvertime addOvertime = new AddOvertime();

            addOvertime.overtimeid = x.OvertimeID;
            addOvertime.mode       = 2;
            addOvertime.empid      = empid;
            addOvertime.Show();
        }