public override MetroPanel GetFilledUI() { MetroPanel panel = GetUI(); ((MetroComboBox)(panel.Controls["cBoxType"])).SelectedItem = _types[_type]; ((MetroComboBox)(panel.Controls["cBoxOn"])).SelectedItem = OnTypeToString(_onType); panel.Controls["txtSlowLength"].Text = _slowLength.ToString(); panel.Controls["txtFastLength"].Text = _slowLength.ToString(); ((MetroComboBox)(panel.Controls["cBoxTimeframe"])).SelectedItem = AbstractAPI.TimeframeToString(timeframe); return(panel); }
public override MetroPanel GetFilledUI() { MetroPanel panel = GetUI(); ((MetroComboBox)(panel.Controls["cBoxType"])).SelectedItem = Types[_type]; panel.Controls["txtValue"].Text = _absoluteAlert.Trigger.ToString(); panel.Controls["txtLength"].Text = _length.ToString(); ((MetroComboBox)panel.Controls["cBoxSource"]).SelectedItem = SourceToString(_source); ((MetroComboBox)(panel.Controls["cBoxTimeframe"])).SelectedItem = AbstractAPI.TimeframeToString(timeframe); return(panel); }
public override MetroPanel GetFilledUI() { MetroPanel panel = GetUI(); ((MetroComboBox)(panel.Controls["cBoxType"])).SelectedItem = _types[_type]; panel.Controls["txtK"].Text = _lengthK.ToString(); panel.Controls["txtD"].Text = _lengthD.ToString(); //panel.Controls["txtSmooth"].Text = _lengthSmooth.ToString(); panel.Controls["txtValue"].Text = _absoluteAlert.Trigger.ToString(); ((MetroCheckBox)(panel.Controls["chcBoxTriggerType"])).Checked = _isDTrigger; ((MetroComboBox)(panel.Controls["cBoxTimeframe"])).SelectedItem = AbstractAPI.TimeframeToString(timeframe); return(panel); }