/// <summary> /// показать окно настроек /// </summary> public void ShowDialog() { AwesomeOscillatorUi ui = new AwesomeOscillatorUi(this); ui.ShowDialog(); if (ui.IsChange && _myCandles != null) { _longSma = new MovingAverage(false) { Lenght = LenghtLong, TypeCalculationAverage = TypeCalculationAverage, TypePointsToSearch = PriceTypePoints.Median }; _shortSma = new MovingAverage(false) { Lenght = LenghtShort, TypeCalculationAverage = TypeCalculationAverage, TypePointsToSearch = PriceTypePoints.Median }; Values = null; ProcessAll(_myCandles); if (NeadToReloadEvent != null) { NeadToReloadEvent(this); } } }
/// <summary> /// display settings window /// показать окно настроек /// </summary> public void ShowDialog() { AwesomeOscillatorUi ui = new AwesomeOscillatorUi(this); ui.ShowDialog(); if (ui.IsChange && _myCandles != null) { Reload(); } }