private void ExpandFromCorner() { if (cycleReady) { transform.localScale += Vector3.one * 0.5f; currentCycleTime += Time.deltaTime; if (currentCycleTime > cycleTime) { cycleType = CycleType.None; } } else { int rnd = UnityEngine.Random.Range(0, 2); if (rnd == 0) { transform.position = new Vector3(7, 0, 7); } else { transform.position = new Vector3(-7, 0, -7); } transform.localScale = Vector3.one; currentCycleTime = 0; cycleReady = true; } }
private void UpdateCellTooltip(int?row, int?column) { if (row.HasValue && column.HasValue) { IDsmElement consumer = _elementViewModelLeafs[column.Value].Element; IDsmElement provider = _elementViewModelLeafs[row.Value].Element; if ((consumer != null) && (provider != null)) { int weight = _application.GetDependencyWeight(consumer, provider); CycleType cycleType = _application.IsCyclicDependency(consumer, provider); string cycleText = ""; if (cycleType == CycleType.Hierarchical) { cycleText = "with hierarchical cycle"; } if (cycleType == CycleType.System) { cycleText = "with system cycle"; } CellTooltip = $"[{consumer.Order}] {consumer.Fullname} to [{consumer.Order}] {consumer.Fullname} weight={weight} {cycleText}"; } } }
public static void ParseRDPSetOtherMode(F3DEX2Command cmd, out PipelineMode pm, out CycleType cyc, out TexturePersp tp, out TextureDetail td, out TextureLOD tl, out TextureLUT tt, out TextureFilter tf, out TextureConvert tc, out CombineKey ck, out ColorDither cd, out AlphaDither ad, out AlphaCompare ac, out DepthSource zs, out RenderMode rm) { rm = new RenderMode(cmd.Words & (0xFFFFFFFF & ~((ulong)AlphaCompare.Mask | (ulong)DepthSource.Mask))); if (!rm.Known) // Handle TCL modes by checking again with alpha compare and dither included { rm = new RenderMode(cmd.Words & (0xFFFFFFFF & ~(ulong)DepthSource.Mask)); } ulong wordH = cmd.Words >> 32; ad = (AlphaDither)(wordH & (ulong)AlphaDither.Mask); cd = (ColorDither)(wordH & (ulong)ColorDither.Mask); ck = (CombineKey)(wordH & (ulong)CombineKey.Mask); pm = (PipelineMode)(wordH & (ulong)PipelineMode.Mask); cyc = (CycleType)(wordH & (ulong)CycleType.Mask); tp = (TexturePersp)(wordH & (ulong)TexturePersp.Mask); td = (TextureDetail)(wordH & (ulong)TextureDetail.Mask); tl = (TextureLOD)(wordH & (ulong)TextureLOD.Mask); tt = (TextureLUT)(wordH & (ulong)TextureLUT.Mask); tf = (TextureFilter)(wordH & (ulong)TextureFilter.Mask); tc = (TextureConvert)(wordH & (ulong)TextureConvert.Mask); ac = (AlphaCompare)(cmd.Words & (ulong)AlphaCompare.Mask); zs = (DepthSource)(cmd.Words & (ulong)DepthSource.Mask); }
private void RollANewCycle() { int max = Enum.GetValues(typeof(CycleType)).Length; int rnd = UnityEngine.Random.Range(1, max); cycleType = (CycleType)rnd; cycleReady = false; }
public static LimitUsed Create(string companyKey, string documentNumber, LimitType limitType, FeatureType featureType, CycleType cycleType, LevelType levelType, long amount) => new LimitUsed(companyKey, documentNumber, limitType, featureType, cycleType, levelType, amount);
public EffectRotate(CycleType cycleType, GameObject target, float period, Vector3 min, Vector3 max) : base(period, period) { this.target = target; this.cycleType = cycleType; this.min = min; this.max = max; }
private void SetDefaults() { frameList = new List <Frame>(); SequenceCycleType = CycleType.Simple; currentFrameIdx = 0; curFrameIncrement = 1; cycleFinished = true; }
public FrameSequence(List <Frame> frames) { frameList = frames; SequenceCycleType = CycleType.Simple; currentFrameIdx = 0; curFrameIncrement = 1; cycleFinished = true; }
public void When_WeTestCycleAndYearMonthAndTime(CycleType cycleType, YearMonth yearMonth, DateTime dateTime) { SetCurrentCulture(); cycleType.Should().NotBeNull("The Cycle Type was not found!"); yearMonth.Should().NotBeNull("The Year Month was not found!"); dateTime.Should().NotBe(DateTime.MinValue, "The DateTime was not set!"); }
public SubPart(string name, int partNumber, PartTypeEnum partype, CycleType cycleType, int month) { SubPartName = name; SubPartNumber = partNumber; PartType = partype; CycleType = cycleType; CycleInMonth = month; }
public FrameSequence(Frame frame) { frameList = new List <Frame>(); frameList.Add(frame); SequenceCycleType = CycleType.Simple; currentFrameIdx = 0; curFrameIncrement = 1; cycleFinished = true; }
private LimitLevelResumeDto GetResume(IEnumerable <LimitLevelResumeDto> limitUseds, LimitType limitType, FeatureType featureType, CycleType cycleType, LevelType levelType) => limitUseds.FirstOrDefault(l => l.LimitType == limitType && l.FeatureType == featureType && l.CycleType == cycleType && l.LevelType == levelType);
private static Cycle GetCycle(CycleType type) { var cycle = Cycle.Create(type); cycle.AddLimitLevel(LimitLevel.Create(LevelType.Account, 50000, 10000)); cycle.AddLimitLevel(LimitLevel.Create(LevelType.Card, 50000, 10000)); cycle.AddLimitLevel(LimitLevel.Create(LevelType.Document, 50000, 10000)); return(cycle); }
// Start is called before the first frame update void Start() { currentCycle = (int)0; currCycleTimer = 0; theOrchestra = GetComponent <SetOrchestra>(); skyboxValueSet = new float[4, 2] { { 2f, 1.25f }, { 4, 2.5f }, { 8, 5 }, { 0, 5 } }; skyMat.SetFloat("_Exposure", 2f); skyMat.SetFloat("_AtmosphereThickness", 1.25f); }
public NiSequenceData() { numControlledBlocks = (uint)0; arrayGrowBy = (uint)0; numEvaluators = (uint)0; textKeys = null; duration = 0.0f; cycleType = (CycleType)0; frequency = 1.0f; accumFlags = (AccumFlags)ACCUM_X_FRONT; }
private void InitialTableLayoutPanel(CycleType cType, TabPage tPage) { foreach (var item in tPage.Controls) { tPage.Controls.Remove((System.Windows.Forms.Control)item); } TableLayoutPanel tPanel; AddControls(cType, out tPanel); tPage.Controls.Add(tPanel); tPanel.Dock = DockStyle.Fill; }
public void CycleTypeOnClick(CycleType cycleType) { switch (cycleType) { case CycleType.stop: LightControl.Instance.Send(scene_name.text, file_name.text, LigntType.OneStop); break; case CycleType.one: LightControl.Instance.Send(scene_name.text, file_name.text, LigntType.OneCycle); break; } }
public void CycleTypeOnClick(CycleType cycleType) { switch (cycleType) { case CycleType.stop: LightControl.Instance.Send(addr, program[curremt_num].name, LigntType.OneStop); break; case CycleType.one: LightControl.Instance.Send(addr, program[curremt_num].name, LigntType.OneCycle); break; } }
/// <summary> /// Set cycle type on button click. /// </summary> /// <param name="sender">Get learning or GPC cylce type from button name.</param> /// <param name="e">Not used.</param> private void CycleTypeSelected(object sender, RoutedEventArgs e) { System.Windows.Controls.RadioButton rb = (System.Windows.Controls.RadioButton)sender; if (rb.Name == "ModeLearningCycle") { selectedCycleType = CycleType.LearningCycle; } else if (rb.Name == "ModeGpcCycle") { selectedCycleType = CycleType.GpcCycle; } else { selectedCycleType = CycleType.None; } }
public NiControllerSequence() { weight = 1.0f; textKeys = null; cycleType = (CycleType)0; frequency = 1.0f; phase = 0.0f; startTime = 3.402823466e+38f; stopTime = -3.402823466e+38f; playBackwards = false; manager = null; accumFlags = (AccumFlags)ACCUM_X_FRONT; stringPalette = null; animNotes = null; numAnimNoteArrays = (ushort)0; }
/// <inheritdoc/> public string ToDelimitedString() { CultureInfo culture = CultureInfo.CurrentCulture; return(string.Format( culture, StringHelper.StringFormatSequence(0, 38, Configuration.FieldSeparator), Id, CycleStartTime.HasValue ? CycleStartTime.Value.ToString(Consts.TimeFormatPrecisionSecond, culture) : null, CycleCount.HasValue ? CycleCount.Value.ToString(Consts.NumericFormat, culture) : null, TempMax?.ToDelimitedString(), TempMin?.ToDelimitedString(), LoadNumber.HasValue ? LoadNumber.Value.ToString(Consts.NumericFormat, culture) : null, ConditionTime?.ToDelimitedString(), SterilizeTime?.ToDelimitedString(), ExhaustTime?.ToDelimitedString(), TotalCycleTime?.ToDelimitedString(), DeviceStatus?.ToDelimitedString(), CycleStartDateTime.HasValue ? CycleStartDateTime.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null, DryTime?.ToDelimitedString(), LeakRate?.ToDelimitedString(), ControlTemperature?.ToDelimitedString(), SterilizerTemperature?.ToDelimitedString(), CycleCompleteTime.HasValue ? CycleCompleteTime.Value.ToString(Consts.TimeFormatPrecisionSecond, culture) : null, UnderTemperature?.ToDelimitedString(), OverTemperature?.ToDelimitedString(), AbortCycle?.ToDelimitedString(), Alarm?.ToDelimitedString(), LongInChargePhase?.ToDelimitedString(), LongInExhaustPhase?.ToDelimitedString(), LongInFastExhaustPhase?.ToDelimitedString(), Reset?.ToDelimitedString(), OperatorUnload?.ToDelimitedString(), DoorOpen?.ToDelimitedString(), ReadingFailure?.ToDelimitedString(), CycleType?.ToDelimitedString(), ThermalRinseTime?.ToDelimitedString(), WashTime?.ToDelimitedString(), InjectionRate?.ToDelimitedString(), ProcedureCode?.ToDelimitedString(), PatientIdentifierList != null ? string.Join(Configuration.FieldRepeatSeparator, PatientIdentifierList.Select(x => x.ToDelimitedString())) : null, AttendingDoctor?.ToDelimitedString(), DilutionFactor?.ToDelimitedString(), FillTime?.ToDelimitedString(), InletTemperature?.ToDelimitedString() ).TrimEnd(Configuration.FieldSeparator.ToCharArray())); }
public LimitUsed(string companyKey, string documentNumber, LimitType limitType, FeatureType featureType, CycleType cycleType, LevelType levelType, long amount) { CompanyKey = companyKey; DocumentNumber = documentNumber; LimitType = limitType; FeatureType = featureType; CycleType = cycleType; LevelType = levelType; Amount = amount; Timestamp = DateTime.Now; }
private void CountCycles(IDsmElement element, CycleType cycleType, ref int cycleCount) { foreach (IDsmElement consumer in element.Children) { foreach (IDsmElement provider in element.Children) { if (IsCyclicDependency(consumer.Id, provider.Id) == cycleType) { cycleCount++; } } } foreach (IDsmElement child in element.Children) { CountCycles(child, cycleType, ref cycleCount); } }
void ExpandFromCenter() { if (cycleReady) { transform.localScale += Vector3.one * 0.5f; currentCycleTime += Time.deltaTime; if (currentCycleTime > cycleTime) { cycleType = CycleType.None; } } else { transform.position = Vector3.zero; transform.localScale = Vector3.one; currentCycleTime = 0; cycleReady = true; } }
/// <summary> /// 设置下一次执行的时间 /// </summary> /// <param name="taskType"></param> private void SetNext(CycleType taskType) { switch (taskType) { case CycleType.Once: break; case CycleType.Day: NextDateTime = TaskDateTime.AddDays(1); break; case CycleType.Week: NextDateTime = TaskDateTime.AddDays(7); break; case CycleType.Month: NextDateTime = TaskDateTime.AddMonths(1); break; } }
public override void LoadAdditionals(XPathNavigator reader) { base.LoadAdditionals(reader); var readerAdd = reader.SelectSingleNode("RangeParameters"); if (readerAdd == null) { return; } var minimumValueFormula = readerAdd.GetAttribute("MinimumValue", readerAdd.NamespaceURI); SetMinimumValueFormula(minimumValueFormula); var maximumValueFormula = readerAdd.GetAttribute("MaximumValue", readerAdd.NamespaceURI); SetMaximumValueFormula(maximumValueFormula); var defaultValueFormula = readerAdd.GetAttribute("DefaultValue", readerAdd.NamespaceURI); EnableDefaultValue = !string.IsNullOrEmpty(defaultValueFormula); SetDefaultValueFormula(defaultValueFormula); var stepFormula = readerAdd.GetAttribute("Step", readerAdd.NamespaceURI); SetStepFormula(stepFormula); var getValueFormula = readerAdd.GetAttribute("GetValueFormula", readerAdd.NamespaceURI); SetReceiveValueFormula(getValueFormula); var cycleType = readerAdd.GetAttribute("CycleType", readerAdd.NamespaceURI); if (string.IsNullOrEmpty(cycleType)) { _cycleType = CycleType.None; } foreach (CycleType ct in Enum.GetValues(typeof(CycleType))) { if (ct.ToString() != cycleType) { continue; } _cycleType = ct; break; } }
// Update is called once per frame void Update() { currCycleTimer += Time.deltaTime; float exposure = skyMat.GetFloat("_Exposure"), atmosphere = skyMat.GetFloat("_AtmosphereThickness"); skyMat.SetFloat("_Exposure", Mathf.Lerp(skyboxValueSet[(int)currentCycle, 0], skyboxValueSet[(int)(currentCycle + 1) % (int)(CycleType.Night + 1), 0], currCycleTimer / theOrchestra.TimeOfDayCycleTime)); if (currentCycle != CycleType.Night) { skyMat.SetFloat("_AtmosphereThickness", Mathf.Lerp(skyboxValueSet[(int)currentCycle, 1], skyboxValueSet[(int)(currentCycle + 1) % (int)(CycleType.Night + 1), 1], currCycleTimer / theOrchestra.TimeOfDayCycleTime)); } else { skyMat.SetFloat("_AtmosphereThickness", Mathf.Lerp(0, skyboxValueSet[(int)(currentCycle + 1) % (int)(CycleType.Night + 1), 1], currCycleTimer / theOrchestra.TimeOfDayCycleTime)); } if (currCycleTimer > theOrchestra.TimeOfDayCycleTime) { currentCycle = (CycleType)(((int)currentCycle + 1) % ((int)CycleType.Night + 1)); currCycleTimer = 0; RenderSettings.skybox = skyMat; } DynamicGI.UpdateEnvironment(); }
public void Reset(List <RoleData.BoxAttr> data) { curTime = new List <float>(); createTime = new List <float>(); totalCreateTime = new List <float>(); curMakeCount = new List <float>(); curMakeBoxCount = new List <float>(); isRun = new List <bool>(); startTime = new List <float>(); endTime = new List <float>(); type = CycleType.Loop; for (int i = 0; i < data.Count; i++) { curTime.Add(0); createTime.Add(0); totalCreateTime.Add(0); curMakeCount.Add(0); curMakeBoxCount.Add(0); isRun.Add(false); startTime.Add(data[i].timeMin); endTime.Add(data[i].timeMax); } }
/// <summary> /// Sets the Rapid ExecutionCycle to Once, Forever or None. /// </summary> /// <param name="mode"></param> /// <returns></returns> public bool SetRunMode(CycleType mode) { if (controller == null) { logger.Debug("Cannot set RunMode, not connected to any controller"); return(false); } try { using (Mastership.Request(controller.Rapid)) { controller.Rapid.Cycle = mode == CycleType.Once ? ExecutionCycle.Once : mode == CycleType.Loop ? ExecutionCycle.Forever : ExecutionCycle.None; return(true); } } catch (Exception ex) { logger.Debug("Error setting RunMode in controller..."); logger.Debug(ex); } return(false); }
private string GetCycleTypeItemText(CycleType ct) { var res = string.Empty; switch (ct) { case CycleType.UnreachableMinimum: res = LanguageManager.GetPhrase(Phrases.CycleTypeUnreachableMinimum); break; case CycleType.UnreachableMaximum: res = LanguageManager.GetPhrase(Phrases.CycleTypeUnreachableMaximum); break; case CycleType.Simple: res = LanguageManager.GetPhrase(Phrases.CycleTypeReachableMinMax); break; default: res = LanguageManager.GetPhrase(Phrases.CycleTypeNone); break; } return(res); }
private void AddControls(CycleType cType, out TableLayoutPanel tabPanel) { #region 初始化tabPanel tabPanel = new TableLayoutPanel(); tabPanel.AutoSize = true; tabPanel.ColumnCount = 2; if (cType == CycleType.userDefined) { if (_brightnessCfg.Type == SmartBrightAdjustType.AutoBright) { this.Size = new System.Drawing.Size(478, 242); tabPanel.RowCount = 3; } else { this.Size = new System.Drawing.Size(478, 272); tabPanel.RowCount = 4; } } else { if (_brightnessCfg.Type == SmartBrightAdjustType.AutoBright) { this.Size = new System.Drawing.Size(478, 202); tabPanel.RowCount = 2; } else { this.Size = new System.Drawing.Size(478, 242); tabPanel.RowCount = 3; } } #endregion #region 初始化周期 Panel panel_Cycle_Text = new Panel(); panel_Cycle_Text.Location = new Point(0, 3); panel_Cycle_Text.Size = new System.Drawing.Size(100, 24); Label label_Cycle = new Label(); panel_Cycle_Text.Controls.Add(label_Cycle); label_Cycle.Dock = DockStyle.Fill; label_Cycle.TextAlign = ContentAlignment.MiddleRight; label_Cycle.Text = CommonUI.GetCustomMessage(_langTable, "executecycle", "执行周期"); Panel panel_Cycle = new Panel(); panel_Cycle.Location = new Point(0, 3); panel_Cycle.Size = new System.Drawing.Size(298, 24); ComboBox comboBox_Cycle = new ComboBox(); comboBox_Cycle.Size = new Size(150, 21); comboBox_Cycle.DropDownStyle = ComboBoxStyle.DropDownList; InitialComboBox(comboBox_Cycle); comboBox_Cycle.SelectedIndexChanged += comboBox_Cycle_SelectedIndexChanged; panel_Cycle.Controls.Add(comboBox_Cycle); #endregion #region 初始化星期 Panel panel_Week = new Panel(); panel_Week.Location = new Point(3, 3); panel_Week.Size = new System.Drawing.Size(320, 55); CheckBox monday = new CheckBox(); if (_brightnessCfg.DayList.Contains(DayOfWeek.Monday)) monday.Checked = true; monday.CheckedChanged += CheckBox_CheckedChanged; monday.Text = BrightnessLangTable.DayTable[DayOfWeek.Monday]; monday.Name = DayOfWeek.Monday.ToString(); monday.AutoSize = true; CheckBox tuesday = new CheckBox(); if (_brightnessCfg.DayList.Contains(DayOfWeek.Tuesday)) tuesday.Checked = true; tuesday.CheckedChanged += CheckBox_CheckedChanged; tuesday.Text = BrightnessLangTable.DayTable[DayOfWeek.Tuesday]; tuesday.Name = DayOfWeek.Tuesday.ToString(); CheckBox wednesday = new CheckBox(); if (_brightnessCfg.DayList.Contains(DayOfWeek.Wednesday)) wednesday.Checked = true; wednesday.CheckedChanged += CheckBox_CheckedChanged; wednesday.Text = BrightnessLangTable.DayTable[DayOfWeek.Wednesday]; wednesday.Name = DayOfWeek.Wednesday.ToString(); CheckBox thursday = new CheckBox(); if (_brightnessCfg.DayList.Contains(DayOfWeek.Thursday)) thursday.Checked = true; thursday.CheckedChanged += CheckBox_CheckedChanged; thursday.Text = BrightnessLangTable.DayTable[DayOfWeek.Thursday]; thursday.Name = DayOfWeek.Thursday.ToString(); CheckBox friday = new CheckBox(); if (_brightnessCfg.DayList.Contains(DayOfWeek.Friday)) friday.Checked = true; friday.CheckedChanged += CheckBox_CheckedChanged; friday.Text = BrightnessLangTable.DayTable[DayOfWeek.Friday]; friday.Name = DayOfWeek.Friday.ToString(); CheckBox saturday = new CheckBox(); if (_brightnessCfg.DayList.Contains(DayOfWeek.Saturday)) saturday.Checked = true; saturday.CheckedChanged += CheckBox_CheckedChanged; saturday.Text = BrightnessLangTable.DayTable[DayOfWeek.Saturday]; saturday.Name = DayOfWeek.Saturday.ToString(); CheckBox sunday = new CheckBox(); if (_brightnessCfg.DayList.Contains(DayOfWeek.Sunday)) sunday.Checked = true; sunday.CheckedChanged += CheckBox_CheckedChanged; sunday.Text = BrightnessLangTable.DayTable[DayOfWeek.Sunday]; sunday.Name = DayOfWeek.Sunday.ToString(); panel_Week.Controls.Add(monday); panel_Week.Controls.Add(tuesday); panel_Week.Controls.Add(wednesday); panel_Week.Controls.Add(thursday); panel_Week.Controls.Add(friday); panel_Week.Controls.Add(saturday); panel_Week.Controls.Add(sunday); monday.AutoSize = true; tuesday.AutoSize = true; wednesday.AutoSize = true; thursday.AutoSize = true; friday.AutoSize = true; saturday.AutoSize = true; sunday.AutoSize = true; monday.Location = new Point(0, 3); tuesday.Location = new Point(80, 3); wednesday.Location = new Point(160, 3); thursday.Location = new Point(250, 3); friday.Location = new Point(0, 33); saturday.Location = new Point(80, 33); sunday.Location = new Point(160, 33); #endregion #region 初始化时间 Panel panel_Cycle_Time_Text = new Panel(); panel_Cycle_Time_Text.Location = new Point(0, 3); panel_Cycle_Time_Text.Size = new System.Drawing.Size(100, 24); Label label_Time = new Label(); panel_Cycle_Time_Text.Controls.Add(label_Time); label_Time.Location = new Point(0, 3); label_Time.AutoSize = false; label_Time.Size = new System.Drawing.Size(100, 21); label_Time.TextAlign = ContentAlignment.MiddleRight; label_Time.Text = CommonUI.GetCustomMessage(_langTable, "text_time", "时间"); Panel panel_Time = new Panel(); panel_Time.Location = new Point(0, 3); panel_Time.Size = new System.Drawing.Size(298, 24); DateTimePicker dateTimePicker_DT = new DateTimePicker(); dateTimePicker_DT.Value = _brightnessCfg.Time; dateTimePicker_DT.Location = new Point(0, 3); dateTimePicker_DT.Size = new System.Drawing.Size(150, 22); dateTimePicker_DT.Format = DateTimePickerFormat.Custom; dateTimePicker_DT.CustomFormat = "HH:mm:ss"; dateTimePicker_DT.ValueChanged += DateTimePicker_DT_ValueChanged; dateTimePicker_DT.ShowUpDown = true; panel_Time.Controls.Add(dateTimePicker_DT); #endregion #region 初始化亮度 Panel panel_Brightness_text = new Panel(); panel_Brightness_text.Location = new Point(0, 3); panel_Brightness_text.Size = new System.Drawing.Size(100, 24); Label label_Brightness_test = new Label(); label_Brightness_test.Location = new Point(0, 3); label_Brightness_test.Size = new Size(100, 22); label_Brightness_test.TextAlign = ContentAlignment.MiddleRight; label_Brightness_test.Text = CommonUI.GetCustomMessage(_langTable, "text_brightness", "亮度"); panel_Brightness_text.Controls.Add(label_Brightness_test); Panel panel_Brightness = new Panel(); panel_Brightness.Location = new Point(0, 3); panel_Brightness.Size = new System.Drawing.Size(298, 24); NumericUpDown numDown = new NumericUpDown(); numDown.Location = new Point(0, 3); if (_brightnessCfg.Type == SmartBrightAdjustType.FixBright) numDown.Value = (decimal)_brightnessCfg.Brightness; numDown.Size = new Size(150, 22); numDown.ValueChanged += numDown_ValueChanged; panel_Brightness.Controls.Add(numDown); #endregion tabPanel.Controls.Add(panel_Cycle_Text, 0, 0); tabPanel.Controls.Add(panel_Cycle, 1, 0); if (cType == CycleType.userDefined) { tabPanel.Controls.Add(panel_Week, 1, 1); tabPanel.Controls.Add(panel_Cycle_Time_Text, 0, 2); tabPanel.Controls.Add(panel_Time, 1, 2); } else { tabPanel.Controls.Add(panel_Cycle_Time_Text, 0, 1); tabPanel.Controls.Add(panel_Time, 1, 1); } if (cType == CycleType.userDefined) { if (_brightnessCfg.Type == SmartBrightAdjustType.FixBright) { tabPanel.Controls.Add(panel_Brightness_text, 0, 3); tabPanel.Controls.Add(panel_Brightness, 1, 3); } } else { if (_brightnessCfg.Type == SmartBrightAdjustType.FixBright) { tabPanel.Controls.Add(panel_Brightness_text, 0, 2); tabPanel.Controls.Add(panel_Brightness, 1, 2); } } }
public ComboBoxItem(string name, CycleType value) { _name = name; _value = value; }