public void Initializate() { _buttons = SIC <ComputerButton> .ComponentsDown(transform); if (_buttons == null || _buttons.Length == 0) { throw new System.Exception("Пустое поле _buttons"); } }
public List <ListViewItem> Get_LVItemList() { List <ListViewItem> Result = new List <ListViewItem>(); foreach (ConvertSupport.ImageContainer SIC in L_ICs) { Result.Add(SIC.Get_ListViewItem()); } return(Result); }
public void Initializate() { _firePoint = SIC.Component(transform, "Fire Point"); if (_firePoint == null) { throw new Exception("Отсутсвует FirePoint в ShipFireController"); } if (_bulletReference == null) { throw new Exception("Отсутсвует Bullet в ShipFireController"); } }
public void Setup() { ComputerUISelect[] selects; SIC <ComputerUISelect> .Components(gameObject, out selects); List <ComputerUICollider> colliders_list = new List <ComputerUICollider>(); foreach (ComputerUISelect select in selects) { ComputerUICollider buf_collider = new ComputerUICollider(select); colliders_list.Add(buf_collider); } colliders = colliders_list.ToArray(); }
public void Initializate() { switch (fillType) { case FillType.Hierarchy: { _class = GetComponent <ClassAgent>(); var places = SIC <Place> .ComponentsDown(transform); SortPlaces(places); ArrayToDictionary(); break; } case FillType.Manual: { break; } } }
public void Initializate() { switch (fillType) { case FillType.Hierarchy: { _placeAgent = GetComponent <PlaceAgent>(); _placeAgent.Initializate(); _scholars = SIC <Scholar> .ComponentsDown(this.transform); var places = SIC <Place> .ComponentsDown(transform); SortPlaces(places); break; } case FillType.Manual: { break; } } //if (_scholars.Length != _placeAgent.Places[PlaceManager.place.Desk].Length) // throw new Exception($"Количество учеников - {_scholars.Length}, Количество парт - {_placeAgent.Places[PlaceManager.place.Desk].Length}"); if (_scholars.Length != _dockStations.Length) { throw new Exception($"Количество учеников - {_scholars.Length}, Количество Док-станций - {_dockStations.Length}"); } if (_scholars.Length != _desks.Length) { throw new Exception($"Количество учеников - {_scholars.Length}, Количество Док-станций - {_desks.Length}"); } ScholarInitialize(); }
public void Add(SIC sic) { Context.SICs.Add(sic); Context.SaveChanges(); }
public void Initializate() { _classes = SIC <ClassAgent> .ComponentsDown(transform).OrderBy(x => x.gameObject.name).ToArray(); }
public string ToCsv() { return($"F,{Symbol},{ExchangeId},{PE.ToInvariantString()},{AverageVolume.ToInvariantString()},{FiftyTwoWeekHigh.ToInvariantString()}," + $"{FiftyTwoWeekLow.ToInvariantString()},{CalendarYearHigh.ToInvariantString()},{CalendarYearLow.ToInvariantString()},{DividendYield.ToInvariantString()}," + $"{DividendAmount.ToInvariantString()},{DividendRate.ToInvariantString()},{PayDate.ToInvariantString(FundamentalDateTimeFormat)}," + $"{ExDividendDate.ToInvariantString(FundamentalDateTimeFormat)}," + $"{CurrentYearEarningsPerShare.ToInvariantString()},{NextYearEarningsPerShare.ToInvariantString()},{FiveYearGrowthPercentage.ToInvariantString()}," + $"{FiscalYearEnd.ToInvariantString()},{CompanyName},{RootOptionSymbol},{PercentHeldByInstitutions.ToInvariantString()}," + $"{Beta.ToInvariantString()},{Leaps},{CurrentAssets.ToInvariantString()},{CurrentLiabilities.ToInvariantString()}," + $"{BalanceSheetDate.ToInvariantString(FundamentalDateTimeFormat)},{LongTermDebt.ToInvariantString()},{CommonSharesOutstanding.ToInvariantString()}," + $"{SplitFactor1},{SplitFactor2},{FormatCode},{Precision.ToInvariantString()},{SIC.ToInvariantString()}," + $"{HistoricalVolatility.ToInvariantString()},{SecurityType},{ListedMarket},{FiftyTwoWeekHighDate.ToInvariantString(FundamentalDateTimeFormat)}," + $"{FiftyTwoWeekLowDate.ToInvariantString(FundamentalDateTimeFormat)},{CalendarYearHighDate.ToInvariantString(FundamentalDateTimeFormat)}," + $"{CalendarYearLowDate.ToInvariantString(FundamentalDateTimeFormat)},{YearEndClose.ToInvariantString()},{MaturityDate.ToInvariantString(FundamentalDateTimeFormat)}," + $"{CouponRate.ToInvariantString()},{ExpirationDate.ToInvariantString(FundamentalDateTimeFormat)},{StrikePrice.ToInvariantString()}," + $"{NAICS.ToInvariantString()},{ExchangeRoot},{OptionsPremiumMultiplier.ToInvariantString()},{OptionsMultipleDeliverables.ToInvariantString()}," + $"{SessionOpenTime.ToInvariantString(FundamentalTimeSpanFormat)},{SessionCloseTime.ToInvariantString(FundamentalTimeSpanFormat)}," + $"{BaseCurrency},{ContractSize},{ContractMonths},{MinimumTickSize.ToInvariantString()},{FirstDeliveryDate.ToInvariantString(FundamentalDateTimeFormat)}," + $"{FIGI},{SecuritySubType.ToInvariantString()}"); }