Exemplo n.º 1
0
 object IValueConverter.Convert(object value, Type targetType, object parameter, CultureInfo culture)
 {
     return(OrderGrid.FormatCondition((OrderCondition)value));
 }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Menu = ((System.Windows.Controls.Menu)(target));
                return;

            case 2:

            #line 34 "..\..\..\View\GeneralView.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_OnClick);

            #line default
            #line hidden
                return;

            case 3:
                this.conn = ((StockSharp_WpfConnectionInterface.InterFace)(target));
                return;

            case 4:

            #line 58 "..\..\..\View\GeneralView.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.PrepareStrategy);

            #line default
            #line hidden
                return;

            case 5:

            #line 64 "..\..\..\View\GeneralView.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.StartStopClick);

            #line default
            #line hidden
                return;

            case 6:

            #line 70 "..\..\..\View\GeneralView.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Prepare2Click);

            #line default
            #line hidden
                return;

            case 7:

            #line 76 "..\..\..\View\GeneralView.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ButtonBase_OnClick);

            #line default
            #line hidden
                return;

            case 8:
                this.myMon = ((StockSharp.Xaml.LogControl)(target));
                return;

            case 9:
                this.trackedSecurity = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 10:
                this.trackedSecurityChart = ((StockSharp.Xaml.Charting.Chart)(target));
                return;

            case 11:
                this.trackedSecurityMD = ((StockSharp.Xaml.MarketDepthControl)(target));
                return;

            case 12:
                this.equityChart = ((StockSharp.Xaml.Charting.EquityCurveChart)(target));
                return;

            case 13:
                this.allOrderGrid = ((StockSharp.Xaml.OrderGrid)(target));
                return;

            case 14:
                this.allTradesGrid = ((StockSharp.Xaml.MyTradeGrid)(target));
                return;

            case 15:
                this.quikAndMyPositionsGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 16:
                this.AllRobotsGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 17:
                this.messagesTextBox = ((System.Windows.Controls.TextBox)(target));
                return;
            }
            this._contentLoaded = true;
        }