Beispiel #1
0
        private void InspectEmployeeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            const bool oIsNew = false;
            openFileDialog1.DefaultExt = "\\..\\..\\Employees\\";
            openFileDialog1.Title = @"Select an employee file";
            var dr = openFileDialog1.ShowDialog();

            if(dr == DialogResult.OK)
            {
                var employeePath = openFileDialog1.FileName;
                var employeeForm = new EmployeeForm(Fonction.Waiter, oIsNew, employeePath);
                employeeForm.ShowDialog();
            }
        }
Beispiel #2
0
 private static void ShowNewEmployeeForm(Fonction f)
 {
     const bool oIsNew = true;
     var employeeForm = new EmployeeForm(f, oIsNew);
     employeeForm.ShowDialog();
 }