Ejemplo n.º 1
0
        protected override SettingControlViewModel[] InitializeSettingViewModels()
        {
            StartPageVm         = new SettingStartPageViewModel();
            SrsTrayAutostartVm  = new SettingTrayAutoStartViewModel();
            SrsTrayIntervalVm   = new SettingTrayIntervalViewModel();
            SrsTrayDoNotifyVm   = new SettingTrayDoNotifyViewModel();
            SrsTrayThresholdVm  = new SettingTrayNotifyThresholdViewModel();
            DoUpdateCheckVm     = new SettingDoUpdateCheckViewModel();
            UserDirectoryVm     = new SettingUserDirectoryViewModel();
            WindowCloseActionVm = new SettingWindowCloseActionViewModel();

            return(new SettingControlViewModel[]
            {
                StartPageVm,
                SrsTrayAutostartVm,
                SrsTrayIntervalVm,
                SrsTrayDoNotifyVm,
                SrsTrayThresholdVm,
                DoUpdateCheckVm,
                UserDirectoryVm,
                WindowCloseActionVm
            });
        }
        protected override SettingControlViewModel[] InitializeSettingViewModels()
        {
            StartPageVm = new SettingStartPageViewModel();
            SrsTrayAutostartVm = new SettingTrayAutoStartViewModel();
            SrsTrayIntervalVm = new SettingTrayIntervalViewModel();
            SrsTrayDoNotifyVm = new SettingTrayDoNotifyViewModel();
            SrsTrayThresholdVm = new SettingTrayNotifyThresholdViewModel();
            DoUpdateCheckVm = new SettingDoUpdateCheckViewModel();
            UserDirectoryVm = new SettingUserDirectoryViewModel();
            WindowCloseActionVm = new SettingWindowCloseActionViewModel();

            return new SettingControlViewModel[]
            {
                StartPageVm,
                SrsTrayAutostartVm,
                SrsTrayIntervalVm,
                SrsTrayDoNotifyVm,
                SrsTrayThresholdVm,
                DoUpdateCheckVm,
                UserDirectoryVm,
                WindowCloseActionVm
            };
        }