private static void AttachDataSourceCollectionChangedListener(SerialChart chart, object dataSource) { if (dataSource != null && dataSource is INotifyCollectionChanged) { (dataSource as INotifyCollectionChanged).CollectionChanged += new NotifyCollectionChangedEventHandler(chart.OnDataSourceCollectionChanged); } }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/WebControl;component/Forms/TrendForm.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.btnStartPause = ((WebControl.ButtonEx)(this.FindName("btnStartPause"))); this.cbeTimeDistance = ((DevExpress.Xpf.Editors.ComboBoxEdit)(this.FindName("cbeTimeDistance"))); this.tbToolTipTimeDistace = ((System.Windows.Controls.TextBlock)(this.FindName("tbToolTipTimeDistace"))); this.deBegin = ((DevExpress.Xpf.Editors.DateEdit)(this.FindName("deBegin"))); this.deEnd = ((DevExpress.Xpf.Editors.DateEdit)(this.FindName("deEnd"))); this.btnTimePeriodAuto = ((WebControl.ButtonEx)(this.FindName("btnTimePeriodAuto"))); this.cbeTimePeriod = ((DevExpress.Xpf.Editors.ComboBoxEdit)(this.FindName("cbeTimePeriod"))); this.tbToolTipTimePeriod = ((System.Windows.Controls.TextBlock)(this.FindName("tbToolTipTimePeriod"))); this.btnUpdate = ((WebControl.ButtonEx)(this.FindName("btnUpdate"))); this.btnBack = ((WebControl.ButtonEx)(this.FindName("btnBack"))); this.btnForward = ((WebControl.ButtonEx)(this.FindName("btnForward"))); this.btnExport = ((WebControl.ButtonEx)(this.FindName("btnExport"))); this.chrBase = ((AmCharts.Windows.QuickCharts.SerialChart)(this.FindName("chrBase"))); this.lblStatus = ((System.Windows.Controls.TextBlock)(this.FindName("lblStatus"))); this.ckUpdate = ((WebControl.CheckUpdateLabel)(this.FindName("ckUpdate"))); }
private static void DetachOldDataSourceCollectionChangedListener(SerialChart chart, object dataSource) { if (dataSource != null && dataSource is INotifyCollectionChanged) { (dataSource as INotifyCollectionChanged).CollectionChanged -= chart.OnDataSourceCollectionChanged; } }
private static void OnDataSourcePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { SerialChart chart = d as SerialChart; DetachOldDataSourceCollectionChangedListener(chart, e.OldValue); AttachDataSourceCollectionChangedListener(chart, e.NewValue); chart.ProcessData(); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/ColetaDados%20Rasp;component/Graficos.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel"))); this.LineChart1 = ((AmCharts.Windows.QuickCharts.SerialChart)(this.FindName("LineChart1"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/ChartsSample;component/Views/MainPage.xaml", System.UriKind.Relative)); this.panorama = ((Microsoft.Phone.Controls.Panorama)(this.FindName("panorama"))); this.PieChart = ((AmCharts.Windows.QuickCharts.PieChart)(this.FindName("PieChart"))); this.LineChart = ((AmCharts.Windows.QuickCharts.SerialChart)(this.FindName("LineChart"))); this.BarChart = ((AmCharts.Windows.QuickCharts.SerialChart)(this.FindName("BarChart"))); this.MixedChart = ((AmCharts.Windows.QuickCharts.SerialChart)(this.FindName("MixedChart"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/MoodTracker;component/MyHistory.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.c_progressBar = ((System.Windows.Controls.ProgressBar)(this.FindName("c_progressBar"))); this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel"))); this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle"))); this.c_RecordName = ((System.Windows.Controls.TextBlock)(this.FindName("c_RecordName"))); this.PageTitle = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle"))); this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel"))); this.GraphLabel = ((System.Windows.Controls.TextBlock)(this.FindName("GraphLabel"))); this.EmotionsChart = ((AmCharts.Windows.QuickCharts.SerialChart)(this.FindName("EmotionsChart"))); this.Button_Prev = ((System.Windows.Controls.Button)(this.FindName("Button_Prev"))); this.Button_Next = ((System.Windows.Controls.Button)(this.FindName("Button_Next"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/ReceiptStorage;component/MainPage.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.tbFilter = ((Microsoft.Phone.Controls.PhoneTextBox)(this.FindName("tbFilter"))); this.lbReceipt = ((System.Windows.Controls.ListBox)(this.FindName("lbReceipt"))); this.tblLastWeek = ((System.Windows.Controls.TextBlock)(this.FindName("tblLastWeek"))); this.receiptWeeksChart = ((AmCharts.Windows.QuickCharts.SerialChart)(this.FindName("receiptWeeksChart"))); this.tblLastMonth = ((System.Windows.Controls.TextBlock)(this.FindName("tblLastMonth"))); this.receiptMonthChart = ((AmCharts.Windows.QuickCharts.SerialChart)(this.FindName("receiptMonthChart"))); this.tblLastYear = ((System.Windows.Controls.TextBlock)(this.FindName("tblLastYear"))); this.receiptYearChart = ((AmCharts.Windows.QuickCharts.SerialChart)(this.FindName("receiptYearChart"))); this.lbExpensesSum = ((System.Windows.Controls.TextBlock)(this.FindName("lbExpensesSum"))); this.tbExplensesSum = ((System.Windows.Controls.TextBlock)(this.FindName("tbExplensesSum"))); this.lbExpensesAvg = ((System.Windows.Controls.TextBlock)(this.FindName("lbExpensesAvg"))); this.tbExpensesAvg = ((System.Windows.Controls.TextBlock)(this.FindName("tbExpensesAvg"))); this.receiptShopsCategoryChart = ((AmCharts.Windows.QuickCharts.PieChart)(this.FindName("receiptShopsCategoryChart"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/gRouteTrack;component/MainPage.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.animateMyCircle = ((System.Windows.Media.Animation.Storyboard)(this.FindName("animateMyCircle"))); this.MainPivot = ((Microsoft.Phone.Controls.Pivot)(this.FindName("MainPivot"))); this.SettingsPivotItem = ((Microsoft.Phone.Controls.PivotItem)(this.FindName("SettingsPivotItem"))); this.SliderDistanceMeters = ((System.Windows.Controls.Slider)(this.FindName("SliderDistanceMeters"))); this.UserNameTextBox = ((System.Windows.Controls.TextBox)(this.FindName("UserNameTextBox"))); this.PasswordBox = ((System.Windows.Controls.PasswordBox)(this.FindName("PasswordBox"))); this.SaveButton = ((System.Windows.Controls.Button)(this.FindName("SaveButton"))); this.TestImage = ((System.Windows.Controls.Image)(this.FindName("TestImage"))); this.myCircleStart = ((WPStartStopControl.MainControl)(this.FindName("myCircleStart"))); this.speedChart = ((AmCharts.Windows.QuickCharts.SerialChart)(this.FindName("speedChart"))); this.altitudeChart = ((AmCharts.Windows.QuickCharts.SerialChart)(this.FindName("altitudeChart"))); this.pointsListBox = ((System.Windows.Controls.ListBox)(this.FindName("pointsListBox"))); this.RoutesListBox = ((System.Windows.Controls.ListBox)(this.FindName("RoutesListBox"))); this.GpsBar = ((Microsoft.Phone.Shell.ApplicationBar)(this.FindName("GpsBar"))); }
private static void AttachDataSourceCollectionChangedListener(SerialChart chart, object dataSource) { if (dataSource is INotifyCollectionChanged) { (dataSource as INotifyCollectionChanged).CollectionChanged += chart.OnDataSourceCollectionChanged; } }