/// <summary> /// Построение модели /// </summary> /// <param name="sender">Отправитель события</param> /// <param name="e">Параметры</param> private void buildHouseButton_Click(object sender, EventArgs e) { _inventorApi = new InventorApi(); _houseModel = new HouseModel(_houseProperties, _inventorApi); if (ChangeArcComboBox.SelectedIndex == 0) { _houseModel.Build(_houseProperties); } if (ChangeArcComboBox.SelectedIndex == 1) { _houseModel.Build(_houseProperties); _houseModel.BuildArc(_houseProperties); } }
private void RunInventorButton_Click(object sender, EventArgs e) { _inventorApi = new InventorApi(); }
/// <summary> /// Конструктор с входными параметрами модели /// </summary> /// <param name="houseProperties">Параметры модели</param> /// <param name="inventorApi"></param> public HouseModel(HouseProperties houseProperties, InventorApi inventorApi) { _houseProperties = houseProperties; _api = inventorApi; InventorApplication = inventorApi.InventorApplication; }