public AddEditUnitDialog(Unit unit) { InitializeComponent(); Title = "Edit Unit"; mViewUnit = new AddEditUnitViewUnit(this, unit, CommonUtils.Operation.Update) {View = this}; }
public AddEditUnitDialog(Unit unit, int subAreaId) { InitializeComponent(); Unit = unit; Unit.CellId = subAreaId; mViewUnit = new AddEditUnitViewUnit(this, Unit, CommonUtils.Operation.Add) {View = this}; }