private void AddSenior(GoldenHandContext context, string address, string name, string phone) { Senior s = new Senior(); s.Address = address; s.Name = name; s.PhoneNumber = phone; s.SeniorShortcut = name + ", " + address; context.Seniors.AddOrUpdate(s); }
private void AddForm(GoldenHandContext context, int lp, string info, DateTime regist, DateTime repair, int seniorId, int workerId, int statusId) { Form f = new Form(); f.Lp = lp; f.Info = info; f.RegistrationDate = regist; f.RepairDate = repair; f.SeniorId = seniorId; f.WorkerId = workerId; f.FormStatusId = statusId; context.Forms.AddOrUpdate(f); }
private void Init() { this._context = GoldenHandContext.Instance; //_tpForms = new TabPage(); //ShowFormInTabPage(FormsForm.Instance, _tpForms); }