private void iGridToolBar1_NewRecord(object sender, EventArgs e) { UCOperationEntry entry = new UCOperationEntry(); ISE.UILibrary.Utils.UIUtils.SetFrmTrans(entry, "عملیات", FormBorderStyle.FixedDialog); if (entry.DialogResult != DialogResult.OK) { return; } if (view.Insert(entry.OperationDto)) { ISE.Framework.Client.Win.Viewer.MessageViewer.ShowMessage(ISE.Framework.Client.Win.Viewer.OperationType.Insert); } }
private void iGridToolBar1_EditRecord(object sender, EventArgs e) { if (this.iGridEX1.CurrentRow != null) { var operation = (OperationDto)this.iGridEX1.CurrentRow.DataRow; UCOperationEntry entry = new UCOperationEntry(ClassLibrary.TransMode.EditRecord, operation); ISE.UILibrary.Utils.UIUtils.SetFrmTrans(entry, "عملیات", FormBorderStyle.FixedDialog); if (entry.DialogResult != DialogResult.OK) { return; } if (view.Update(entry.OperationDto)) { ISE.Framework.Client.Win.Viewer.MessageViewer.ShowMessage(ISE.Framework.Client.Win.Viewer.OperationType.Update); } } }