@@ -21,7 +21,7 @@ namespace CutCode
2121 public class MainViewModel : Screen
2222 {
2323 //private List<Button> leftBarBtns;
24- public static List < Object > Pages ;
24+ public static List < System . Object > Pages ;
2525 private readonly IThemeService _themeService ;
2626 private IWindowManager windowManager ;
2727 private readonly IPageService pageService ;
@@ -33,7 +33,7 @@ public MainViewModel(IWindowManager _windowManager,IThemeService themeService, I
3333
3434 notifyManager = _notifyManager ;
3535 notifyManager . ShowNotification += showNotification ;
36- notificationList = new ObservableCollection < NotifyModel > ( ) ;
36+ notificationList = new ObservableCollection < Object > ( ) ;
3737
3838 _themeService = themeService ;
3939 _themeService . ThemeChanged += ThemeChanged ;
@@ -54,7 +54,7 @@ public MainViewModel(IWindowManager _windowManager,IThemeService themeService, I
5454 sideBarBtns [ 0 ] . background = _themeService . IsLightTheme ? ColorCon . Convert ( "#FCFCFC" ) : ColorCon . Convert ( "#36393F" ) ;
5555
5656
57- Pages = new List < Object > ( ) { new HomeViewModel ( _themeService , pageService , _dataBase ) ,
57+ Pages = new List < System . Object > ( ) { new HomeViewModel ( _themeService , pageService , _dataBase ) ,
5858 new AddViewModel ( _themeService , pageService , _dataBase ) ,
5959 new FavViewModel ( _themeService , pageService , _dataBase ) ,
6060 new ShareViewModel ( _themeService , pageService , _dataBase ) ,
@@ -76,8 +76,8 @@ private void ThemeChanged(object sender, EventArgs e)
7676 titlebarBtnsHoverColor = _themeService . IsLightTheme ? ColorCon . Convert ( "#D0D1D2" ) : ColorCon . Convert ( "#373737" ) ;
7777 }
7878
79- private Object _currentPage ;
80- public Object currentPage
79+ private System . Object _currentPage ;
80+ public System . Object currentPage
8181 {
8282 get => _currentPage ;
8383 set { SetAndNotify ( ref _currentPage , value ) ; }
@@ -102,15 +102,7 @@ public void ChangePageCommand(string selected_item)
102102
103103 sideBarBtns [ ind ] . background = _themeService . IsLightTheme ? ColorCon . Convert ( "#FCFCFC" ) : ColorCon . Convert ( "#36393F" ) ;
104104 if ( currentPage != Pages [ ind ] ) pageService . Page = Pages [ ind ] ;
105-
106-
107- if ( selected_item == "Share" )
108- {
109- notifyManager . CreateNotification ( $ "{ k } : This is just for test", 5 ) ;
110- k ++ ;
111- }
112105 }
113- private int k = 1 ;
114106 #region Color
115107 private SolidColorBrush _backgroundColor ;
116108 public SolidColorBrush backgroundColor
@@ -203,20 +195,20 @@ public string minImage
203195 }
204196
205197 #region NotificationDialogView
206- private ObservableCollection < NotifyModel > _notificationList ;
207- public ObservableCollection < NotifyModel > notificationList
198+ private ObservableCollection < Object > _notificationList ;
199+ public ObservableCollection < Object > notificationList
208200 {
209201 get => _notificationList ;
210202 set => SetAndNotify ( ref _notificationList , value ) ;
211203 }
212204
213- private List < NotifyModel > WaitingNotifications = new List < NotifyModel > ( ) ;
205+ private List < Object > WaitingNotifications = new List < Object > ( ) ;
214206 private void showNotification ( object sender , EventArgs e )
215207 {
216- var notification = sender as NotifyModel ;
208+ var notification = sender as Object ;
217209
218210 var notifcationViewModel = new NotificationDialogViewModel ( _themeService , notification . Message ) ;
219- notification . View = ( Object ) notifcationViewModel ;
211+ notification . View = ( System . Object ) notifcationViewModel ;
220212
221213 if ( notificationList . Count > 2 )
222214 {
0 commit comments