public override void Edit(int columnIndex) { while (true) { try { base.Edit(columnIndex); switch (columnIndex) { case 5: Model = Managment.GetNewString("Модель", Model); break; case 6: YearRelease = Managment.GetNewInt("Год выпуска", YearRelease); break; } break; } catch (Exception ex) { MessageBox.Show(ex.Message, "Исключение"); continue; } } }
public override void Edit(int columnIndex) { while (true) { try { base.Edit(columnIndex); switch (columnIndex) { case 3: BankName = Managment.GetNewString("Название банка", BankName); break; case 4: AccountNumber = Managment.GetNewInt("Номер счёта", AccountNumber); break; } break; } catch (Exception ex) { MessageBox.Show(ex.Message, "Исключение"); continue; } } }
public override void Edit(int columnIndex) { while (true) { try { base.Edit(columnIndex); switch (columnIndex) { case 5: Address = Managment.GetNewString("Адрес", Address); break; case 6: YearBuilding = Managment.GetNewInt("Год постройки", YearBuilding); break; case 7: InventoryNumber = Managment.GetNewInt("Инвентарный номер", InventoryNumber); break; case 8: Size = Managment.GetNewDouble("Площадь", Size); break; } break; } catch (Exception ex) { MessageBox.Show(ex.Message, "Исключение"); continue; } } }