The Cartesian chart can plot any series with x and y coordinates
상속: Chart, ICartesianChart
예제 #1
1
        public void SharingSeries()
        {
            var aGuy = new CartesianChart();
            var bGuy = new CartesianChart();

            aGuy.MockIt(new CoreSize(200, 200));
            bGuy.MockIt(new CoreSize(200, 200));

            var aSeries = new LineSeries();

            aGuy.Series.Add(aSeries);
            aGuy.Update();
            Debug.WriteLine(aGuy.Series.Count);

            bGuy.Series.Add(aSeries);
            bGuy.Update();
            Debug.WriteLine(aGuy.Series.Count);
            Debug.WriteLine(bGuy.Series.Count);
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.dtPicker1 = ((System.Windows.Controls.DatePicker)(target));

            #line 25 "..\..\..\View\Analytics.xaml"
                this.dtPicker1.SelectedDateChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.dtPicker1_SelectedDateChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.dtPicker2 = ((System.Windows.Controls.DatePicker)(target));

            #line 26 "..\..\..\View\Analytics.xaml"
                this.dtPicker2.SelectedDateChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.dtPicker2_SelectedDateChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.liveChart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.print = ((EyeKnowRight.DashboardView)(target));
                return;

            case 2:
                this.DepartmentChart = ((LiveCharts.Wpf.PieChart)(target));
                return;

            case 3:
                this.AppraisalChart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 4:
                this.LeaveChart = ((LiveCharts.Wpf.PieChart)(target));
                return;

            case 5:
                this.TopEmployee = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 6:
                this.TotalOvertime = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 7:
                this.TotalAbsence = ((LiveCharts.Wpf.CartesianChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.save = ((System.Windows.Controls.Button)(target));

            #line 10 "..\..\..\DiagramFull.xaml"
                this.save.Click += new System.Windows.RoutedEventHandler(this.save_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.chart = ((LiveCharts.Wpf.CartesianChart)(target));

            #line 11 "..\..\..\DiagramFull.xaml"
                this.chart.DataClick += new LiveCharts.Events.DataClickHandler(this.CartesianChart_DataClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
예제 #5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Chart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

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

            #line 46 "..\..\..\Views\SupervisionPage.xaml"
                this.BTNStartSupervision.Click += new System.Windows.RoutedEventHandler(this.BTNStartSupervision_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.BTNStopSupervision = ((System.Windows.Controls.Button)(target));

            #line 47 "..\..\..\Views\SupervisionPage.xaml"
                this.BTNStopSupervision.Click += new System.Windows.RoutedEventHandler(this.BTNStopSupervision_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
예제 #6
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.txbNumero = ((System.Windows.Controls.TextBlock)(target));
                return;

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

            case 3:
                this.camposOfertas = ((View.CamposOfertaControl)(target));
                return;

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

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

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

            case 7:
                this.dtDetalle = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 8:
                this.dtVerImagenesOferta = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 9:
                this.grdEstadistica = ((System.Windows.Controls.Grid)(target));
                return;

            case 10:
                this.chartValoraciones = ((LiveCharts.Wpf.CartesianChart)(target));

            #line 103 "..\..\VerOfertaDetallePage.xaml"
                this.chartValoraciones.Loaded += new System.Windows.RoutedEventHandler(this.CartesianChart_Loaded);

            #line default
            #line hidden
                return;

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

            case 12:
                this.btnVolver = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #7
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.FxControl = ((MarketData.GUI.FxView)(target));
                return;

            case 2:
                this.CcyComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 3:
                this.GraphButton = ((System.Windows.Controls.Button)(target));
                return;

            case 4:
                this.FxCartesianChart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 5:
                this.FxDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 6:
                this.ColumnChooserDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #8
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Start = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 2:
                this.DateEnd = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 3:
                this.UpdateByDate = ((System.Windows.Controls.Button)(target));

            #line 21 "..\..\Window2.xaml"
                this.UpdateByDate.Click += new System.Windows.RoutedEventHandler(this.UpdateByDate_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.Choose = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 5:
                this.TEST = ((LiveCharts.Wpf.CartesianChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #9
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Border1 = ((System.Windows.Controls.Border)(target));
                return;

            case 2:
                this.Border2 = ((System.Windows.Controls.Border)(target));
                return;

            case 3:

            #line 113 "..\..\..\..\CartesianChart\MaterialCards\MaterialCards.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.UpdateOnclick);

            #line default
            #line hidden
                return;

            case 4:
                this.TimePowerChart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #10
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\ReportScreen.xaml"
                ((MyShop.ReportScreen)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden
                return;

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

            case 3:
                this.reportChart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 4:

            #line 24 "..\..\ReportScreen.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.backWard_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
예제 #11
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PrintButton = ((System.Windows.Controls.Button)(target));

            #line 17 "..\..\MainWindow.xaml"
                this.PrintButton.Click += new System.Windows.RoutedEventHandler(this.PrintButton_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.forPrint = ((System.Windows.Documents.FlowDocument)(target));
                return;

            case 3:
                this.Header = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 4:
                this.ChartVisual = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 5:
                this.Image_StackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #12
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((Jiu_Jitsu_Assistant.Statistics)(target));
                return;

            case 2:
                this.barchart_container = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 3:
                this.stacked_container = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 4:
                this.Cumulative_count_label = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.Number_of_techniques_label = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #13
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.button1 = ((System.Windows.Controls.Button)(target));
                return;

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

            case 3:
                this.ColumnChart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 4:
                this.ColumnX = ((LiveCharts.Wpf.Axis)(target));
                return;

            case 5:
                this.PieChart = ((LiveCharts.Wpf.PieChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #14
0
        private void BuildPngOnClick(object sender, RoutedEventArgs e)
        {
            var myChart = new LiveCharts.Wpf.CartesianChart
            {
                DisableAnimations = true,
                Width             = 600,
                Height            = 200,
                Series            = new SeriesCollection
                {
                    new LineSeries
                    {
                        Values = new ChartValues <double> {
                            1, 6, 7, 2, 9, 3, 6, 5
                        }
                    }
                }
            };

            var viewbox = new Viewbox();

            viewbox.Child = myChart;
            viewbox.Measure(myChart.RenderSize);
            viewbox.Arrange(new Rect(new Point(0, 0), myChart.RenderSize));
            myChart.Update(true, true); //force chart redraw
            viewbox.UpdateLayout();

            SaveToPng(myChart, "chart.png");
            //png file was created at the root directory.
        }
예제 #15
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.root = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.timeSelect = ((ZebraBangumi.TimeSelectBlock)(target));
                return;

            case 3:
                this.btnSaveForm = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 4:
                this.detailSelect = ((ZebraBangumi.AddableSelectBlock)(target));
                return;

            case 5:
                this.chart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #16
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.fileName = ((System.Windows.Controls.TextBox)(target));
                return;

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

            #line 15 "..\..\FlightPlanBuilder.xaml"
                this.createfile.Click += new System.Windows.RoutedEventHandler(this.saveMapFile);

            #line default
            #line hidden
                return;

            case 3:
                this.MainMap = ((Microsoft.Maps.MapControl.WPF.Map)(target));
                return;

            case 4:
                this.markerListBox = ((System.Windows.Controls.ListBox)(target));
                return;

            case 5:
                this.altChart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #17
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\..\UcKozos\ucKimutatas.xaml"
                ((System.Windows.Controls.Grid)(target)).Loaded += new System.Windows.RoutedEventHandler(this.FrameworkElement_OnLoaded);

            #line default
            #line hidden
                return;

            case 2:
                this.Border2 = ((System.Windows.Controls.Border)(target));
                return;

            case 3:
                this.TimePowerChart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 4:
                this.Adatok = ((LiveCharts.Wpf.ColumnSeries)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #18
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MonthComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 44 "..\..\Statistics.xaml"
                this.MonthComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DateSelectionChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.YearComboBox = ((System.Windows.Controls.ComboBox)(target));

            #line 60 "..\..\Statistics.xaml"
                this.YearComboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.DateSelectionChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.Chart1 = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 4:
                this.Values1 = ((LiveCharts.Wpf.LineSeries)(target));
                return;

            case 5:
                this.Pie = ((LiveCharts.Wpf.PieChart)(target));
                return;

            case 6:
                this.Food = ((LiveCharts.Wpf.PieSeries)(target));
                return;

            case 7:
                this.Transport = ((LiveCharts.Wpf.PieSeries)(target));
                return;

            case 8:
                this.Education = ((LiveCharts.Wpf.PieSeries)(target));
                return;

            case 9:
                this.Entertainment = ((LiveCharts.Wpf.PieSeries)(target));
                return;

            case 10:
                this.Other = ((LiveCharts.Wpf.PieSeries)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #19
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DatePicker1 = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 2:
                this.DatePicker2 = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 3:
                this.searchProductInfoBtn = ((System.Windows.Controls.Button)(target));

            #line 100 "..\..\..\..\Views\Product\Product.xaml"
                this.searchProductInfoBtn.Click += new System.Windows.RoutedEventHandler(this.SearchProductInfoBtn_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.ProductInfo_Page = ((JM_GluingSystem.Common.Css.DataGridPage)(target));
                return;

            case 5:
                this.ProductInfo_DgSource = ((System.Windows.Controls.DataGrid)(target));

            #line 104 "..\..\..\..\Views\Product\Product.xaml"
                this.ProductInfo_DgSource.LoadingRow += new System.EventHandler <System.Windows.Controls.DataGridRowEventArgs>(this.ProductInfo_DgSource_LoadingRow);

            #line default
            #line hidden
                return;

            case 6:
                this.mychart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 7:
                this.myaxis = ((LiveCharts.Wpf.Axis)(target));
                return;

            case 8:
                this.mytootip = ((LiveCharts.Wpf.DefaultTooltip)(target));
                return;

            case 9:
                this.outputline = ((LiveCharts.Wpf.LineSeries)(target));
                return;

            case 10:
                this.Qualifiedline = ((LiveCharts.Wpf.LineSeries)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #20
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.SimulItem_Click = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 2:
                this.Stop_Click = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 3:
                this.MenuItem_Click = ((System.Windows.Controls.MenuItem)(target));
                return;

            case 4:
                this.TxtSensorCount = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 5:
                this.Ports = ((System.Windows.Controls.ComboBox)(target));
                return;

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

            case 7:
                this.Disconnect = ((System.Windows.Controls.Button)(target));
                return;

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

            case 9:
                this.RtbLog = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.SensorValues = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

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

            case 12:
                this.Clear_Chart = ((System.Windows.Controls.Button)(target));
                return;

            case 13:
                this.Close_App = ((System.Windows.Controls.Button)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #21
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainChart = ((LiveCharts.Wpf.CartesianChart)(target));

            #line 17 "..\..\reschart.xaml"
                this.MainChart.Loaded += new System.Windows.RoutedEventHandler(this.MainChart_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.HorizontalAxis = ((LiveCharts.Wpf.Axis)(target));
                return;

            case 3:
                this.button = ((System.Windows.Controls.Button)(target));

            #line 25 "..\..\reschart.xaml"
                this.button.Click += new System.Windows.RoutedEventHandler(this.button_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.button3 = ((System.Windows.Controls.Button)(target));

            #line 30 "..\..\reschart.xaml"
                this.button3.Click += new System.Windows.RoutedEventHandler(this.button3_Click);

            #line default
            #line hidden
                return;

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

            case 6:
                this.label = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 37 "..\..\reschart.xaml"
                this.button1.Click += new System.Windows.RoutedEventHandler(this.button1_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
예제 #22
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 45 "..\..\StepVIew.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.day_view);

            #line default
            #line hidden
                return;

            case 2:

            #line 50 "..\..\StepVIew.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.week_view);

            #line default
            #line hidden
                return;

            case 3:

            #line 55 "..\..\StepVIew.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.month_view);

            #line default
            #line hidden
                return;

            case 4:
                this.graph1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 5:
                this.c1 = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 6:
                this.graph2 = ((System.Windows.Controls.Grid)(target));
                return;

            case 7:
                this.c2 = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 8:
                this.graph3 = ((System.Windows.Controls.Grid)(target));
                return;

            case 9:
                this.c3 = ((LiveCharts.Wpf.CartesianChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #23
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.chart = ((LiveCharts.Wpf.CartesianChart)(target));

            #line 10 "..\..\..\Quantitative.xaml"
                this.chart.DataClick += new LiveCharts.Events.DataClickHandler(this.CartesianChart_DataClick);

            #line default
            #line hidden
                return;

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

            #line 19 "..\..\..\Quantitative.xaml"
                this.text.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.text_TextChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.up = ((System.Windows.Controls.Button)(target));

            #line 20 "..\..\..\Quantitative.xaml"
                this.up.Click += new System.Windows.RoutedEventHandler(this.cmdUp_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.down = ((System.Windows.Controls.Button)(target));

            #line 21 "..\..\..\Quantitative.xaml"
                this.down.Click += new System.Windows.RoutedEventHandler(this.cmdDown_Click);

            #line default
            #line hidden
                return;

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

            #line 22 "..\..\..\Quantitative.xaml"
                this.save.Click += new System.Windows.RoutedEventHandler(this.save_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
예제 #24
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.CartesianChart = ((LiveCharts.Wpf.CartesianChart)(target));
         return;
     }
     this._contentLoaded = true;
 }
예제 #25
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 12 "..\..\..\..\..\Data\ViewModels\Map.xaml"
                ((HeavyClient.Data.ViewModels.Map)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Page_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.MyMap = ((Microsoft.Maps.MapControl.WPF.Map)(target));
                return;

            case 3:
                this.detailsItem = ((System.Windows.Controls.TabItem)(target));
                return;

            case 4:
                this.DepartAdress = ((System.Windows.Controls.Label)(target));
                return;

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

            case 6:
                this.Distance = ((System.Windows.Controls.Label)(target));
                return;

            case 7:
                this.Duration = ((System.Windows.Controls.Label)(target));
                return;

            case 8:
                this.directions = ((System.Windows.Controls.ListBox)(target));
                return;

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

            case 10:
                this.mostVArrival = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.chart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #26
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\..\..\UI\Graficos.xaml"
                ((MetaWPF.UI.Graficos)(target)).Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.graficoHistorico = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

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

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

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

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

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

            case 8:
                this.graficoTempoReal = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 9:
                this.gaugeCorrent = ((LiveCharts.Wpf.Gauge)(target));
                return;

            case 10:
                this.gaugePotencia = ((LiveCharts.Wpf.Gauge)(target));
                return;

            case 11:
                this.gaugeTensao = ((LiveCharts.Wpf.Gauge)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #27
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.SwitchModeButton = ((VotingMaster.CustomClasses.CustomRoundedButton)(target));
                return;

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

            case 3:
                this.ExportCandidatesToCsv = ((VotingMaster.CustomClasses.CustomRoundedButton)(target));
                return;

            case 4:
                this.ExportCandidatesToPdf = ((VotingMaster.CustomClasses.CustomRoundedButton)(target));
                return;

            case 5:
                this.CandidateChart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 6:
                this.CandidateXAxis = ((LiveCharts.Wpf.Axis)(target));
                return;

            case 7:
                this.CandidateGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 8:
                this.ExportPartiesCsv = ((VotingMaster.CustomClasses.CustomRoundedButton)(target));
                return;

            case 9:
                this.ExportPartiesPdf = ((VotingMaster.CustomClasses.CustomRoundedButton)(target));
                return;

            case 10:
                this.PartyChart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 11:
                this.PartyXAxis = ((LiveCharts.Wpf.Axis)(target));
                return;

            case 12:
                this.PartyGrid = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #28
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.GridTest = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 3:
                this.date = ((System.Windows.Controls.DatePicker)(target));
                return;

            case 4:
                this.text = ((System.Windows.Controls.AutoCompleteBox)(target));
                return;

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

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

            case 7:
                this.border1 = ((System.Windows.Controls.Border)(target));
                return;

            case 8:
                this.BingMap = ((Microsoft.Maps.MapControl.WPF.Map)(target));
                return;

            case 9:
                this.packIcon = ((MaterialDesignThemes.Wpf.PackIcon)(target));
                return;

            case 10:
                this.border = ((System.Windows.Controls.Border)(target));
                return;

            case 11:
                this.grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 12:
                this.Chart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #29
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Graph = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 2:
                this.XLabels = ((LiveCharts.Wpf.Axis)(target));
                return;

            case 3:
                this.TodayButton = ((System.Windows.Controls.Button)(target));

            #line 27 "..\..\GraphUC.xaml"
                this.TodayButton.Click += new System.Windows.RoutedEventHandler(this.TodayButton_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.ThisMounthButton = ((System.Windows.Controls.Button)(target));

            #line 28 "..\..\GraphUC.xaml"
                this.ThisMounthButton.Click += new System.Windows.RoutedEventHandler(this.ThisMounthButton_Click);

            #line default
            #line hidden
                return;

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

            #line 29 "..\..\GraphUC.xaml"
                this.THisYearButton.Click += new System.Windows.RoutedEventHandler(this.THisYearButton_Click);

            #line default
            #line hidden
                return;

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

            #line 30 "..\..\GraphUC.xaml"
                this.AllTimeButton.Click += new System.Windows.RoutedEventHandler(this.AllTimeButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
예제 #30
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 8 "..\..\MainWindow.xaml"
                ((Wpf_chart.MainWindow)(target)).SizeChanged += new System.Windows.SizeChangedEventHandler(this.Window_SizeChanged);

            #line default
            #line hidden
                return;

            case 2:
                this.Chart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;

            case 3:
                this.b2 = ((System.Windows.Controls.Button)(target));

            #line 24 "..\..\MainWindow.xaml"
                this.b2.Click += new System.Windows.RoutedEventHandler(this.b2_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.b1 = ((System.Windows.Controls.Button)(target));

            #line 25 "..\..\MainWindow.xaml"
                this.b1.Click += new System.Windows.RoutedEventHandler(this.b1_Click);

            #line default
            #line hidden
                return;

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

            case 6:
                this.scrollbar1 = ((System.Windows.Controls.Primitives.ScrollBar)(target));

            #line 27 "..\..\MainWindow.xaml"
                this.scrollbar1.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler <double>(this.ScrollBar_ValueChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((Time_Owner.StatisticsWindow)(target));
                return;

            case 2:
                this.head = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 3:
                this.PART_TITLEBAR = ((System.Windows.Controls.Border)(target));

            #line 23 "..\..\StatisticsWindow.xaml"
                this.PART_TITLEBAR.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.moveRectangle_PreviewMouseDown);

            #line default
            #line hidden
                return;

            case 4:
                this.rightPanel = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 5:
                this.calendar = ((Time_Owner.MonthCalendar)(target));
                return;

            case 6:
                this.comboBoxType = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 7:

            #line 28 "..\..\StatisticsWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnRecalculate);

            #line default
            #line hidden
                return;

            case 8:
                this.listBoxTotalTime = ((System.Windows.Controls.ListBox)(target));
                return;

            case 9:
                this.chart = ((LiveCharts.Wpf.CartesianChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #32
0
        public void AutoSeriesColors()
        {
            var testguy = new CartesianChart();
            testguy.MockIt(new CoreSize(200, 200));

            var seriesCollection = new SeriesCollection();

            for (var i = 0; i < 100; i++)
            {
                seriesCollection.Add(new LineSeries {Values = new ChartValues<double> {1, 2, 3}});
            }

            testguy.Series = seriesCollection;
        }
예제 #33
-1
        void PersistentChart.CreateGraph()
        {
            _employeesInCompanyChart = new CartesianChart();
            _employeesInCompanyChart.Name = "Chart";
            _employeesInCompanyChart.Series = _viewModel.SeriesCollection;
            _employeesInCompanyChart.LegendLocation = LegendLocation.Left;

            Axis AxisX = new Axis();
            AxisX.Title = "Mes";
            AxisX.Labels = _viewModel.Labels;
            _employeesInCompanyChart.AxisX.Add(AxisX);

            Axis AxisY = new Axis();
            AxisY.Title = "Empleados";
            //AxisY.LabelFormatter = _viewModel.Formatter;

            LiveCharts.Wpf.Separator sep = new LiveCharts.Wpf.Separator();
            sep.IsEnabled = false;
            sep.Step = 1;
            AxisX.Separator = sep;

            _employeesInCompanyChart.AxisY.Add(AxisY);

            GridContainer.Children.Add(_employeesInCompanyChart);
            _gContainer = GridContainer;
        }
예제 #34
-1
        void PersistentChart.CreateGraph()
        {
            //!ELEMENT CartesianChart
            _paymentsChart = new CartesianChart();
            _paymentsChart.Name = "Chart";
            //gr.DisableAnimations = true;
            _paymentsChart.Series = _viewModel.SeriesCollection;
            // Series Binding
            /*Binding bndg = new Binding();
            // Next line don't know if neccessary
            bndg.Source = _viewModel;
            bndg.Path = new PropertyPath("SeriesCollection");
            gr.SetBinding(CartesianChart.SeriesProperty, bndg);*/
            _paymentsChart.LegendLocation = LiveCharts.LegendLocation.Right;

            //!subELEMENT CartesianChart.AxisY
            // Works but commented
            Axis AxisY = new Axis();
            AxisY.Title = "Pagos";
            AxisY.LabelFormatter = _viewModel.YFormatter;
            /* Binding bndgForm = new Binding();
             bndgForm.Source = _viewModel;
             bndgForm.Path = new PropertyPath("YFormatter");
             AxisY.SetBinding(Axis.LabelFormatterProperty, bndgForm);*/
            //gr.AddToView(AxisY);
            _paymentsChart.AxisY.Add(AxisY);

            //!subELEMENT CartesianChart.AxisX
            Axis AxisX = new Axis();
            AxisX.Title = "Mes";
            // This works
            AxisX.Labels = _viewModel.Labels;
            /*Binding bndgLab = new Binding();
            bndgLab.Source = _viewModel;
            bndgLab.Path = new PropertyPath("Labels");
            AxisX.SetBinding(Axis.LabelsProperty, bndgLab);*/
            /*gr.AddToView(AxisX);*/
            // Separator
            LiveCharts.Wpf.Separator sep = new LiveCharts.Wpf.Separator();
            sep.IsEnabled = false;
            sep.Step = 1;
            AxisX.Separator = sep; // Add separator

            _paymentsChart.AxisX.Add(AxisX);
            //gr.SetValue(Grid.RowProperty, 1);
            Grid.SetRow(_paymentsChart, 1);
            Grid.SetColumn(_paymentsChart, 0);
            GridContainer.Children.Add(_paymentsChart);
            _gContainer = GridContainer; // Save the Grid's reference to remove the chart later
        }