コード例 #1
0
        private void button_Click(object sender, RoutedEventArgs e)
        {
            AddNightDiffrential addNightDiffrential = new AddNightDiffrential();

            addNightDiffrential.mode  = 1;
            addNightDiffrential.empid = empid;
            addNightDiffrential.Show();
        }
コード例 #2
0
        private void edit_Click(object sender, RoutedEventArgs e)
        {
            var x = ((DMSIClass._NightDiff)datagridview.SelectedItem);
            AddNightDiffrential addNightDiffrential = new AddNightDiffrential();

            addNightDiffrential.nightdiffid = x.NightDiffID;
            addNightDiffrential.mode        = 2;
            addNightDiffrential.empid       = empid;
            addNightDiffrential.Show();
        }