예제 #1
0
        public AddEditUnitDialog(Unit unit)
        {
            InitializeComponent();
            Title = "Edit Unit";

            mViewUnit = new AddEditUnitViewUnit(this, unit, CommonUtils.Operation.Update) {View = this};
        }
예제 #2
0
        public AddEditUnitDialog(Unit unit, int subAreaId)
        {
            InitializeComponent();
            Unit = unit;
            Unit.CellId = subAreaId;

            mViewUnit = new AddEditUnitViewUnit(this, Unit, CommonUtils.Operation.Add) {View = this};
        }