private void wybierzStatus() { if (this.gridView.CurrentRow != null) { this.wybranyStatus = (Enova.Business.Old.DB.Web.StatusDokumentu) this.gridView.CurrentRow.DataBoundItem; this.DialogResult = System.Windows.Forms.DialogResult.OK; this.Close(); } }
private void zmienStatus(Enova.Business.Old.DB.Web.StatusDokumentu status) { if (fireChanged && status.ID != 0 && (lastHistoria == null || lastHistoria.Status.ID != status.ID)) { var hist = Dokument.ZmienStatus(status); historia.Add(hist); lastHistoria = hist; initStatusy(); } }