예제 #1
0
 public LoginViewModel(IMessageBox messageBox)
 {
     //_dbService = dbService;
     MessageBox     = messageBox;
     LoginCommand   = new ProxyRelayCommand(ExecuteLoginCommand, GetViewContainer, null);
     ExitSysCommand = new RelayCommand(ExeucteExitSysCommand);
 }
예제 #2
0
 public DeviceMainViewModel()
 {
     base.MessageAggregation.RegisterGeneralMsg <bool>(this, GeneralKeys.ExtractTaskCompleteMsg, TaskCompleteCallback);
     ExtractionResultCommand = new ProxyRelayCommand(ExeucteExtractionResultCommand);
     FileViewCommand         = new ProxyRelayCommand(ExecuteFileViewCommand);
     EarlyWarningCommand     = new ProxyRelayCommand(EarlyWarningViewCommand);
     DeviceHomePageCommand   = new ProxyRelayCommand(ExecuteDeviceHomePageCommand);
 }
예제 #3
0
        public MainViewModel(IDatabaseContext dbService, IMessageBox messageBox)
        {
            _dbService  = dbService;
            _messageBox = messageBox;

            MainNavigation = new MainNavigationManager();

            //事件注册
            ShutdownProgramCommand = new ProxyRelayCommand(ExecuteShutdownProgramCommand);
            CloseCaseCommand       = new ProxyRelayCommand(ExecuteCloseCaseCommand);
        }
예제 #4
0
 public LoginViewModel(IMessageBox messageBox)
 {
     //_dbService = dbService;
     MessageBox     = messageBox;
     LoginCommand   = new ProxyRelayCommand(ExecuteLoginCommand, GetViewContainer, null);
     ExitSysCommand = new RelayCommand(ExeucteExitSysCommand);
     CurLoginUser   = new UserInfoEntityModel()
     {
         LoginUserName = "******", LoginPassword = "******"
     };
 }
예제 #5
0
        public DeviceHomePageViewModel()
        {
            StrategyRecommendItems = new ObservableCollection <StrategyElement>();
            ToolkitItems           = new ObservableCollection <string>();

            PhoneTakePhotoCommand    = new ProxyRelayCommand(ExecutePhoneTakePhotoCommand);
            StrategyRecommendCommand = new ProxyRelayCommand <StrategyElement>(ExecuteStrategyRecommendCommand);
            SaveEditCommand          = new ProxyRelayCommand <DevHomePageEditItemModel>(ExecuteSaveEditCommand);
            CancelEditCommand        = new RelayCommand(ExecuteCancelEditCommand);
            AutoExtractCommand       = new RelayCommand(ExecuteAutoExtractCommand);

            CurLoginUserName = SystemContext.Instance.CurUserInfo.UserName;
            CurLoginUserID   = SystemContext.Instance.CurUserInfo.IdNumber;



            StrategyRecommendItems.Add(new StrategyElement()
            {
                SolutionStrategyName = "物理镜像"
            });
            StrategyRecommendItems.Add(new StrategyElement()
            {
                SolutionStrategyName = "备份提取"
            });
            StrategyRecommendItems.Add(new StrategyElement()
            {
                SolutionStrategyName = "APP植入"
            });
            StrategyRecommendItems.Add(new StrategyElement()
            {
                SolutionStrategyName = "降级提取"
            });
            StrategyRecommendItems.Add(new StrategyElement()
            {
                SolutionStrategyName = "截屏取证"
            });

            ToolkitItems.Add("地理轨迹分析");
            ToolkitItems.Add("图片轨迹分析");
            ToolkitItems.Add("Android九宫格破解");
            ToolkitItems.Add("黑莓大容量模式");
            ToolkitItems.Add("测试立刻集散地法");
            ToolkitItems.Add("佛挡杀佛");
            ToolkitItems.Add("阿萨德放到");
        }
예제 #6
0
        public HomePageViewModel(IRecordContext <RecentCase> dbService, IPopupWindowService service)
        {
            MainFunDepict = Path.Combine(Environment.CurrentDirectory, "CacheData\\FunctionDepict\\首页-样图_03.png");
            Sub1FunDepict = Path.Combine(Environment.CurrentDirectory, "CacheData\\FunctionDepict\\首页-样图_05.png");
            Sub2FunDepict = Path.Combine(Environment.CurrentDirectory, "CacheData\\FunctionDepict\\首页-样图_08.png");
            Sub3FunDepict = Path.Combine(Environment.CurrentDirectory, "CacheData\\FunctionDepict\\首页-样图_10.png");

            _dbService  = dbService;
            _winService = service;

            CreateCaseCommand    = new ProxyRelayCommand(ExecuteCreateCaseCommand);
            OpenAllCaseCommand   = new ProxyRelayCommand(ExecuteOpenAllCaseCommand);
            OpenLocalCaseCommand = new ProxyRelayCommand(ExecuteOpenLocalCaseCommand);
            OpenCaseCommand      = new ProxyRelayCommand <RecentCaseEntityModel>(ExecuteOpenCaseCommand);

            RecentCaseItems = new ObservableCollection <RecentCaseEntityModel>();

            LoadRecentCreationCaseItems();
        }
예제 #7
0
        public MainViewModel(ILogicalDataContext dbService, IMessageBox messageBox)
        {
            _dbService  = dbService;
            _messageBox = messageBox;

            MainNavigation = new MainNavigationManager();
            SystemContext.Instance.CaseChanged += Instance_CaseChanged;

            //事件注册
            OpenCaseEditCommand     = new RelayCommand(ExecuteOpenCaseEditCommand);
            MainViewLoadedCommand   = new RelayCommand(ExecuteMainViewLoadedCommand);
            ShutdownProgramCommand  = new ProxyRelayCommand(ExecuteShutdownProgramCommand);
            CloseCaseCommand        = new ProxyRelayCommand(ExecuteCloseCaseCommand);
            ExportCommand           = new ProxyRelayCommand(ExecuteExportCommand);
            UserManagementCommand   = new ProxyRelayCommand(ExecuteUserManagementCommand);
            CaseManagementCommand   = new ProxyRelayCommand(ExecuteCaseManagementCommand);
            SysSettingCommand       = new ProxyRelayCommand(ExecuteSysSettingCommand);
            PluginManagementCommand = new ProxyRelayCommand(ExecutePluginManagementCommand);
        }
예제 #8
0
 public HomePageViewModel()
 {
     CreateCaseCommand    = new ProxyRelayCommand(ExecuteCreateCaseCommand);
     OpenAllCaseCommand   = new ProxyRelayCommand(ExecuteOpenAllCaseCommand);
     OpenLocalCaseCommand = new ProxyRelayCommand(ExecuteOpenLocalCaseCommand);
 }
예제 #9
0
 protected override void InitViewModel()
 {
     CloseMeCommand = new ProxyRelayCommand(ExecuteCloseMeCommand, base.GetViewContainer, null);
 }