public EditEmp_Form(Employers Emp = null)
 {
     InitializeComponent();
     label10.Text = (Emp == null) ? "Реєстрація нового працівника" : "Редагування картки працівника";
     combobGender.SelectedIndex = 0;
     emp = (Emp == null) ? new Employers() : Emp;
     JTFill();
     Binding();
 }
 public static Employers AddUpdate(Employers Emp = null)
 {
     Employers res;
     using (EditEmp_Form f = new EditEmp_Form(Emp))
     {
         res = (f.ShowDialog() == DialogResult.OK) ? f.emp : null;
     }
     return res;
 }
 public Table()
     : base()
 {
     Id_Employers = new Employers();
     TableName = "TABLE";
     cmd.Parameters.Add("@ID", FbDbType.Char, 38, "ID");
     cmd.Parameters.Add("@CODE", FbDbType.Integer, 50, "CODE");
     cmd.Parameters.Add("@DAY_START", FbDbType.Date, 16, "DAY_START");
     cmd.Parameters.Add("@DAY_END", FbDbType.Date, 16, "DAY_END");
     cmd.Parameters.Add("@WORKING_DAYS", FbDbType.Decimal, 16, "WORKING_DAYS");
     cmd.Parameters["@ID_EMPLOYERS"].Value = Id_Employers.ID;
 }