Пример #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.K_input = ((System.Windows.Controls.TextBox)(target));
                return;

            case 2:
                this.N_input = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 4:
                this.C0_input = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.Col_dostav_label = ((System.Windows.Controls.Label)(target));
                return;

            case 6:

            #line 26 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.Date_input = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:

            #line 35 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);

            #line default
            #line hidden
                return;

            case 9:
                this.LineSeries1 = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 10:
                this.LineSeries2 = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 11:
                this.LineSeries3 = ((OxyPlot.Wpf.LineSeries)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.mydock = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 2:
                this.myStack = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 3:

            #line 39 "..\..\GraphControl.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.showGraphs);

            #line default
            #line hidden
                return;

            case 4:
                this.firs_plot = ((OxyPlot.Wpf.Plot)(target));
                return;

            case 5:
                this.first_line = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 6:
                this.second_plot = ((OxyPlot.Wpf.Plot)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #3
0
        public void CompileSolvedProductSeries()
        {
            SolvedSeriesItems.Add(new DataPoint(CurrentIteration, FinishedProducts.Count));
            var t = new OxyPlot.Wpf.LineSeries();

            t.ItemsSource = SolvedSeriesItems;

            SolvedProductsPlot.Series.Clear();
            SolvedProductsPlot.Series.Add(t);

            SolvedProductsPlot.InvalidatePlot();
        }
        public void DrawNetwork(List <NetworkLayer> layers)
        {
            List <ScatterPoint> previousLayerPoints = new List <ScatterPoint>();

            for (int l = 0; l < layers.Count; l++)
            {
                NetworkLayer layer = layers[l];

                OxyPlot.Wpf.ScatterSeries series = new OxyPlot.Wpf.ScatterSeries();
                series.MarkerType = OxyPlot.MarkerType.Circle;
                series.MarkerSize = 5;
                OxyPlotControl.Series.Add(series);
                ObservableCollection <ScatterPoint> points = new ObservableCollection <ScatterPoint>();

                for (int i = 0; i < layer.NeuronsNumber; i++)
                {
                    OxyPlot.Wpf.LineSeries lineSeries = new OxyPlot.Wpf.LineSeries();
                    lineSeries.Color           = Color.FromArgb(128, 78, 97, 102);
                    lineSeries.StrokeThickness = 1;
                    lineSeries.DataFieldX      = "X";
                    lineSeries.DataFieldY      = "Y";
                    lineSeries.MarkerSize      = 0;
                    lineSeries.LineStyle       = OxyPlot.LineStyle.Solid;
                    OxyPlotControl.Series.Add(lineSeries);

                    double x = schemaHeight - l * (schemaHeight / (double)layers.Count);
                    double y = schemaWidth - i * (schemaWidth / (double)layer.NeuronsNumber);

                    points.Add(new ScatterPoint(x, y));

                    ObservableCollection <NeuronDataPoint> linePoints = new ObservableCollection <NeuronDataPoint>();
                    foreach (var previousLayerPoint in previousLayerPoints)
                    {
                        linePoints.Add(new NeuronDataPoint(x, y, 5.5));
                        linePoints.Add(new NeuronDataPoint(previousLayerPoint.X, previousLayerPoint.Y, 5.5));
                    }

                    lineSeries.ItemsSource         = linePoints;
                    lineSeries.TrackerFormatString = "Waga: {Weight}";
                }

                previousLayerPoints = new List <ScatterPoint>(points);

                series.ItemsSource         = points;
                series.TrackerFormatString = "";
            }

            OxyPlotControl.InvalidatePlot(true);
            OxyPlotControl.IsLegendVisible = false;
        }
Пример #5
0
        public void PlotSpectrum(Detector detector, double OrderScale = 1)
        {
            if (detector == null)
            {
                return;
            }

            var bins = detector.GetHistogram();

            if (bins == null)
            {
                return;
            }

            m_Spectrum.Series.Clear();
            m_Spectrum.InvalidatePlot(true);

            var lineSeries = new OxyPlot.Wpf.LineSeries()
            {
                LineStyle           = LineStyle.Solid,
                Color               = OxyColors.OrangeRed.ToColor(),
                BrokenLineColor     = OxyColors.RoyalBlue.ToColor(),
                DataFieldX          = "X",
                DataFieldY          = "Y",
                TrackerFormatString = "Point position: {W:0.######}" + Environment.NewLine +
                                      "Wavelenght: {X:0.######}" + Environment.NewLine +
                                      "Counts: {Y}"
            };

            lineSeries.YAxisKey = "Counts";
            lineSeries.XAxisKey = "WaveLength";

            var step = (Math.Abs(detector.MeredionalMax - detector.MeredionalMin) / bins.Length);

            List <WavelenghtDataPoint> pointList = new List <WavelenghtDataPoint>();

            for (int i = 0; i < bins.Length; ++i)
            {
                double x = detector.MeredionalMin + i * step - detector.XShift;
                if (detector.ZeroCurve != null)
                {
                    pointList.Add(new WavelenghtDataPoint(detector.ZeroCurve.Evaluate(x) * OrderScale, bins[i], x));
                }
            }
            lineSeries.ItemsSource = pointList;
            lineSeries.Items.Refresh();

            m_Spectrum.Series.Add(lineSeries);
            m_Spectrum.InvalidatePlot(true);
        }
Пример #6
0
        // event handler
        void plotModel_MouseDown(object sender, OxyPlot.OxyMouseDownEventArgs e)
        {
            if (DivergenceConvergencePlot.Series.Any(p => p.GetType() == typeof(OxyPlot.Wpf.LineSeries)))
            {
                //  int l = DivergenceConvergencePlot.Series.Count;
                var list = DivergenceConvergencePlot.Series.Where(p => p.GetType() != typeof(OxyPlot.Wpf.LineSeries)).ToList();

                DivergenceConvergencePlot.Series.Clear();
                list.ForEach(p => DivergenceConvergencePlot.Series.Add(p));

                DivergenceConvergencePlot.InvalidatePlot();
            }

            try
            {
                ScatterPoint res = (ScatterPoint)e.HitTestResult.Item;

                if (res != null)
                {
                    string ID = res.Tag.ToString();

                    OxyPlot.Wpf.LineSeries tempseries = new OxyPlot.Wpf.LineSeries();
                    List <DataPoint>       points     = new List <DataPoint>();

                    //find all series with the ID
                    foreach (OxyPlot.Wpf.ScatterSeries series in DivergenceConvergencePlot.Series)
                    {
                        if (series.Tag.ToString() == ID)
                        {
                            ScatterPoint point = (ScatterPoint)series.Items[0];

                            points.Add(new DataPoint(point.X, point.Y));
                            //contains single point
                        }
                    }

                    tempseries.ItemsSource = points;
                    DivergenceConvergencePlot.Series.Add(tempseries);

                    DivergenceConvergencePlot.InvalidatePlot();
                }
            }
            catch (Exception ex)
            { }
        }
Пример #7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.oxyPlot = ((OxyPlot.Wpf.Plot)(target));
                return;

            case 2:
                this.ls = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 3:
                this.ls2 = ((OxyPlot.Wpf.LineSeries)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.plotmodel = ((OxyPlot.Wpf.Plot)(target));
                return;

            case 2:
                this.line1 = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 3:
                this.line2 = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 4:
                this.lin2axes = ((OxyPlot.Wpf.LinearAxis)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #9
0
        public void CompileAverageContributorsSeries()
        {
            int contribucount = 0;

            Agents.ForEach(p => p.Products.ForEach(a => contribucount += a.Contributors.Count));

            int pcount = 0;

            Agents.ForEach(p => pcount += p.Products.Count);

            contribucount /= pcount;

            ContribItems.Add(new DataPoint(CurrentIteration, contribucount));

            var t = new OxyPlot.Wpf.LineSeries();

            t.ItemsSource = ContribItems;

            AverageContrib.Series.Clear();
            AverageContrib.Series.Add(t);

            AverageContrib.InvalidatePlot();
        }
Пример #10
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\MainWindow.xaml"
                ((FL1.MainWindow)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseDown);

            #line default
            #line hidden
                return;

            case 2:
                this.g1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 3:
                this.operationsBox = ((System.Windows.Controls.ComboBox)(target));

            #line 14 "..\..\MainWindow.xaml"
                this.operationsBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.OperationsBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.aLeft = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.aRight = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.bLeft = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.bRight = ((System.Windows.Controls.TextBox)(target));
                return;

            case 8:
                this.calculate = ((System.Windows.Controls.Button)(target));

            #line 37 "..\..\MainWindow.xaml"
                this.calculate.Click += new System.Windows.RoutedEventHandler(this.Calculate_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.result = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 10:
                this.toAResult = ((System.Windows.Controls.Button)(target));

            #line 41 "..\..\MainWindow.xaml"
                this.toAResult.Click += new System.Windows.RoutedEventHandler(this.ToAResult_Click);

            #line default
            #line hidden
                return;

            case 11:
                this.toBResult = ((System.Windows.Controls.Button)(target));

            #line 44 "..\..\MainWindow.xaml"
                this.toBResult.Click += new System.Windows.RoutedEventHandler(this.ToBResult_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.additional = ((System.Windows.Controls.TextBox)(target));
                return;

            case 13:
                this.powerButton = ((System.Windows.Controls.Button)(target));

            #line 51 "..\..\MainWindow.xaml"
                this.powerButton.Click += new System.Windows.RoutedEventHandler(this.powerButton_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.addGrid = ((System.Windows.Controls.Button)(target));

            #line 54 "..\..\MainWindow.xaml"
                this.addGrid.Click += new System.Windows.RoutedEventHandler(this.addGrid_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.widerIcon = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

            case 16:
                this.model = ((OxyPlot.Wpf.Plot)(target));
                return;

            case 17:
                this.graph1 = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 18:
                this.graph2 = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 19:
                this.graph3 = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 20:
                this.viewModel = ((FL1.MainViewModel)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #11
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.btn_previous = ((System.Windows.Controls.Button)(target));

            #line 53 "..\..\..\NavigationPages\Page_Chart.xaml"
                this.btn_previous.Click += new System.Windows.RoutedEventHandler(this.btn_previous_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.txt_chart_number = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.txt_chart_now = ((System.Windows.Documents.Run)(target));
                return;

            case 4:
                this.txt_chart_all = ((System.Windows.Documents.Run)(target));
                return;

            case 5:
                this.btn_next = ((System.Windows.Controls.Button)(target));

            #line 65 "..\..\..\NavigationPages\Page_Chart.xaml"
                this.btn_next.Click += new System.Windows.RoutedEventHandler(this.btn_next_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.cbox_all = ((System.Windows.Controls.CheckBox)(target));

            #line 73 "..\..\..\NavigationPages\Page_Chart.xaml"
                this.cbox_all.Click += new System.Windows.RoutedEventHandler(this.CheckBox_Click);

            #line default
            #line hidden
                return;

            case 7:

            #line 80 "..\..\..\NavigationPages\Page_Chart.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.CheckBox_Checked);

            #line default
            #line hidden
                return;

            case 8:

            #line 88 "..\..\..\NavigationPages\Page_Chart.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.CheckBox_Checked);

            #line default
            #line hidden
                return;

            case 9:

            #line 96 "..\..\..\NavigationPages\Page_Chart.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.CheckBox_Checked);

            #line default
            #line hidden
                return;

            case 10:

            #line 104 "..\..\..\NavigationPages\Page_Chart.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.CheckBox_Checked);

            #line default
            #line hidden
                return;

            case 11:

            #line 112 "..\..\..\NavigationPages\Page_Chart.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.CheckBox_Checked);

            #line default
            #line hidden
                return;

            case 12:

            #line 120 "..\..\..\NavigationPages\Page_Chart.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.CheckBox_Checked);

            #line default
            #line hidden
                return;

            case 13:

            #line 128 "..\..\..\NavigationPages\Page_Chart.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.CheckBox_Checked);

            #line default
            #line hidden
                return;

            case 14:

            #line 136 "..\..\..\NavigationPages\Page_Chart.xaml"
                ((System.Windows.Controls.CheckBox)(target)).Click += new System.Windows.RoutedEventHandler(this.CheckBox_Checked);

            #line default
            #line hidden
                return;

            case 15:
                this.btn_deltaIL = ((System.Windows.Controls.Button)(target));

            #line 148 "..\..\..\NavigationPages\Page_Chart.xaml"
                this.btn_deltaIL.Click += new System.Windows.RoutedEventHandler(this.btn_deltaIL_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.Plot_Chart = ((OxyPlot.Wpf.Plot)(target));

            #line 158 "..\..\..\NavigationPages\Page_Chart.xaml"
                this.Plot_Chart.Loaded += new System.Windows.RoutedEventHandler(this.Plot_Chart_Loaded);

            #line default
            #line hidden
                return;

            case 17:
                this.No1 = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 18:
                this.No2 = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 19:
                this.No3 = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 20:
                this.No4 = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 21:
                this.No5 = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 22:
                this.No6 = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 23:
                this.No7 = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 24:
                this.No8 = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 25:
                this.No9 = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 26:
                this.No10 = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 27:
                this.No11 = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 28:
                this.No12 = ((OxyPlot.Wpf.LineSeries)(target));
                return;
            }
            this._contentLoaded = true;
        }
Пример #12
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.CurrentPropertySelected = ((System.Windows.Controls.TextBox)(target));
                return;

            case 2:
                this.CurrentOwnerSelected = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 4:
                this.CurrentRent = ((System.Windows.Controls.TextBox)(target));
                return;

            case 5:
                this.AddInvestmentProperty = ((System.Windows.Controls.Button)(target));

            #line 28 "..\..\MainWindow.xaml"
                this.AddInvestmentProperty.Click += new System.Windows.RoutedEventHandler(this.AddPropertyClicked);

            #line default
            #line hidden
                return;

            case 6:
                this.DefaultRun = ((System.Windows.Controls.Button)(target));

            #line 29 "..\..\MainWindow.xaml"
                this.DefaultRun.Click += new System.Windows.RoutedEventHandler(this.CreateDefaultClicked);

            #line default
            #line hidden
                return;

            case 7:
                this.InvestmentPropertyTab = ((System.Windows.Controls.TabItem)(target));
                return;

            case 8:
                this.SelectedPropertyTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.InvestmentAnalysisTab = ((System.Windows.Controls.TabItem)(target));
                return;

            case 10:
                this.PurchasePrice = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.OrginalInvestment = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 82 "..\..\MainWindow.xaml"
                this.ProfitChk.Checked += new System.Windows.RoutedEventHandler(this.RentAppliedChecked);

            #line default
            #line hidden

            #line 82 "..\..\MainWindow.xaml"
                this.ProfitChk.Unchecked += new System.Windows.RoutedEventHandler(this.RentAppliedChecked);

            #line default
            #line hidden
                return;

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

            #line 83 "..\..\MainWindow.xaml"
                this.NonTanChk.Checked += new System.Windows.RoutedEventHandler(this.RentAppliedChecked);

            #line default
            #line hidden

            #line 83 "..\..\MainWindow.xaml"
                this.NonTanChk.Unchecked += new System.Windows.RoutedEventHandler(this.RentAppliedChecked);

            #line default
            #line hidden
                return;

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

            #line 84 "..\..\MainWindow.xaml"
                this.EquityChk.Checked += new System.Windows.RoutedEventHandler(this.RentAppliedChecked);

            #line default
            #line hidden

            #line 84 "..\..\MainWindow.xaml"
                this.EquityChk.Unchecked += new System.Windows.RoutedEventHandler(this.RentAppliedChecked);

            #line default
            #line hidden
                return;

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

            #line 85 "..\..\MainWindow.xaml"
                this.RentAppliedChk.Checked += new System.Windows.RoutedEventHandler(this.RentAppliedChecked);

            #line default
            #line hidden

            #line 85 "..\..\MainWindow.xaml"
                this.RentAppliedChk.Unchecked += new System.Windows.RoutedEventHandler(this.RentAppliedChecked);

            #line default
            #line hidden
                return;

            case 16:
                this.AllProfitChk = ((System.Windows.Controls.CheckBox)(target));

            #line 86 "..\..\MainWindow.xaml"
                this.AllProfitChk.Checked += new System.Windows.RoutedEventHandler(this.RentAppliedChecked);

            #line default
            #line hidden

            #line 86 "..\..\MainWindow.xaml"
                this.AllProfitChk.Unchecked += new System.Windows.RoutedEventHandler(this.RentAppliedChecked);

            #line default
            #line hidden
                return;

            case 17:
                this.InvestmentRadioButtonGroup = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 18:
                this.OwnerRadioButtonGroup = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 19:
                this.PAGraph = ((OxyPlot.Wpf.Plot)(target));
                return;

            case 20:
                this.PAGraphBottom = ((OxyPlot.Wpf.LinearAxis)(target));
                return;

            case 21:
                this.PAGraphLeft = ((OxyPlot.Wpf.LinearAxis)(target));
                return;

            case 22:
                this.ProfitGraph = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 23:
                this.NonTanGraph = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 24:
                this.EquityGraph = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 25:
                this.MoneyBackLine = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 26:
                this.CashOutLine = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 27:
                this.AllProfit = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 28:
                this.PmiPaidGraph = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 29:
                this.MortgagePaidGraph = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 30:
                this.SingleOwnerTab = ((System.Windows.Controls.TabItem)(target));
                return;

            case 31:
                this.SOProfitChk = ((System.Windows.Controls.CheckBox)(target));

            #line 142 "..\..\MainWindow.xaml"
                this.SOProfitChk.Checked += new System.Windows.RoutedEventHandler(this.SORentAppliedChecked);

            #line default
            #line hidden

            #line 142 "..\..\MainWindow.xaml"
                this.SOProfitChk.Unchecked += new System.Windows.RoutedEventHandler(this.RentAppliedChecked);

            #line default
            #line hidden
                return;

            case 32:
                this.SONonTanChk = ((System.Windows.Controls.CheckBox)(target));

            #line 143 "..\..\MainWindow.xaml"
                this.SONonTanChk.Checked += new System.Windows.RoutedEventHandler(this.SORentAppliedChecked);

            #line default
            #line hidden

            #line 143 "..\..\MainWindow.xaml"
                this.SONonTanChk.Unchecked += new System.Windows.RoutedEventHandler(this.RentAppliedChecked);

            #line default
            #line hidden
                return;

            case 33:
                this.SOEquityChk = ((System.Windows.Controls.CheckBox)(target));

            #line 144 "..\..\MainWindow.xaml"
                this.SOEquityChk.Checked += new System.Windows.RoutedEventHandler(this.SORentAppliedChecked);

            #line default
            #line hidden

            #line 144 "..\..\MainWindow.xaml"
                this.SOEquityChk.Unchecked += new System.Windows.RoutedEventHandler(this.RentAppliedChecked);

            #line default
            #line hidden
                return;

            case 34:
                this.SORentAppliedChk = ((System.Windows.Controls.CheckBox)(target));

            #line 145 "..\..\MainWindow.xaml"
                this.SORentAppliedChk.Checked += new System.Windows.RoutedEventHandler(this.RentAppliedChecked);

            #line default
            #line hidden

            #line 145 "..\..\MainWindow.xaml"
                this.SORentAppliedChk.Unchecked += new System.Windows.RoutedEventHandler(this.SORentAppliedChecked);

            #line default
            #line hidden
                return;

            case 35:
                this.SOAllProfitChk = ((System.Windows.Controls.CheckBox)(target));

            #line 146 "..\..\MainWindow.xaml"
                this.SOAllProfitChk.Checked += new System.Windows.RoutedEventHandler(this.SORentAppliedChecked);

            #line default
            #line hidden

            #line 146 "..\..\MainWindow.xaml"
                this.SOAllProfitChk.Unchecked += new System.Windows.RoutedEventHandler(this.RentAppliedChecked);

            #line default
            #line hidden
                return;

            case 36:
                this.SOGraph = ((OxyPlot.Wpf.Plot)(target));
                return;

            case 37:
                this.SOGraphBottom = ((OxyPlot.Wpf.LinearAxis)(target));
                return;

            case 38:
                this.SOGraphLeft = ((OxyPlot.Wpf.LinearAxis)(target));
                return;

            case 39:
                this.SOProfitGraph = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 40:
                this.SONonTanGraph = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 41:
                this.SOEquityGraph = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 42:
                this.SOMoneyBackLine = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 43:
                this.SOCashOutLine = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 44:
                this.SOAllProfit = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 45:
                this.SOPmiPaidGraph = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 46:
                this.SOMortgagePaidGraph = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 47:
                this.AddPropertyPopup = ((System.Windows.Controls.Primitives.Popup)(target));
                return;

            case 48:
                this.InvestmentPropertyNamePopup = ((System.Windows.Controls.TextBox)(target));
                return;

            case 49:
                this.InvestmentPropertyPricePopup = ((System.Windows.Controls.TextBox)(target));
                return;

            case 50:
                this.InvestmentDatePopup = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 51:
                this.InvestmentRentPopup = ((System.Windows.Controls.TextBox)(target));
                return;

            case 52:
                this.InvestmentMaintancePopup = ((System.Windows.Controls.TextBox)(target));
                return;

            case 53:
                this.InvestmentDescriptionPopup = ((System.Windows.Controls.RichTextBox)(target));
                return;

            case 54:

            #line 223 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.AddInvestorClicked);

            #line default
            #line hidden
                return;

            case 55:
                this.InvestorsListPopup = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 56:
                this.InvestmentPayOffPopup = ((System.Windows.Controls.TextBox)(target));
                return;

            case 57:
                this.SaveProperty = ((System.Windows.Controls.Button)(target));

            #line 230 "..\..\MainWindow.xaml"
                this.SaveProperty.Click += new System.Windows.RoutedEventHandler(this.SavePropertyClicked);

            #line default
            #line hidden
                return;

            case 58:
                this.CancelProperty = ((System.Windows.Controls.Button)(target));

            #line 231 "..\..\MainWindow.xaml"
                this.CancelProperty.Click += new System.Windows.RoutedEventHandler(this.CancelPropertyClicked);

            #line default
            #line hidden
                return;

            case 59:
                this.AddInvestorPopup = ((System.Windows.Controls.Primitives.Popup)(target));
                return;

            case 60:
                this.InvestorNamePopup = ((System.Windows.Controls.TextBox)(target));
                return;

            case 61:
                this.CashDownPopup = ((System.Windows.Controls.TextBox)(target));
                return;

            case 62:
                this.AdditionalDownPopup = ((System.Windows.Controls.TextBox)(target));
                return;

            case 63:
                this.SaveInvestor = ((System.Windows.Controls.Button)(target));

            #line 264 "..\..\MainWindow.xaml"
                this.SaveInvestor.Click += new System.Windows.RoutedEventHandler(this.SaveInvestorClicked);

            #line default
            #line hidden
                return;

            case 64:
                this.CancelInvestor = ((System.Windows.Controls.Button)(target));

            #line 265 "..\..\MainWindow.xaml"
                this.CancelInvestor.Click += new System.Windows.RoutedEventHandler(this.CancelInvestorClicked);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
Пример #13
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainMenu = ((System.Windows.Controls.Menu)(target));
                return;

            case 2:

            #line 18 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.OpenConnectWindow);

            #line default
            #line hidden
                return;

            case 3:

            #line 19 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.Close);

            #line default
            #line hidden
                return;

            case 4:
                this.PerfMon = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 5:
                this.CreateCounters = ((System.Windows.Controls.MenuItem)(target));

            #line 22 "..\..\..\MainWindow.xaml"
                this.CreateCounters.Click += new System.Windows.RoutedEventHandler(this.LaunchCreate);

            #line default
            #line hidden
                return;

            case 6:

            #line 23 "..\..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.LaunchPerfmon);

            #line default
            #line hidden
                return;

            case 7:
                this.spLeft = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 8:
                this.gbrequest = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 9:
                this.lbRequestsPerSecond = ((System.Windows.Controls.Label)(target));
                return;

            case 10:
                this.slRequestSelect = ((System.Windows.Controls.Slider)(target));

            #line 41 "..\..\..\MainWindow.xaml"
                this.slRequestSelect.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ChangeFrequency);

            #line default
            #line hidden
                return;

            case 11:
                this.lbRequestValue = ((System.Windows.Controls.Label)(target));
                return;

            case 12:
                this.lbRequestUrl = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.tbRequestUrl = ((System.Windows.Controls.TextBox)(target));

            #line 44 "..\..\..\MainWindow.xaml"
                this.tbRequestUrl.LostFocus += new System.Windows.RoutedEventHandler(this.tbRequestUrlFocusLost);

            #line default
            #line hidden

            #line 44 "..\..\..\MainWindow.xaml"
                this.tbRequestUrl.KeyDown += new System.Windows.Input.KeyEventHandler(this.CheckEnter);

            #line default
            #line hidden
                return;

            case 14:
                this.lbFrontalWorkingTime = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.slFrontalWorkingTime = ((System.Windows.Controls.Slider)(target));

            #line 46 "..\..\..\MainWindow.xaml"
                this.slFrontalWorkingTime.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.slFrontalWorkingTimeValueChanged);

            #line default
            #line hidden
                return;

            case 16:
                this.vFrontalWorkingTime = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.lbRequestSize = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.slRequestSize = ((System.Windows.Controls.Slider)(target));

            #line 49 "..\..\..\MainWindow.xaml"
                this.slRequestSize.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.slFrontalWorkingTimeValueChanged);

            #line default
            #line hidden
                return;

            case 19:
                this.vRequestSize = ((System.Windows.Controls.Label)(target));
                return;

            case 20:
                this.button1 = ((System.Windows.Controls.Button)(target));

            #line 52 "..\..\..\MainWindow.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.StartRequest);

            #line default
            #line hidden
                return;

            case 21:
                this.Start = ((System.Windows.Controls.Image)(target));
                return;

            case 22:
                this.button2 = ((System.Windows.Controls.Button)(target));

            #line 55 "..\..\..\MainWindow.xaml"
                this.button2.Click += new System.Windows.RoutedEventHandler(this.EndRequest);

            #line default
            #line hidden
                return;

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

            case 24:
                this.gbRemoteConf = ((System.Windows.Controls.GroupBox)(target));
                return;

            case 25:
                this.lbRequestType = ((System.Windows.Controls.Label)(target));
                return;

            case 26:
                this.rbSync = ((System.Windows.Controls.RadioButton)(target));

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

            #line default
            #line hidden
                return;

            case 27:
                this.rbAsync = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 28:
                this.lbMaxWorkerThreads = ((System.Windows.Controls.Label)(target));
                return;

            case 29:
                this.tbMaxWTServer = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 30:
                this.tbMaxWorkerThreads = ((System.Windows.Controls.TextBox)(target));
                return;

            case 31:
                this.lbMaxIOThreads = ((System.Windows.Controls.Label)(target));
                return;

            case 32:
                this.tbMaxIOTServer = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 33:
                this.tbMaxIOThreads = ((System.Windows.Controls.TextBox)(target));
                return;

            case 34:
                this.lbMaxConnections = ((System.Windows.Controls.Label)(target));
                return;

            case 35:
                this.tbMaxConnectionsServer = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 36:
                this.tbMaxConnections = ((System.Windows.Controls.TextBox)(target));
                return;

            case 37:
                this.lbAvWorkerThreads = ((System.Windows.Controls.Label)(target));
                return;

            case 38:
                this.tbAvailableWT = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 39:
                this.lbAvIOThreads = ((System.Windows.Controls.Label)(target));
                return;

            case 40:
                this.tbAvailableIOT = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 41:
                this.lbMinWorkerThreads = ((System.Windows.Controls.Label)(target));
                return;

            case 42:
                this.tbMinWT = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 43:
                this.lbMinIOThreads = ((System.Windows.Controls.Label)(target));
                return;

            case 44:
                this.tbMinIOT = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 45:
                this.lbRuntimeRequestsInQueue = ((System.Windows.Controls.Label)(target));
                return;

            case 46:
                this.tbRuntimeRequestsInQueue = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 47:
                this.lbRequestQueueLimit = ((System.Windows.Controls.Label)(target));
                return;

            case 48:
                this.tbRequestQueueLimit = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 49:
                this.tbRequestQueueLimitValue = ((System.Windows.Controls.TextBox)(target));
                return;

            case 50:
                this.tbParallelDistantRequestValue = ((System.Windows.Controls.TextBox)(target));
                return;

            case 51:
                this.lbParallelDistantRequest = ((System.Windows.Controls.Label)(target));
                return;

            case 52:
                this.tbParallelDistantRequest = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 53:
                this.lbRequestTimeout = ((System.Windows.Controls.Label)(target));
                return;

            case 54:
                this.tbRequestTimeout = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 55:
                this.tbRequestTimeoutValue = ((System.Windows.Controls.TextBox)(target));
                return;

            case 56:
                this.lbRequestRWTimeout = ((System.Windows.Controls.Label)(target));
                return;

            case 57:
                this.tbRequestRWTimeout = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 58:
                this.tbRequestRWTimeoutValue = ((System.Windows.Controls.TextBox)(target));
                return;

            case 59:
                this.validate = ((System.Windows.Controls.Button)(target));

            #line 120 "..\..\..\MainWindow.xaml"
                this.validate.Click += new System.Windows.RoutedEventHandler(this.ChangeConfig);

            #line default
            #line hidden
                return;

            case 60:
                this.cancel = ((System.Windows.Controls.Button)(target));

            #line 123 "..\..\..\MainWindow.xaml"
                this.cancel.Click += new System.Windows.RoutedEventHandler(this.EndRequest);

            #line default
            #line hidden
                return;

            case 61:
                this.spRight = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 62:
                this.lbCurrReq = ((System.Windows.Controls.Label)(target));
                return;

            case 63:
                this.lbCurrReqValue = ((System.Windows.Controls.Label)(target));
                return;

            case 64:
                this.label5 = ((System.Windows.Controls.Label)(target));
                return;

            case 65:
                this.labelMax = ((System.Windows.Controls.Label)(target));
                return;

            case 66:
                this.label10 = ((System.Windows.Controls.Label)(target));
                return;

            case 67:
                this.labelFailed = ((System.Windows.Controls.Label)(target));
                return;

            case 68:
                this.lbTiemoutRequest = ((System.Windows.Controls.Label)(target));
                return;

            case 69:
                this.lbTiemoutRequestValue = ((System.Windows.Controls.Label)(target));
                return;

            case 70:
                this.lbAvgHomeTime = ((System.Windows.Controls.Label)(target));
                return;

            case 71:
                this.lbAvgHomeTimeValue = ((System.Windows.Controls.Label)(target));
                return;

            case 72:
                this.lbAvgSearchTime = ((System.Windows.Controls.Label)(target));
                return;

            case 73:
                this.lbAvgSearchTimeValue = ((System.Windows.Controls.Label)(target));
                return;

            case 74:
                this.MasterPlot = ((OxyPlot.Wpf.Plot)(target));
                return;

            case 75:
                this.lineoxyavgH = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 76:
                this.lineoxyavgS = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 77:
                this.lineoxysum = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 78:
                this.PlotRequestsSent = ((OxyPlot.Wpf.Plot)(target));
                return;

            case 79:
                this.lineoxyhome = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 80:
                this.lineoxyreceivesearch = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 81:
                this.lineoxyreceivehome = ((OxyPlot.Wpf.LineSeries)(target));
                return;

            case 82:
                this.lbNbRequestsSent = ((System.Windows.Controls.Label)(target));
                return;

            case 83:
                this.lbNbRequestsSentValue = ((System.Windows.Controls.Label)(target));
                return;

            case 84:
                this.lbNbResponseFromHome = ((System.Windows.Controls.Label)(target));
                return;

            case 85:
                this.lbNbResponseFromHomeValue = ((System.Windows.Controls.Label)(target));
                return;

            case 86:
                this.lbNbResponseFromSearch = ((System.Windows.Controls.Label)(target));
                return;

            case 87:
                this.lbNbResponseFromSearchValue = ((System.Windows.Controls.Label)(target));
                return;

            case 88:
                this.spLogs = ((System.Windows.Controls.StackPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }