Пример #1
0
 public static void EnableTransmit(bool enable)
 {
     View.WindowHome      windowHome    = (View.WindowHome)Current.MainWindow;
     ViewModel.HomeVModel homeViewModel = (ViewModel.HomeVModel)windowHome.DataContext;
     homeViewModel.IsTransmitEnabled = enable;
 }
Пример #2
0
 public static void UpdateProgress(int progress)
 {
     View.WindowHome      windowHome    = (View.WindowHome)Current.MainWindow;
     ViewModel.HomeVModel homeViewModel = (ViewModel.HomeVModel)windowHome.DataContext;
     homeViewModel.UpdateProgress(progress);
 }
Пример #3
0
 public static void AddServerByScanQRCode()
 {
     View.WindowHome      windowHome    = (View.WindowHome)Current.MainWindow;
     ViewModel.HomeVModel homeViewModel = (ViewModel.HomeVModel)windowHome.DataContext;
     homeViewModel.AddServerByScanQRCode();
 }
Пример #4
0
 public static void ShowNotify(string message)
 {
     View.WindowHome windowHome = (View.WindowHome)Current.MainWindow;
     windowHome.SendSnakebarMessage(message);
 }
Пример #5
0
 public static void UpdateTransmitServer(Model.Server.ServerProfile serverProfile)
 {
     View.WindowHome      windowHome    = (View.WindowHome)Current.MainWindow;
     ViewModel.HomeVModel homeViewModel = (ViewModel.HomeVModel)windowHome.DataContext;
     homeViewModel.UpdateTransmitServer(serverProfile);
 }