示例#1
0
        public override void Dispose()
        {
            if (timer != null)
            {
                timer.Tick -= timer_Tick;
            }

            if (chart != null && chart.DataContext is ProductDetails)
            {
                (chart.DataContext as ProductDetails).Dispose();
            }

            if (this.Chart1 != null)
            {
                foreach (var series in Chart1.Series)
                {
                    series.ClearValue(ChartSeriesBase.ItemsSourceProperty);
                }
                this.Chart1 = null;
            }

            if (this.chart != null)
            {
                foreach (var series in chart.Series)
                {
                    series.ClearValue(ChartSeriesBase.ItemsSourceProperty);
                }
                this.chart = null;
            }

            this.mainGrid.Resources = null;

            base.Dispose();
        }
示例#2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\..\..\BaoCaoComponents\BieuDoBanh\usTiLeDongGop.xaml"
                ((Milestone2.BaoCaoComponents.usTiLeDongGop)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.TrainsitionigContentSlide = ((MaterialDesignThemes.Wpf.Transitions.TransitioningContent)(target));
                return;

            case 3:
                this.chart = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.TuNgayDatePicker = ((System.Windows.Controls.DatePicker)(target));

            #line 63 "..\..\..\..\BaoCaoComponents\BieuDoBanh\usTiLeDongGop.xaml"
                this.TuNgayDatePicker.SelectedDateChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.TuNgayDatePicker_SelectedDateChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.DenNgayDatePicker = ((System.Windows.Controls.DatePicker)(target));

            #line 64 "..\..\..\..\BaoCaoComponents\BieuDoBanh\usTiLeDongGop.xaml"
                this.DenNgayDatePicker.SelectedDateChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.DenNgayDatePicker_SelectedDateChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.pieChart = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 7:
                this.ChartLegend1 = ((Syncfusion.UI.Xaml.Charts.ChartLegend)(target));
                return;

            case 8:
                this.pieSeries = ((Syncfusion.UI.Xaml.Charts.PieSeries)(target));
                return;

            case 9:
                this.ThongBaoSnackbar = ((MaterialDesignThemes.Wpf.Snackbar)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#3
0
 public AutoScrollingDemo()
 {
     this.InitializeComponent();
     date  = new DateTime();
     chart = Chart1;
     timer.Start();
     timer.Interval = TimeSpan.FromMilliseconds(150);
     timer.Tick    += timer_Tick;
 }
示例#4
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.BarCharTotalRepair = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
         return;
     }
     this._contentLoaded = true;
 }
示例#5
0
 public AutoScrollingDemo()
 {
     Resources.MergedDictionaries.Add(SfChart.Resources.ColorModelResource.Resource);
     this.InitializeComponent();
     date  = new DateTime();
     chart = Chart1;
     timer.Start();
     timer.Interval = TimeSpan.FromMilliseconds(150);
     timer.Tick    += timer_Tick;
 }
示例#6
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/PhoneApp3;component/AreaChartDemo.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.AreaChart = ((Syncfusion.UI.Xaml.Charts.SfChart)(this.FindName("AreaChart")));
     this.axis1 = ((Syncfusion.UI.Xaml.Charts.CategoryAxis)(this.FindName("axis1")));
     this.AreaSeries = ((Syncfusion.UI.Xaml.Charts.AreaSeries)(this.FindName("AreaSeries")));
 }
示例#7
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/batteryBetter;component/AreaChart.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.AreaChart  = ((Syncfusion.UI.Xaml.Charts.SfChart)(this.FindName("AreaChart")));
     this.axis1      = ((Syncfusion.UI.Xaml.Charts.CategoryAxis)(this.FindName("axis1")));
     this.AreaSeries = ((Syncfusion.UI.Xaml.Charts.AreaSeries)(this.FindName("AreaSeries")));
 }
        protected override void OnNavigatedFrom(NavigationEventArgs e)
        {
            Palettes view = e.Content as Palettes;

            if (selecter.SelectedItem != null)
            {
                Syncfusion.UI.Xaml.Charts.SfChart pie_chart = view.FindName("pieChart") as Syncfusion.UI.Xaml.Charts.SfChart;
                pie_chart.Series[0].Palette = (ChartColorPalette)selecter.SelectedItem;
                Syncfusion.UI.Xaml.Charts.SfChart bar_chart = view.FindName("barChart") as Syncfusion.UI.Xaml.Charts.SfChart;
                bar_chart.Palette = (ChartColorPalette)selecter.SelectedItem;
                base.OnNavigatedFrom(e);
            }
        }
示例#9
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\..\..\BaoCaoComponents\BieuDoDuong\usDoanhThu.xaml"
                ((Milestone2.BaoCaoComponents.usDoanhThu)(target)).Loaded += new System.Windows.RoutedEventHandler(this.UserControl_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.TrainsitionigContentSlide = ((MaterialDesignThemes.Wpf.Transitions.TransitioningContent)(target));
                return;

            case 3:
                this.chart = ((System.Windows.Controls.Grid)(target));
                return;

            case 4:
                this.TuThang = ((Syncfusion.Windows.Controls.Input.SfDatePicker)(target));

            #line 61 "..\..\..\..\BaoCaoComponents\BieuDoDuong\usDoanhThu.xaml"
                this.TuThang.ValueChanged += new System.Windows.PropertyChangedCallback(this.TuThang_ValueChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.DenThang = ((Syncfusion.Windows.Controls.Input.SfDatePicker)(target));

            #line 75 "..\..\..\..\BaoCaoComponents\BieuDoDuong\usDoanhThu.xaml"
                this.DenThang.ValueChanged += new System.Windows.PropertyChangedCallback(this.DenThang_ValueChanged);

            #line default
            #line hidden
                return;

            case 6:
                this.SplineChart = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 7:
                this.ThongBaoSnackbar = ((MaterialDesignThemes.Wpf.Snackbar)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.lineChart = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 2:
                this.DonViBieuDo = ((Syncfusion.UI.Xaml.Charts.NumericalAxis)(target));
                return;
            }
            this._contentLoaded = true;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.m1 = ((System.Windows.Controls.Button)(target));
                return;

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

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

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

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

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

            case 7:
                this.lineChart = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 8:
                this.Line = ((Syncfusion.UI.Xaml.Charts.LineSeries)(target));
                return;

            case 9:
                this.TWOCalendars = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 10:
                this.CalendarFrom = ((System.Windows.Controls.Calendar)(target));
                return;

            case 11:
                this.CalendarTo = ((System.Windows.Controls.Calendar)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#12
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/Easy%20Weight;component/MainPage.xaml", System.UriKind.Relative));
     this.weight     = ((System.Windows.Controls.TextBlock)(this.FindName("weight")));
     this.chart      = ((Syncfusion.UI.Xaml.Charts.SfChart)(this.FindName("chart")));
     this.new_weight = ((System.Windows.Controls.TextBox)(this.FindName("new_weight")));
     this.new_goal   = ((System.Windows.Controls.TextBox)(this.FindName("new_goal")));
     this.reset      = ((System.Windows.Controls.Button)(this.FindName("reset")));
 }
示例#13
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.LiveGraphChart = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 2:
                this.CopChart = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
        public async Task Save_UWP(NativeChart.SfChart nativechart, IRandomAccessStream stream)
        {
            var renderTargetBitmap = new RenderTargetBitmap();
            await renderTargetBitmap.RenderAsync(nativechart);

            var pixels = await renderTargetBitmap.GetPixelsAsync();

            Guid encoderId = BitmapEncoder.JpegEncoderId;
            var  encoder   = await BitmapEncoder.CreateAsync(encoderId, stream);

            encoder.SetPixelData(BitmapPixelFormat.Bgra8, BitmapAlphaMode.Ignore, (uint)renderTargetBitmap.PixelWidth,
                                 (uint)renderTargetBitmap.PixelHeight, 96.0, 96.0, pixels.ToArray());

            await encoder.FlushAsync();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.root = ((System.Windows.Controls.Border)(target));
                return;

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

            case 3:
                this.SplineChart = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#16
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 3:
                this.documentViewer = ((Syncfusion.Windows.PdfViewer.PdfDocumentView)(target));
                return;

            case 4:

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

            #line default
            #line hidden
                return;

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

            #line 35 "..\..\MainWindow.xaml"
                this.Button2.Click += new System.Windows.RoutedEventHandler(this.LoadPDF);

            #line default
            #line hidden
                return;

            case 6:
                this.chart = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#17
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.multipleDoughnutChart2 = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 2:
                this.selection = ((Syncfusion.UI.Xaml.Charts.ChartSelectionBehavior)(target));
                return;

            case 3:
                this.doughnutSeries = ((Syncfusion.UI.Xaml.Charts.DoughnutSeries)(target));
                return;

            case 4:
                this.dLegend = ((System.Windows.Controls.ItemsControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#18
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.chart = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 3:
                this.columnChart = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 4:

            #line 67 "..\..\Diagram.xaml"
                ((Syncfusion.UI.Xaml.Charts.NumericalAxis)(target)).ActualRangeChanged += new System.EventHandler <Syncfusion.UI.Xaml.Charts.ActualRangeChangedEventArgs>(this.NumericalAxis_ActualRangeChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.Don = ((System.Windows.Controls.Grid)(target));
                return;

            case 6:
                this.DoughnutChart = ((Syncfusion.UI.Xaml.Charts.SfChart3D)(target));
                return;

            case 7:
                this.pieSeries = ((Syncfusion.UI.Xaml.Charts.DoughnutSeries3D)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#19
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.cInner = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 2:
                this.sInner = ((Syncfusion.UI.Xaml.Charts.PieSeries)(target));
                return;

            case 3:
                this.cMidder = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 4:
                this.doughnutSeries2 = ((Syncfusion.UI.Xaml.Charts.DoughnutSeries)(target));
                return;

            case 5:
                this.vvv = ((Syncfusion.UI.Xaml.Charts.ChartAdornmentInfo)(target));
                return;

            case 6:
                this.cOuter = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 7:
                this.doughnutSeries3 = ((Syncfusion.UI.Xaml.Charts.DoughnutSeries)(target));
                return;

            case 8:
                this.iLegend = ((System.Windows.Controls.ItemsControl)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#20
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.DataGridAg = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 2:
                this.DataGridDevices = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 3:
                this.DataGridMerenja = ((System.Windows.Controls.DataGrid)(target));
                return;

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

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

            #line default
            #line hidden
                return;

            case 5:
                this.chart = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 6:
                this.series = ((Syncfusion.UI.Xaml.Charts.ColumnSeries)(target));
                return;
            }
            this._contentLoaded = true;
        }
        public async void ExportAsPDF(string filename, Stream chartStream, SfChart chart)
        {
            NativeChart.SfChart nativeChart = SfChartRenderer.GetNativeObject(typeof(SfChart), chart) as NativeChart.SfChart;

            StorageFolder localFolder = ApplicationData.Current.LocalFolder;
            StorageFile   file        = await localFolder.CreateFileAsync("filename", CreationCollisionOption.ReplaceExisting);

            if (file != null)
            {
                IRandomAccessStream stream = await file.OpenAsync(Windows.Storage.FileAccessMode.ReadWrite);
                await Save_UWP(nativeChart, stream);
            }

            using (var fileStream = await file.OpenAsync(FileAccessMode.Read))
            {
                var reader = new DataReader(fileStream.GetInputStreamAt(0));
                var bytes  = new byte[fileStream.Size];
                await reader.LoadAsync((uint)fileStream.Size);

                reader.ReadBytes(bytes);
                MemoryStream imageStream = new MemoryStream(bytes);

                if (file != null)
                {
                    var       document = new PdfDocument();
                    var       page     = document.Pages.Add();
                    var       graphics = page.Graphics;
                    PdfBitmap image    = new PdfBitmap(imageStream);
                    graphics.DrawImage(image, 0, 0, page.GetClientSize().Width, page.GetClientSize().Height);
                    chartStream = new MemoryStream();
                    document.Save(chartStream);
                    document.Close(true);
                    Save(chartStream, filename, ".pdf");
                }
            }
        }
示例#22
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.zSuffron = ((Syncfusion.Windows.Tools.Controls.ButtonAdv)(target));

            #line 65 "..\..\..\Home.xaml"
                this.zSuffron.Click += new System.Windows.RoutedEventHandler(this.zSuffron_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.zLime = ((Syncfusion.Windows.Tools.Controls.ButtonAdv)(target));

            #line 66 "..\..\..\Home.xaml"
                this.zLime.Click += new System.Windows.RoutedEventHandler(this.zLime_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.zOffice2016Colorful = ((Syncfusion.Windows.Tools.Controls.ButtonAdv)(target));

            #line 68 "..\..\..\Home.xaml"
                this.zOffice2016Colorful.Click += new System.Windows.RoutedEventHandler(this.zOffice2016Colorful_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.zBlend = ((Syncfusion.Windows.Tools.Controls.ButtonAdv)(target));

            #line 69 "..\..\..\Home.xaml"
                this.zBlend.Click += new System.Windows.RoutedEventHandler(this.zBlend_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.zMetro = ((Syncfusion.Windows.Tools.Controls.ButtonAdv)(target));

            #line 72 "..\..\..\Home.xaml"
                this.zMetro.Click += new System.Windows.RoutedEventHandler(this.zPallet_Cliked);

            #line default
            #line hidden
                return;

            case 6:
                this.zAutumnBrights = ((Syncfusion.Windows.Tools.Controls.ButtonAdv)(target));

            #line 73 "..\..\..\Home.xaml"
                this.zAutumnBrights.Click += new System.Windows.RoutedEventHandler(this.zPallet_Cliked);

            #line default
            #line hidden
                return;

            case 7:
                this.zFloraHues = ((Syncfusion.Windows.Tools.Controls.ButtonAdv)(target));

            #line 74 "..\..\..\Home.xaml"
                this.zFloraHues.Click += new System.Windows.RoutedEventHandler(this.zPallet_Cliked);

            #line default
            #line hidden
                return;

            case 8:
                this.zPineapple = ((Syncfusion.Windows.Tools.Controls.ButtonAdv)(target));

            #line 75 "..\..\..\Home.xaml"
                this.zPineapple.Click += new System.Windows.RoutedEventHandler(this.zPallet_Cliked);

            #line default
            #line hidden
                return;

            case 9:
                this.zTomotoSpectrum = ((Syncfusion.Windows.Tools.Controls.ButtonAdv)(target));

            #line 76 "..\..\..\Home.xaml"
                this.zTomotoSpectrum.Click += new System.Windows.RoutedEventHandler(this.zPallet_Cliked);

            #line default
            #line hidden
                return;

            case 10:
                this.zRedChrome = ((Syncfusion.Windows.Tools.Controls.ButtonAdv)(target));

            #line 77 "..\..\..\Home.xaml"
                this.zRedChrome.Click += new System.Windows.RoutedEventHandler(this.zPallet_Cliked);

            #line default
            #line hidden
                return;

            case 11:
                this.zPurpleChrome = ((Syncfusion.Windows.Tools.Controls.ButtonAdv)(target));

            #line 78 "..\..\..\Home.xaml"
                this.zPurpleChrome.Click += new System.Windows.RoutedEventHandler(this.zPallet_Cliked);

            #line default
            #line hidden
                return;

            case 12:
                this.zBlueChrome = ((Syncfusion.Windows.Tools.Controls.ButtonAdv)(target));

            #line 79 "..\..\..\Home.xaml"
                this.zBlueChrome.Click += new System.Windows.RoutedEventHandler(this.zPallet_Cliked);

            #line default
            #line hidden
                return;

            case 13:
                this.zGreenChrome = ((Syncfusion.Windows.Tools.Controls.ButtonAdv)(target));

            #line 80 "..\..\..\Home.xaml"
                this.zGreenChrome.Click += new System.Windows.RoutedEventHandler(this.zPallet_Cliked);

            #line default
            #line hidden
                return;

            case 14:
                this.zElite = ((Syncfusion.Windows.Tools.Controls.ButtonAdv)(target));

            #line 81 "..\..\..\Home.xaml"
                this.zElite.Click += new System.Windows.RoutedEventHandler(this.zPallet_Cliked);

            #line default
            #line hidden
                return;

            case 15:
                this.zLightCandy = ((Syncfusion.Windows.Tools.Controls.ButtonAdv)(target));

            #line 82 "..\..\..\Home.xaml"
                this.zLightCandy.Click += new System.Windows.RoutedEventHandler(this.zPallet_Cliked);

            #line default
            #line hidden
                return;

            case 16:
                this.zSandyBeach = ((Syncfusion.Windows.Tools.Controls.ButtonAdv)(target));

            #line 83 "..\..\..\Home.xaml"
                this.zSandyBeach.Click += new System.Windows.RoutedEventHandler(this.zPallet_Cliked);

            #line default
            #line hidden
                return;

            case 17:
                this.z_from = ((Syncfusion.Windows.Shared.DoubleTextBox)(target));
                return;

            case 18:
                this.z_inc = ((Syncfusion.Windows.Shared.DoubleTextBox)(target));
                return;

            case 19:
                this.z_to = ((Syncfusion.Windows.Shared.DoubleTextBox)(target));
                return;

            case 20:
                this.zGo = ((Syncfusion.Windows.Tools.Controls.ButtonAdv)(target));

            #line 110 "..\..\..\Home.xaml"
                this.zGo.Click += new System.Windows.RoutedEventHandler(this.ZGo_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.pg = ((Syncfusion.UI.Xaml.Grid.SfDataGrid)(target));
                return;

            case 22:
                this.zChart = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 23:
                this.avgChart0 = ((Syncfusion.UI.Xaml.Charts.BubbleSeries)(target));
                return;

            case 24:
                this.zChart1 = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 25:
                this.avgChart1 = ((Syncfusion.UI.Xaml.Charts.LineSeries)(target));
                return;

            case 26:
                this.zChart2 = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 27:
                this.avgChart2 = ((Syncfusion.UI.Xaml.Charts.AreaSeries)(target));
                return;

            case 28:
                this.zChart3 = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 29:
                this.avgChart3 = ((Syncfusion.UI.Xaml.Charts.ColumnSeries)(target));
                return;

            case 30:
                this.zChart4 = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 31:
                this.avgChart4 = ((Syncfusion.UI.Xaml.Charts.ScatterSeries)(target));
                return;

            case 32:
                this.zChart5 = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 33:
                this.avgChart5 = ((Syncfusion.UI.Xaml.Charts.StepLineSeries)(target));
                return;

            case 34:
                this.zChart6 = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 35:
                this.avgChart6 = ((Syncfusion.UI.Xaml.Charts.SplineSeries)(target));
                return;

            case 36:
                this.zChart7 = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 37:
                this.avgChart7 = ((Syncfusion.UI.Xaml.Charts.BarSeries)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#23
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.palettecombo = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 2:
     this.myGauge2 = ((CircularGauge.CircularGaugeControl)(target));
     return;
     case 3:
     this.barChart = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
     return;
     case 4:
     this.barSeries1 = ((Syncfusion.UI.Xaml.Charts.BarSeries)(target));
     return;
     case 5:
     this.barChart1 = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
     return;
     case 6:
     this.barSeries2 = ((Syncfusion.UI.Xaml.Charts.BarSeries)(target));
     return;
     }
     this._contentLoaded = true;
 }
示例#24
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 28 "..\..\..\Pages\Report.xaml"
                ((System.Windows.Controls.Primitives.RepeatButton)(target)).Click += new System.Windows.RoutedEventHandler(this.RepeatButton_Click_1);

            #line default
            #line hidden
                return;

            case 2:

            #line 36 "..\..\..\Pages\Report.xaml"
                ((System.Windows.Controls.Primitives.RepeatButton)(target)).Click += new System.Windows.RoutedEventHandler(this.RepeatButton_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.WindowScroll = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 4:

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

            #line default
            #line hidden
                return;

            case 5:
                this.OrderDetails = ((System.Windows.Controls.Grid)(target));
                return;

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

            case 7:
                this.FondSumm = ((System.Windows.Controls.DockPanel)(target));
                return;

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

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

            case 10:
                this.cInner = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 11:
                this.sInner = ((Syncfusion.UI.Xaml.Charts.PieSeries)(target));
                return;

            case 12:
                this.cMidder = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 13:
                this.doughnutSeries2 = ((Syncfusion.UI.Xaml.Charts.DoughnutSeries)(target));
                return;

            case 14:
                this.vvv = ((Syncfusion.UI.Xaml.Charts.ChartAdornmentInfo)(target));
                return;

            case 15:
                this.cOuter = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 16:
                this.doughnutSeries3 = ((Syncfusion.UI.Xaml.Charts.DoughnutSeries)(target));
                return;

            case 17:
                this.Legeng = ((System.Windows.Controls.Grid)(target));
                return;

            case 18:
                this.iLegend = ((System.Windows.Controls.ItemsControl)(target));
                return;

            case 19:
                this.Moreinformation = ((System.Windows.Controls.Grid)(target));
                return;

            case 20:
                this.InvestDetails = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 21:
                this.Chart = ((System.Windows.Controls.Grid)(target));
                return;

            case 22:
                this.actives = ((System.Windows.Controls.Grid)(target));
                return;

            case 23:
                this.TTT = ((Syncfusion.UI.Xaml.Charts.NumericalAxis)(target));
                return;

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

            case 25:
                this.CalendarFrom = ((System.Windows.Controls.Calendar)(target));
                return;

            case 26:
                this.CalendarTo = ((System.Windows.Controls.Calendar)(target));
                return;

            case 27:
                this.m1 = ((System.Windows.Controls.Button)(target));
                return;

            case 28:
                this.m3 = ((System.Windows.Controls.Button)(target));
                return;

            case 29:
                this.m4 = ((System.Windows.Controls.Button)(target));
                return;

            case 30:
                this.y1 = ((System.Windows.Controls.Button)(target));
                return;

            case 31:
                this.y2 = ((System.Windows.Controls.Button)(target));
                return;

            case 32:
                this.max = ((System.Windows.Controls.Button)(target));
                return;

            case 33:
                this.TotalRBTN = ((System.Windows.Controls.RadioButton)(target));
                return;

            case 34:
                this.ActivesRBTN = ((System.Windows.Controls.RadioButton)(target));
                return;

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

            #line 1117 "..\..\..\Pages\Report.xaml"
                this.Port_wine.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 36:
                this.Port_investment_bonds = ((System.Windows.Controls.CheckBox)(target));

            #line 1119 "..\..\..\Pages\Report.xaml"
                this.Port_investment_bonds.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 37:
                this.Port_speculation_bonds = ((System.Windows.Controls.CheckBox)(target));

            #line 1129 "..\..\..\Pages\Report.xaml"
                this.Port_speculation_bonds.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 38:
                this.Port_Credit_Linked_Notes = ((System.Windows.Controls.CheckBox)(target));

            #line 1139 "..\..\..\Pages\Report.xaml"
                this.Port_Credit_Linked_Notes.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 39:
                this.Port_SNGC = ((System.Windows.Controls.CheckBox)(target));

            #line 1141 "..\..\..\Pages\Report.xaml"
                this.Port_SNGC.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 40:
                this.Port_SNCC = ((System.Windows.Controls.CheckBox)(target));

            #line 1151 "..\..\..\Pages\Report.xaml"
                this.Port_SNCC.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 41:
                this.Port_SNRS = ((System.Windows.Controls.CheckBox)(target));

            #line 1159 "..\..\..\Pages\Report.xaml"
                this.Port_SNRS.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 42:
                this.Port_Hi_cap_share = ((System.Windows.Controls.CheckBox)(target));

            #line 1167 "..\..\..\Pages\Report.xaml"
                this.Port_Hi_cap_share.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 43:
                this.Port_emerging_markets = ((System.Windows.Controls.CheckBox)(target));

            #line 1169 "..\..\..\Pages\Report.xaml"
                this.Port_emerging_markets.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 44:
                this.Port_mid_cap_share = ((System.Windows.Controls.CheckBox)(target));

            #line 1171 "..\..\..\Pages\Report.xaml"
                this.Port_mid_cap_share.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 45:
                this.Port_lo_cap = ((System.Windows.Controls.CheckBox)(target));

            #line 1176 "..\..\..\Pages\Report.xaml"
                this.Port_lo_cap.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 46:
                this.Port_options = ((System.Windows.Controls.CheckBox)(target));

            #line 1178 "..\..\..\Pages\Report.xaml"
                this.Port_options.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 47:
                this.Port_futures = ((System.Windows.Controls.CheckBox)(target));

            #line 1180 "..\..\..\Pages\Report.xaml"
                this.Port_futures.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 48:
                this.Port_leveraged_ETF = ((System.Windows.Controls.CheckBox)(target));

            #line 1182 "..\..\..\Pages\Report.xaml"
                this.Port_leveraged_ETF.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 49:
                this.Port_mutual_funds = ((System.Windows.Controls.CheckBox)(target));

            #line 1184 "..\..\..\Pages\Report.xaml"
                this.Port_mutual_funds.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 50:
                this.Port_residential_properties = ((System.Windows.Controls.CheckBox)(target));

            #line 1189 "..\..\..\Pages\Report.xaml"
                this.Port_residential_properties.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 51:
                this.Port_commercial_property = ((System.Windows.Controls.CheckBox)(target));

            #line 1191 "..\..\..\Pages\Report.xaml"
                this.Port_commercial_property.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 52:
                this.Port_classics_pictures = ((System.Windows.Controls.CheckBox)(target));

            #line 1193 "..\..\..\Pages\Report.xaml"
                this.Port_classics_pictures.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 53:
                this.Port_modern_pictures = ((System.Windows.Controls.CheckBox)(target));

            #line 1195 "..\..\..\Pages\Report.xaml"
                this.Port_modern_pictures.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 54:
                this.Port_marks = ((System.Windows.Controls.CheckBox)(target));

            #line 1197 "..\..\..\Pages\Report.xaml"
                this.Port_marks.Click += new System.Windows.RoutedEventHandler(this.Resize_dynamic);

            #line default
            #line hidden
                return;

            case 55:
                this.total = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 56:
                this.Onflo_Outflow = ((System.Windows.Controls.Grid)(target));
                return;

            case 57:
                this.FundingTools = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 58:
                this.DGWithdraw = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 59:
                this.Statements = ((System.Windows.Controls.Border)(target));
                return;

            case 60:
                this.Statement = ((System.Windows.Controls.Grid)(target));
                return;

            case 61:
                this.StatementDG = ((System.Windows.Controls.DataGrid)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#25
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.symbolBox = ((Telerik.Windows.Controls.RadAutoCompleteBox)(target));
                return;

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

            #line 22 "..\..\MainWindow.xaml"
                this.dpStart.SelectedDateChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.dpStart_SelectedDateChanged);

            #line default
            #line hidden
                return;

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

            #line 32 "..\..\MainWindow.xaml"
                this.dpExpiration.SelectedDateChanged += new System.EventHandler <System.Windows.Controls.SelectionChangedEventArgs>(this.dpExpiration_SelectedDateChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.mainChart = ((Syncfusion.UI.Xaml.Charts.SfChart)(target));
                return;

            case 5:
                this.primaryMain = ((Syncfusion.UI.Xaml.Charts.DateTimeCategoryAxis)(target));
                return;

            case 6:
                this.secondaryMain = ((Syncfusion.UI.Xaml.Charts.NumericalAxis)(target));
                return;

            case 7:
                this.navigator = ((Syncfusion.UI.Xaml.Charts.SfDateTimeRangeNavigator)(target));
                return;

            case 8:
                this.navigatorChart = ((Syncfusion.UI.Xaml.Charts.SfLineSparkline)(target));
                return;

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

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

            #line 78 "..\..\MainWindow.xaml"
                this.btnQuery.Click += new System.Windows.RoutedEventHandler(this.btnQuery_Click);

            #line default
            #line hidden
                return;

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

            #line 79 "..\..\MainWindow.xaml"
                this.btnQueryPercent.Click += new System.Windows.RoutedEventHandler(this.btnQueryPrice_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }