Exemple #1
0
 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();
 }
Exemple #4
0
 public MainViewModel()
 {
     Od         = new PanelTCViewModel();
     Do         = new PanelTCViewModel();
     Kopiowanie = new RelayCommand(arg => Kopiuj(), arg => Sprawdzenie());
 }
Exemple #5
0
 public MainViewModel()
 {
     To   = new PanelTCViewModel();
     From = new PanelTCViewModel();
     new Watcher(UpdateDrives, UpdateDrives);
 }
 private void RightGotFocus()
 => currentPanel = right;
 private void LeftGotFocus()
 => currentPanel = left;