The pie series should be added only in a pie chart.
Inheritance: Series, IPieSeriesView
示例#1
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;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.P1 = ((LiveCharts.Wpf.PieSeries)(target));
                return;

            case 2:
                this.P2 = ((LiveCharts.Wpf.PieSeries)(target));
                return;

            case 3:
                this.P3 = ((LiveCharts.Wpf.PieSeries)(target));
                return;

            case 4:
                this.P4 = ((LiveCharts.Wpf.PieSeries)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\Dashboard.xaml"
                ((ClassMateDesktop.Dashboard)(target)).MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseDown);

            #line default
            #line hidden
                return;

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

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

            #line 13 "..\..\Dashboard.xaml"
                this.comboBox.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboBox_SelectionChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.questionListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 5:
                this.feedbackListView = ((System.Windows.Controls.ListView)(target));
                return;

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

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

            #line default
            #line hidden
                return;

            case 7:
                this.pieChart = ((LiveCharts.Wpf.PieChart)(target));

            #line 40 "..\..\Dashboard.xaml"
                this.pieChart.DataClick += new LiveCharts.Events.DataClickHandler(this.Chart_OnDataClick);

            #line default
            #line hidden
                return;

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

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

            case 10:
                this.neutralOne = ((LiveCharts.Wpf.PieSeries)(target));
                return;

            case 11:
                this.image = ((System.Windows.Controls.Image)(target));

            #line 53 "..\..\Dashboard.xaml"
                this.image.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.aPicture_MouseDown);

            #line default
            #line hidden
                return;

            case 12:
                this.textBlock = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 13:
                this.textBlock1 = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 14:
                this.textBlock1_Copy = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 15:
                this.textBlock1_Copy1 = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\MainWindow.xaml"
                ((projekt.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

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

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

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden
                return;

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

            #line 87 "..\..\MainWindow.xaml"
                this.DiagramsButton.Click += new System.Windows.RoutedEventHandler(this.DiagramsButton_Click);

            #line default
            #line hidden
                return;

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

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

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

            case 9:
                this.idColumn = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 10:
                this.cityColumn = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 11:
                this.countryColumn = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 12:
                this.latitudeColumn = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

            case 13:
                this.longitudeColumn = ((System.Windows.Controls.DataGridTextColumn)(target));
                return;

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

            #line 130 "..\..\MainWindow.xaml"
                this.saveToDatabaseButton.Click += new System.Windows.RoutedEventHandler(this.SaveToDatabaseButton_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.inputCountry = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.inputCity = ((System.Windows.Controls.TextBox)(target));
                return;

            case 17:
                this.inputLatitude = ((System.Windows.Controls.TextBox)(target));
                return;

            case 18:
                this.inputLongitude = ((System.Windows.Controls.TextBox)(target));
                return;

            case 19:
                this.addPlaceButton = ((System.Windows.Controls.Button)(target));

            #line 158 "..\..\MainWindow.xaml"
                this.addPlaceButton.Click += new System.Windows.RoutedEventHandler(this.AddPlaceButton_Click);

            #line default
            #line hidden
                return;

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

            #line 159 "..\..\MainWindow.xaml"
                this.addLocalXMLFile.Click += new System.Windows.RoutedEventHandler(this.AddLocalXMLFile_Click);

            #line default
            #line hidden
                return;

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

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

            #line 176 "..\..\MainWindow.xaml"
                this.loadFromApiButton.Click += new System.Windows.RoutedEventHandler(this.loadFromApiButton_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.autoGenerateButton = ((System.Windows.Controls.Button)(target));

            #line 177 "..\..\MainWindow.xaml"
                this.autoGenerateButton.Click += new System.Windows.RoutedEventHandler(this.AutoGenerateButton_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.Settings = ((System.Windows.Controls.Grid)(target));
                return;

            case 25:
                this.ContainerSettings = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 26:
                this.fontComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 27:
                this.btnFontSizeComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 28:
                this.btnColorComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 29:
                this.activeBtnColorComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 30:
                this.btnBorderColorComboBox = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 31:

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

            #line default
            #line hidden
                return;

            case 32:

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

            #line default
            #line hidden
                return;

            case 33:
                this.Diagrams = ((System.Windows.Controls.Grid)(target));
                return;

            case 34:
                this.Charts = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 35:

            #line 221 "..\..\MainWindow.xaml"
                ((LiveCharts.Wpf.PieChart)(target)).DataClick += new LiveCharts.Events.DataClickHandler(this.Chart_OnDataClick);

            #line default
            #line hidden
                return;

            case 36:
                this.Lat9060 = ((LiveCharts.Wpf.PieSeries)(target));
                return;

            case 37:
                this.Lat6030 = ((LiveCharts.Wpf.PieSeries)(target));
                return;

            case 38:
                this.Lat300 = ((LiveCharts.Wpf.PieSeries)(target));
                return;

            case 39:
                this.Lat030 = ((LiveCharts.Wpf.PieSeries)(target));
                return;

            case 40:
                this.Lat3060 = ((LiveCharts.Wpf.PieSeries)(target));
                return;

            case 41:
                this.Lat6090 = ((LiveCharts.Wpf.PieSeries)(target));
                return;
            }
            this._contentLoaded = true;
        }