public MainViewModel() { //System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo("en-US"); // Default is English _leftPanel = new PanelTCViewModel(); _rightPanel = new PanelTCViewModel(); _model = new CopyingModel(); Copy = new RelayCommand(CopyExecute, CopyCanExecute); LeftSelectionChange = new RelayCommand(LeftSelectionChangeExecute, arg => true); RightSelectionChange = new RelayCommand(RightSelectionChangeExecute, arg => true); }
public MainWindowViewModel() { left = new PanelTCViewModel(); right = new PanelTCViewModel(); left.PanelGotFocus += LeftGotFocus; right.PanelGotFocus += RightGotFocus; currentPanel = null; fileManager = new FileManager(); }
public MainWindowViewModel() { LeftPanel = new PanelTCViewModel(); RightPanel = new PanelTCViewModel(); }
public MainViewModel() { Od = new PanelTCViewModel(); Do = new PanelTCViewModel(); Kopiowanie = new RelayCommand(arg => Kopiuj(), arg => Sprawdzenie()); }
public MainViewModel() { To = new PanelTCViewModel(); From = new PanelTCViewModel(); new Watcher(UpdateDrives, UpdateDrives); }
private void RightGotFocus() => currentPanel = right;
private void LeftGotFocus() => currentPanel = left;