コード例 #1
0
 public TickersCollectionForm(Exchange exchange)
 {
     InitializeComponent();
     Exchange = exchange;
     Text     = Exchange.Name;
     this.ribbonPage1.Text       = "Exchanges";
     this.ribbonPageGroup1.Text  = exchange.Name;
     this.colIsSelected.MaxWidth = this.gvTikers.RowHeight;
     GridTransparentRowHelper.Apply(this.gvTikers);
 }
コード例 #2
0
        public TickerForm()
        {
            InitializeComponent();
            this.beHr24HighLow.EditHeight = ScaleUtils.ScaleValue(50);

            GridTransparentRowHelper.Apply(this.gvAccountTrades);
            GridTransparentRowHelper.Apply(this.gvInfo);
            GridTransparentRowHelper.Apply(this.gvOpenedOrders);
            GridTransparentRowHelper.Apply(this.gvPositions);
            GridTransparentRowHelper.Apply(this.gvTrades);

            ((FormatConditionRuleValue)this.gvTrades.FormatRules[0].Rule).Appearance.ForeColor = Exchange.BidColor;
            ((FormatConditionRuleValue)this.gvTrades.FormatRules[1].Rule).Appearance.ForeColor = Exchange.AskColor;

            ((FormatConditionRuleValue)this.gvOpenedOrders.FormatRules[0].Rule).Appearance.ForeColor = Exchange.BidColor;
            ((FormatConditionRuleValue)this.gvOpenedOrders.FormatRules[1].Rule).Appearance.ForeColor = Exchange.AskColor;

            ((FormatConditionRuleValue)this.gvAccountTrades.FormatRules[0].Rule).Appearance.ForeColor = Exchange.BidColor;
            ((FormatConditionRuleValue)this.gvAccountTrades.FormatRules[1].Rule).Appearance.ForeColor = Exchange.AskColor;
        }
コード例 #3
0
 public EventsCollectionControl()
 {
     InitializeComponent();
     GridTransparentRowHelper.Apply(this.gvEvents);
 }