예제 #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 AddServerByScanQRCode()
 {
     View.WindowHome      windowHome    = (View.WindowHome)Current.MainWindow;
     ViewModel.HomeVModel homeViewModel = (ViewModel.HomeVModel)windowHome.DataContext;
     homeViewModel.AddServerByScanQRCode();
 }
예제 #3
0
 public static void UpdateProgress(int progress)
 {
     View.WindowHome      windowHome    = (View.WindowHome)Current.MainWindow;
     ViewModel.HomeVModel homeViewModel = (ViewModel.HomeVModel)windowHome.DataContext;
     homeViewModel.UpdateProgress(progress);
 }
예제 #4
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);
 }