Example #1
0
 public LayoutPlanModel()
 {
     PropertyChanged += onPropertyChanged;
     StaySeconds      = 20;
     LayoutSource     = new SplitScreenModel();
     LayoutSource.SplitScreenData = SplitScreenLayoutsModel.Get一大多小(3).SplitScreenInfom;
     DeleteCommand = new DelegateCommand(_ => ToDelete());
 }
Example #2
0
        public LayoutViewModel()
        {
            SplitLayoutsModel = new SplitScreenLayoutsModel();
            SearcherModel     = new SearchedResultViewModel();
            SplitScreenModel  = new SplitScreenModel();
            SplitLayoutsModel.PropertyChanged += SplitLayoutsModel_PropertyChanged;

            ImportCommand = new DelegateCommand(_ => importLayout());
            ExportCommand = new DelegateCommand(_ => exportLayout());
            ClearCommand  = new DelegateCommand(_ => clearLayout());
            ReturnCommand = new DelegateCommand(_ => returnLayout());
            ShortcutCmd   = new DelegateCommand(x => doShortcut());

            AutoSave.LayoutScheme.Instance.LayoutDataChanged += onLayoutDataChanged;
            PropertyChanged        += onPropertyChanged;
            SearcherModel.IsVisible = true;
        }