@@ -23,9 +23,12 @@ public Dashboard()
2323
2424 public event PropertyChangedEventHandler PropertyChanged ;
2525
26- private void NotifyPropertyChanged ( [ CallerMemberName ] string propertyName = "" )
26+ private void NotifyPropertyChanged ( [ CallerMemberName ] String propertyName = "" )
2727 {
28- PropertyChanged ? . Invoke ( this , new PropertyChangedEventArgs ( propertyName ) ) ;
28+ if ( PropertyChanged != null )
29+ {
30+ PropertyChanged ( this , new PropertyChangedEventArgs ( propertyName ) ) ;
31+ }
2932 }
3033
3134 private string labelNextPayout ;
@@ -40,19 +43,19 @@ private void NotifyPropertyChanged([CallerMemberName] string propertyName = "")
4043
4144 public static string WalletAddress { get { return User . Settings . User . Payment_Wallet ; } set { } }
4245
43- private bool firstTimeLoad ;
46+ private bool firstTimeLoad = false ;
4447
4548 private Saldo saldo ;
4649
47- private PlotModel chart_model_value ;
48- private OxyPlot . Series . ColumnSeries columnChartSerie_value ;
49- private PlotController chart_controller_value ;
50- private Visibility chart_visibility_value = Visibility . Hidden ;
50+ private PlotModel chartModel ;
51+ private OxyPlot . Series . ColumnSeries columnChartSeries ;
52+ private PlotController chartControler ;
53+ private Visibility chartVisibility = Visibility . Hidden ;
5154
52- public PlotModel Chart_model { get { return chart_model_value ; } set { chart_model_value = value ; NotifyPropertyChanged ( ) ; } }
53- public OxyPlot . Series . ColumnSeries ColumnChartSerie { get { return columnChartSerie_value ; } set { columnChartSerie_value = value ; NotifyPropertyChanged ( ) ; } }
54- public PlotController Chart_controller { get { return chart_controller_value ; } set { chart_controller_value = value ; NotifyPropertyChanged ( ) ; } }
55- public Visibility Chart_visibility { get { return chart_visibility_value ; } set { chart_visibility_value = value ; NotifyPropertyChanged ( ) ; } }
55+ public PlotModel ChartModel { get { return chartModel ; } set { chartModel = value ; NotifyPropertyChanged ( ) ; } }
56+ public OxyPlot . Series . ColumnSeries ColumnChartSeries { get { return columnChartSeries ; } set { columnChartSeries = value ; NotifyPropertyChanged ( ) ; } }
57+ public PlotController ChartControler { get { return chartControler ; } set { chartControler = value ; NotifyPropertyChanged ( ) ; } }
58+ public Visibility ChartVisibility { get { return chartVisibility ; } set { chartVisibility = value ; NotifyPropertyChanged ( ) ; } }
5659
5760 private void UserControl_Loaded ( object sender , RoutedEventArgs e )
5861 {
@@ -109,19 +112,19 @@ public void ChangeChartZoom(object sender, RoutedEventArgs e)
109112 {
110113 case "12h" :
111114 {
112- Chart_zoom_interval = new TimeSpan ( 0 , 12 , 0 , 0 ) ;
115+ chart_zoom_interval = new TimeSpan ( 0 , 12 , 0 , 0 ) ;
113116 }
114117 break ;
115118
116119 case "1d" :
117120 {
118- Chart_zoom_interval = new TimeSpan ( 1 , 0 , 0 , 0 ) ;
121+ chart_zoom_interval = new TimeSpan ( 1 , 0 , 0 , 0 ) ;
119122 }
120123 break ;
121124
122125 case "5d" :
123126 {
124- Chart_zoom_interval = new TimeSpan ( 5 , 0 , 0 , 0 ) ;
127+ chart_zoom_interval = new TimeSpan ( 5 , 0 , 0 , 0 ) ;
125128 }
126129 break ;
127130
@@ -132,17 +135,17 @@ public void ChangeChartZoom(object sender, RoutedEventArgs e)
132135 break ;
133136 }
134137
135- ViewModel . DashboardChart . UpdateAxes ( PoolAPI . XMR_nanopool . hashrateHistory_user , ( int ) Pages . Dashboard . Chart_zoom_interval . TotalSeconds ) ;
138+ ViewModel . DashboardChart . UpdateAxes ( PoolAPI . XMR_nanopool . hashrateHistory_user , ( int ) Pages . Dashboard . chart_zoom_interval . TotalSeconds ) ;
136139 }
137140
138- public TimeSpan Chart_zoom_interval { get ; set ; } = new TimeSpan ( 0 , 24 , 0 , 0 ) ;
141+ public TimeSpan chart_zoom_interval { get ; set ; } = new TimeSpan ( 0 , 24 , 0 , 0 ) ;
139142
140143 private void PackIcon_MouseDoubleClick ( object sender , System . Windows . Input . MouseButtonEventArgs e )
141144 {
142145 saldo . UpdateBalances ( ) ;
143146 }
144147
145- private void Show_warnings ( object sender , RoutedEventArgs e )
148+ private void ShowWarnings ( object sender , RoutedEventArgs e )
146149 {
147150 foreach ( string warning in DashboardWarnings )
148151 {
0 commit comments