public DomainTypeResolver( Lazy <IDomainModel> lazyDom, ISystemState state) { Contract.Requires(lazyDom != null); Contract.Requires(state != null); this.LazyDom = lazyDom; this.State = state; }
public DomainTypeResolver( Lazy<IDomainModel> lazyDom, ISystemState state) { Contract.Requires(lazyDom != null); Contract.Requires(state != null); this.LazyDom = lazyDom; this.State = state; }
public MainWindowViewModel( ISettings settings, ISystemState systemState, IImageViewerService imageViewerService, IWindowInteropService windowInteropService, ISystemTrayIconService systemTrayIconService, IEnumerable <ICommandBinding> commandBindings) { Settings = settings; SystemState = systemState; ImageViewerService = imageViewerService; WindowInteropService = windowInteropService; SystemTrayIconService = systemTrayIconService; CommandBindings = commandBindings; }
public PostgresDatabaseNotification( ConnectionInfo connectionInfo, Lazy <IDomainModel> domainModel, ISystemState systemState, IServiceProvider locator) { this.DomainModel = domainModel; this.Locator = locator; this.SystemState = systemState; Notifications = Subject.AsObservable(); if (ConfigurationManager.AppSettings["Revenj.Notifications"] != "disabled") { SetUpConnection(connectionInfo.ConnectionString + ";SyncNotification=true"); } AppDomain.CurrentDomain.ProcessExit += (s, ea) => IsDisposed = true; AppDomain.CurrentDomain.DomainUnload += (s, ea) => IsDisposed = true; }
public UpdateViewModel( IDialogs dialogs, IOsProcesses osProcesses, IModals modals, IAppSettings appSettings, IVpnServiceManager vpnServiceManager, ISystemState systemState, ISettingsServiceClientManager settingsServiceClientManager) { _dialogs = dialogs; _osProcesses = osProcesses; _modals = modals; _appSettings = appSettings; _vpnServiceManager = vpnServiceManager; _systemState = systemState; _settingsServiceClientManager = settingsServiceClientManager; OpenAboutCommand = new RelayCommand(OpenAbout); }
protected bool SetConfig() { CMonitorSystemContext context = mSystemContext as CMonitorSystemContext; if (context != null) { context.Name = textBox_name.Text; context.Desc = textBox_desc.Text; context.Type = comboBox_type.Text; context.IP = textBox_ip.Text; context.Port = (int)numericUpDown_port.Value; context.Version = textBox_version.Text; ISystemState state = comboBox_state.SelectedItem as ISystemState; context.State = state != null ? state.State : ""; context.AutoConnectInterval = (int)numericUpDown_autoConnectInterval.Value; context.AlarmCheckInterval = (int)numericUpDown_alarmCheckInterval.Value; context.AlarmQueueLength = (int)numericUpDown_alarmQueueLength.Value; context.AlarmAutoTransactDelay = (int)numericUpDown_alarmAutoTransactDelay.Value; if (radioButton_none.Checked) { mSystemContext.LocalSystemLogin.LoginType = TLoginType.None; } else if (radioButton_manual.Checked) { mSystemContext.LocalSystemLogin.LoginType = TLoginType.Manual; } else if (radioButton_auto.Checked) { mSystemContext.LocalSystemLogin.LoginType = TLoginType.Auto; } mSystemContext.LocalSystemLogin.UserName = comboBox_username.Text; mSystemContext.LocalSystemLogin.Password = mOldPassword.Equals("") ? CommonUtil.ToMD5Str(textBox_password.Text) : mOldPassword; return(true); } return(false); }
public PostgresDatabaseNotification( ConnectionInfo connectionInfo, Lazy <IDomainModel> domainModel, ISystemState systemState, IServiceProvider locator) { Contract.Requires(connectionInfo != null); Contract.Requires(domainModel != null); Contract.Requires(locator != null); Contract.Requires(systemState != null); this.DomainModel = domainModel; this.Locator = locator; this.SystemState = systemState; Notifications = Subject.AsObservable(); #if !NETSTANDARD2_0 if (ConfigurationManager.AppSettings["Revenj.Notifications"] != "disabled") #endif SetUpConnection(connectionInfo.ConnectionString + ";SyncNotification=true"); AppDomain.CurrentDomain.ProcessExit += (s, ea) => IsDisposed = true; AppDomain.CurrentDomain.DomainUnload += (s, ea) => IsDisposed = true; }
public void PowerManagementRegistration(Window window, ISystemState systemState) { SystemState = systemState; PowerManager.RegisterMonitorStatusChange(window); HwndSource.FromHwnd(new WindowInteropHelper(window).Handle).AddHook(WndProc); }
public HomeTimelineControlViewModel(ITwitterService twitterService, ISettings settings, ISystemState systemState) : base(settings, systemState, justOverMinute) { timelineName = (string)Application.Current.FindResource("home-timeline") !; TwitterService = twitterService; AddUpdateTask(tl => GetAndUpdateStatusesAsync(tl)); AddUpdateTask(tl => DonateNagTask.Execute(tl)); AddUpdateTask(tl => TruncateStatusCollectionTask.Execute(tl)); AddUpdateTask(tl => UpdateTimeStampsTask.Execute(tl)); AddUpdateTask(t1 => UpdateNamesTask.Execute(t1)); AddUpdateTask(_ => CollectAllTask.Execute()); }
public SetSystemState(ISystemState state) { this.state = state; }
public FavoritesTimelineControlViewModel(ITwitterService twitterService, ISettings settings, ISystemState systemState) : base(settings, systemState, twentyMinutes) { timelineName = (string)Application.Current.FindResource("favorites-timeline"); TwitterService = twitterService; AddUpdateTask(tl => GetAndUpdateFavoritesAsync(tl)); AddUpdateTask(tl => TruncateStatusCollectionTask.Execute(tl)); AddUpdateTask(tl => UpdateTimeStampsTask.Execute(tl)); }
protected void SetCurrentState(ISystemState state) { currentState = state; }
public SearchControlViewModel(ISettings settings, ISystemState systemState, ITwitterService twitterService) : base(settings, systemState, InfiniteElapsed) { TwitterService = twitterService; timelineName = (string)Application.Current.FindResource("search-timeline"); }
public ReportFieldProvider(IUserStorage userStorage, Common.Configuration.Config config, ISystemState systemState) { _config = config; _userStorage = userStorage; _systemState = systemState; }
public SearchControlViewModel(ISettings settings, ISystemState systemState, ITwitterService twitterService) : base(settings, systemState, InfiniteElapsed) { TwitterService = twitterService; timelineName = App.GetString("search-timeline"); }