public static void EnableTransmit(bool enable) { View.WindowHome windowHome = (View.WindowHome)Current.MainWindow; ViewModel.HomeVModel homeViewModel = (ViewModel.HomeVModel)windowHome.DataContext; homeViewModel.IsTransmitEnabled = enable; }
public static void AddServerByScanQRCode() { View.WindowHome windowHome = (View.WindowHome)Current.MainWindow; ViewModel.HomeVModel homeViewModel = (ViewModel.HomeVModel)windowHome.DataContext; homeViewModel.AddServerByScanQRCode(); }
public static void UpdateProgress(int progress) { View.WindowHome windowHome = (View.WindowHome)Current.MainWindow; ViewModel.HomeVModel homeViewModel = (ViewModel.HomeVModel)windowHome.DataContext; homeViewModel.UpdateProgress(progress); }
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); }