private void miChangeCurrencyCode_ItemClick(object sender, ItemClickEventArgs e) { if (!IsAllowedEdit || !IsPermitted(DatabaseAction.Edit)) { return; } try { Application.DoEvents(); using (var frm = new frmChangeCurencyCode()) { if (frm.ShowDialog(this) != DialogResult.OK) { return; } Cursor = Cursors.WaitCursor; var table = new DS_Product.T_ProductIDDataTable(); foreach (var id in OptionsGrid.SelectedRecordIDs) { table.AddT_ProductIDRow((int)id); } DataSetHelper.SetColumnMappingType(table); ProductionManager.ChangeProductCurrencyCode(frm.ProductCurrencyCode, frm.ChangePrice, DataSetHelper.InnerBytesData(table), BaseGlobalVariable.ServerDateTime, BaseGlobalVariable.UserID); } } catch (Exception ex) { ExceptionHelper.Show(this, ex, "შეცდომა პ/ე ვალუტის შეცვლისას", MessageBoxIcon.Error); } finally { Cursor = Cursors.Default; } }