private void ShowPermit() { Appoint appoint = (Appoint)bindingSourceAppoints.Current; Permit permit = appoint.GetPermit(database); permit.Print(); }
private void FormRepointAppoint_Load(object sender, EventArgs e) { Permit permit = Appoint.GetPermit(database); if (permit == null) { MessageBox.Show(DispatcherService.Resources.Error.PermitNotFound); Close(); } currentComment = permit.GetComment(database); tboxComment.Text = currentComment; Points points = new DispatcherService.Points(database, Appoint.Unit); cboxPoint.DataSource = points; }
private void UpdatePermitComment(string text) { Permit permit = Appoint.GetPermit(database); permit.UpdateComment(database, text); }