Пример #1
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/311NYC;component/StatisticsPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.PieCharts = ((System.Windows.Controls.Grid)(this.FindName("PieCharts")));
     this.pie1 = ((AmCharts.Windows.QuickCharts.PieChart)(this.FindName("pie1")));
     this.textBlock1 = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock1")));
 }
Пример #2
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/DatePickerTest;component/DiaryView/PieChart.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.ContentGrid = ((System.Windows.Controls.Grid)(this.FindName("ContentGrid")));
     this.pieChart = ((AmCharts.Windows.QuickCharts.PieChart)(this.FindName("pieChart")));
 }
Пример #3
0
 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")));
 }
Пример #4
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/AppSeafileClient;component/Pages/ListLibraryPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.listBoxAllLibraries = ((System.Windows.Controls.ListBox)(this.FindName("listBoxAllLibraries")));
     this.AccountInfosUsage = ((System.Windows.Controls.TextBlock)(this.FindName("AccountInfosUsage")));
     this.AccountInfosQuotaStatus = ((System.Windows.Controls.TextBlock)(this.FindName("AccountInfosQuotaStatus")));
     this.AccountInfosPieChart = ((AmCharts.Windows.QuickCharts.PieChart)(this.FindName("AccountInfosPieChart")));
     this.myPivoteItemHelp = ((AppSeafileClient.Class.PivotHelpControl)(this.FindName("myPivoteItemHelp")));
 }
Пример #5
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/DatePickerTest;component/DiaryView/Pie%20Charts.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.ApplicationTitle = ((System.Windows.Controls.TextBlock)(this.FindName("ApplicationTitle")));
     this.PageTitle = ((System.Windows.Controls.TextBlock)(this.FindName("PageTitle")));
     this.pie1 = ((AmCharts.Windows.QuickCharts.PieChart)(this.FindName("pie1")));
     this.line = ((Microsoft.Phone.Shell.ApplicationBarIconButton)(this.FindName("line")));
 }
Пример #6
0
 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")));
 }
 private static void DetachOldDataSourceCollectionChangedListener(PieChart chart, object dataSource)
 {
     if (dataSource != null && dataSource is INotifyCollectionChanged)
     {
         (dataSource as INotifyCollectionChanged).CollectionChanged -= chart.OnDataSourceCollectionChanged;
     }
 }
 private static void AttachDataSourceCollectionChangedListener(PieChart chart, object dataSource)
 {
     if (dataSource != null && dataSource is INotifyCollectionChanged)
     {
         (dataSource as INotifyCollectionChanged).CollectionChanged += new NotifyCollectionChangedEventHandler(chart.OnDataSourceCollectionChanged);
     }
 }
Пример #9
0
 private static void AttachDataSourceCollectionChangedListener(PieChart chart, object dataSource)
 {
     if (dataSource is INotifyCollectionChanged)
     {
         (dataSource as INotifyCollectionChanged).CollectionChanged += chart.OnDataSourceCollectionChanged;
     }
 }