internal void SetScriptSetting(ScriptSetting setting, bool isModify) { __cProperty = (setting as SignalSetting).Property; if (isModify) { txtInitCapital.Text = __cProperty.InitialCapital.ToString(); txtDefaultContracts.Text = __cProperty.DefaultContracts.ToString(); txtDefaultContracts.Enabled = false; txtMaxBarsReference.Text = __cProperty.MaximumBarsReference.ToString(); txtMaxBarsReference.Enabled = false; dataGrid.Enabled = false; comboOrderService.Text = __cProperty.OrderSource.Split(';')[1]; comboOrderService.Enabled = false; btnOK.Enabled = true; } }
/// <summary> /// 施行信號屬性設定值 /// </summary> /// <param name="property">信號屬性類別</param> public void ApplyProperty(SignalProperty property) { __cProperty = property; this.SetMaximumBarsReference(__cProperty.MaximumBarsReference); }
/// <summary> /// 建構子 /// </summary> /// <param name="_ctx">相容 Multicharts 系統</param> public SignalObject(object _ctx) { __cProperty = new SignalProperty(); __cTradeServices = new Dictionary<string, AbstractOrderService>(8); }
internal SignalSetting() { this.Property = new SignalProperty(); }