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;
        }
コード例 #2
0
ファイル: MainWindow.g.i.cs プロジェクト: kesot/BubbleGun
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.HistoryPath = ((System.Windows.Controls.TextBox)(target));
                return;

            case 2:
                this.FindPath = ((System.Windows.Controls.Button)(target));

            #line 47 "..\..\MainWindow.xaml"
                this.FindPath.Click += new System.Windows.RoutedEventHandler(this.FindPathClick);

            #line default
            #line hidden
                return;

            case 3:
                this.SecId = ((System.Windows.Controls.TextBox)(target));
                return;

            case 4:
                this.From = ((Xceed.Wpf.Toolkit.DateTimePicker)(target));
                return;

            case 5:
                this.To = ((Xceed.Wpf.Toolkit.DateTimePicker)(target));
                return;

            case 6:
                this.TicksTestingProcess = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 7:
                this.TicksAndDepthsTestingProcess = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 8:
                this.CandlesTestingProcess = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 9:
                this.CandlesAndDepthsTestingProcess = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 10:
                this.OrderLogTestingProcess = ((System.Windows.Controls.ProgressBar)(target));
                return;

            case 11:
                this.TicksCheckBox = ((System.Windows.Controls.CheckBox)(target));

            #line 82 "..\..\MainWindow.xaml"
                this.TicksCheckBox.Click += new System.Windows.RoutedEventHandler(this.CheckBoxClick);

            #line default
            #line hidden
                return;

            case 12:
                this.TicksAndDepthsCheckBox = ((System.Windows.Controls.CheckBox)(target));

            #line 83 "..\..\MainWindow.xaml"
                this.TicksAndDepthsCheckBox.Click += new System.Windows.RoutedEventHandler(this.CheckBoxClick);

            #line default
            #line hidden
                return;

            case 13:
                this.CandlesCheckBox = ((System.Windows.Controls.CheckBox)(target));

            #line 84 "..\..\MainWindow.xaml"
                this.CandlesCheckBox.Click += new System.Windows.RoutedEventHandler(this.CheckBoxClick);

            #line default
            #line hidden
                return;

            case 14:
                this.CandlesAndDepthsCheckBox = ((System.Windows.Controls.CheckBox)(target));

            #line 85 "..\..\MainWindow.xaml"
                this.CandlesAndDepthsCheckBox.Click += new System.Windows.RoutedEventHandler(this.CheckBoxClick);

            #line default
            #line hidden
                return;

            case 15:
                this.OrderLogCheckBox = ((System.Windows.Controls.CheckBox)(target));

            #line 86 "..\..\MainWindow.xaml"
                this.OrderLogCheckBox.Click += new System.Windows.RoutedEventHandler(this.CheckBoxClick);

            #line default
            #line hidden
                return;

            case 16:
                this.StartBtn = ((System.Windows.Controls.Button)(target));

            #line 88 "..\..\MainWindow.xaml"
                this.StartBtn.Click += new System.Windows.RoutedEventHandler(this.StartBtnClick);

            #line default
            #line hidden
                return;

            case 17:
                this.StopBtn = ((System.Windows.Controls.Button)(target));

            #line 89 "..\..\MainWindow.xaml"
                this.StopBtn.Click += new System.Windows.RoutedEventHandler(this.StopBtnClick);

            #line default
            #line hidden
                return;

            case 18:
                this.GenDepthsCheckBox = ((System.Windows.Controls.CheckBox)(target));

            #line 90 "..\..\MainWindow.xaml"
                this.GenDepthsCheckBox.Click += new System.Windows.RoutedEventHandler(this.CheckBoxClick);

            #line default
            #line hidden
                return;

            case 19:
                this.ShowDepth = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 20:
                this.MaxDepth = ((System.Windows.Controls.TextBox)(target));
                return;

            case 21:
                this.MaxVolume = ((System.Windows.Controls.TextBox)(target));
                return;

            case 22:
                this.DebugLogCheckBox = ((System.Windows.Controls.CheckBox)(target));

            #line 96 "..\..\MainWindow.xaml"
                this.DebugLogCheckBox.Click += new System.Windows.RoutedEventHandler(this.CheckBoxClick);

            #line default
            #line hidden
                return;

            case 23:
                this.TabControl = ((System.Windows.Controls.TabControl)(target));
                return;

            case 24:
                this.TicksParameterGrid = ((StockSharp.Xaml.StatisticParameterGrid)(target));
                return;

            case 25:
                this.TicksAndDepthsParameterGrid = ((StockSharp.Xaml.StatisticParameterGrid)(target));
                return;

            case 26:
                this.CandlesParameterGrid = ((StockSharp.Xaml.StatisticParameterGrid)(target));
                return;

            case 27:
                this.CandlesAndDepthsParameterGrid = ((StockSharp.Xaml.StatisticParameterGrid)(target));
                return;

            case 28:
                this.OrderLogParameterGrid = ((StockSharp.Xaml.StatisticParameterGrid)(target));
                return;

            case 29:
                this.Chart = ((StockSharp.Xaml.Charting.ChartPanel)(target));
                return;

            case 30:
                this.Curve = ((StockSharp.Xaml.Charting.EquityCurveChart)(target));
                return;

            case 31:
                this.PositionCurve = ((StockSharp.Xaml.Charting.EquityCurveChart)(target));
                return;

            case 32:
                this.MarketDepth = ((StockSharp.Xaml.MarketDepthControl)(target));
                return;
            }
            this._contentLoaded = true;
        }