예제 #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);
 }
예제 #2
0
        public MainWindowViewModel()
        {
            left  = new PanelTCViewModel();
            right = new PanelTCViewModel();

            left.PanelGotFocus  += LeftGotFocus;
            right.PanelGotFocus += RightGotFocus;

            currentPanel = null;

            fileManager = new FileManager();
        }
예제 #3
0
 public MainWindowViewModel()
 {
     LeftPanel = new PanelTCViewModel();
     RightPanel = new PanelTCViewModel();
 }
예제 #4
0
 public MainViewModel()
 {
     Od         = new PanelTCViewModel();
     Do         = new PanelTCViewModel();
     Kopiowanie = new RelayCommand(arg => Kopiuj(), arg => Sprawdzenie());
 }
예제 #5
0
 public MainViewModel()
 {
     To   = new PanelTCViewModel();
     From = new PanelTCViewModel();
     new Watcher(UpdateDrives, UpdateDrives);
 }
예제 #6
0
 private void RightGotFocus()
 => currentPanel = right;
예제 #7
0
 private void LeftGotFocus()
 => currentPanel = left;