當前位置: 首頁>>代碼示例>>C#>>正文


C# Settings.SirenOfShameSettings類代碼示例

本文整理匯總了C#中SirenOfShame.Lib.Settings.SirenOfShameSettings的典型用法代碼示例。如果您正苦於以下問題:C# SirenOfShameSettings類的具體用法?C# SirenOfShameSettings怎麽用?C# SirenOfShameSettings使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


SirenOfShameSettings類屬於SirenOfShame.Lib.Settings命名空間,在下文中一共展示了SirenOfShameSettings類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: RefreshDisplayNames

 public void RefreshDisplayNames(SirenOfShameSettings settings)
 {
     foreach (var buildStatusDto in BuildStatusDtos)
     {
         buildStatusDto.SetDisplayName(settings);
     }
 }
開發者ID:dirkrombauts,項目名稱:SirenOfShame,代碼行數:7,代碼來源:RefreshStatusEventArgs.cs

示例2: ConfigureSounds

        public ConfigureSounds(SirenOfShameSettings settings)
        {
            _settings = settings;
            InitializeComponent();

            RefreshSoundList();
        }
開發者ID:dirkrombauts,項目名稱:SirenOfShame,代碼行數:7,代碼來源:ConfigureSounds.cs

示例3: GetMostRecentNewsItems

        public void GetMostRecentNewsItems(SirenOfShameSettings settings, Action<IList<NewNewsItemEventArgs>> onGetNewsItems)
        {
            var location = GetEventsLocation();
            if (!FileAdapter.Exists(location)) onGetNewsItems(new List<NewNewsItemEventArgs>());

            var context = TaskScheduler.FromCurrentSynchronizationContext();

            var newsItemGetter = new Task<List<NewNewsItemEventArgs>>(() => FileAdapter.ReadAllLines(location)
                                                                                .Select(i => NewNewsItemEventArgs.FromCommaSeparated(i, settings))
                                                                                .Where(i => i != null)
                                                                                .Reverse()
                                                                                .ToList());
            newsItemGetter.ContinueWith(result => onGetNewsItems(result.Result), new CancellationToken(), TaskContinuationOptions.OnlyOnRanToCompletion, context);
            newsItemGetter.ContinueWith(t =>
            {
                if (t.Exception != null)
                {
                    var exception = t.Exception.InnerExceptions.First();
                    if (!(exception is FileNotFoundException))
                        _log.Error(exception);
                }
                onGetNewsItems(new List<NewNewsItemEventArgs>());
            }, new CancellationToken(), TaskContinuationOptions.OnlyOnFaulted, context);
            newsItemGetter.Start();
        }
開發者ID:jonca,項目名稱:SirenOfShame,代碼行數:25,代碼來源:SosDb.cs

示例4: ConfigureSosOnline

 public ConfigureSosOnline(SirenOfShameSettings settings)
 {
     _settings = settings;
     InitializeComponent();
     _alwaysOffline.Checked = _settings.SosOnlineAlwaysOffline;
     LoadChildControl();
 }
開發者ID:dirkrombauts,項目名稱:SirenOfShame,代碼行數:7,代碼來源:ConfigureSosOnline.cs

示例5: AddRule

        public AddRule(SirenOfShameSettings settings)
        {
            IocContainer.Instance.Compose(this);
            _settings = settings;
            InitializeComponent();

            EnableAudioSettings(enable: false);
            EnableLightSettings(enable: false);

            _when.DataSource = Rule.TriggerTypes.Select(i => new KeyValuePair<TriggerType, string>(i.Key, i.Value )).ToList();
            _when.DisplayMember = "Value";

            var buildDefinitions = _settings.CiEntryPointSettings
                .SelectMany(i => i.BuildDefinitionSettings)
                .Where(bd => bd.Active)
                .ToList();
            buildDefinitions.Insert(0, _anyBuild);
            _build.DataSource = buildDefinitions;
            _build.DisplayMember = "Name";

            _audio.DataSource = SirenOfShameDevice.AudioPatterns.ToList();
            _audio.DisplayMember = "Name";

            _windowsAudio.DataSource = new[] { new AudioFile { DisplayName = "None"}}
                .Concat(ResourceManager.InternalAudioFiles)
                .ToList();
            _windowsAudio.DisplayMember = "DisplayName";

            _lights.DataSource = SirenOfShameDevice.LedPatterns.ToList();
            _lights.DisplayMember = "Name";

            _who.DataSource = _settings.AllUsersMinusMappedOnes();
        }
開發者ID:ramalama,項目名稱:SirenOfShame,代碼行數:33,代碼來源:AddRule.cs

示例6: RulesEngine

 public RulesEngine(SirenOfShameSettings settings)
 {
     ResetPreviousWorkingOrBrokenStatuses();
     _settings = settings;
     _timer.Interval = 1000;
     _timer.Tick += TimerTick;
 }
開發者ID:jonca,項目名稱:SirenOfShame,代碼行數:7,代碼來源:RulesEngine.cs

示例7: ConfigureServer

        public ConfigureServer(SirenOfShameSettings settings, CiEntryPointSetting ciEntryPointSetting)
        {
            _adding = ciEntryPointSetting == null;
            if (_adding)
            {
                ciEntryPointSetting = new CiEntryPointSetting();
            }

            Settings = settings;
            _ciEntryPointSetting = ciEntryPointSetting;

            IocContainer.Instance.Compose(this);

            InitializeComponent();

            _ciServerPanel.Visible = _adding;
            ICiEntryPoint[] ciEntryPoints = CIEntryPoints.ToArray();
            if (_adding)
            {
                _serverType.DataSource = ciEntryPoints;
            }
            else
            {
                SetServerType(ciEntryPointSetting.GetCiEntryPoint(settings));
            }

            _add.Text = _adding ? "Add" : "Update";
            _cancel.Visible = _adding;
        }
開發者ID:dirkrombauts,項目名稱:SirenOfShame,代碼行數:29,代碼來源:ConfigureServer.cs

示例8: ConfigureMock

 public ConfigureMock(SirenOfShameSettings settings, MockCiEntryPoint mockCiEntryPoint, CiEntryPointSetting ciEntryPointSetting)
     : base(settings)
 {
     InitializeComponent();
     _mockCiEntryPoint = mockCiEntryPoint;
     _ciEntryPointSetting = ciEntryPointSetting;
 }
開發者ID:dirkrombauts,項目名稱:SirenOfShame,代碼行數:7,代碼來源:ConfigureMock.cs

示例9: ConfigureServerBase

        public ConfigureServerBase(SirenOfShameSettings settings)
        {
            // http://www.codeproject.com/Tips/61966/Control-Resizing-on-a-UserControl-in-WinForms.aspx?msg=3389586
            Dock = DockStyle.Fill;

            Settings = settings;
        }
開發者ID:dirkrombauts,項目名稱:SirenOfShame,代碼行數:7,代碼來源:ConfigureServerBase.cs

示例10: ConfigureServers

 public ConfigureServers(SirenOfShameSettings settings)
 {
     _settings = settings;
     InitializeComponent();
     _servers.DataSource = settings.CiEntryPointSettings;
     _servers.DisplayMember = "Url";
 }
開發者ID:dirkrombauts,項目名稱:SirenOfShame,代碼行數:7,代碼來源:ConfigureServers.cs

示例11: ConfigureTravisCi

 public ConfigureTravisCi(SirenOfShameSettings sosSettings, TravisCiEntryPoint travisCiEntryPoint, CiEntryPointSetting ciEntryPointSetting)
     : base(sosSettings)
 {
     _travisCiEntryPoint = travisCiEntryPoint;
     _ciEntryPointSetting = ciEntryPointSetting;
     InitializeComponent();
     LoadProjectList();
 }
開發者ID:BubbaFatAss,項目名稱:SirenOfShame,代碼行數:8,代碼來源:ConfigureTravisCi.cs

示例12: Write

 public void Write(BuildStatus buildStatus, SirenOfShameSettings settings, bool disableWritingToSosDb)
 {
     if (!disableWritingToSosDb)
     {
         AppendToFile(buildStatus);
     }
     UpdateStatsInSettings(buildStatus, settings);
 }
開發者ID:dirkrombauts,項目名稱:SirenOfShame,代碼行數:8,代碼來源:SosDb.cs

示例13: ViewBuildSmall

 public ViewBuildSmall(BuildStatusDto buildStatusDto, SirenOfShameSettings settings)
     : base(settings)
 {
     InitializeComponent();
     InitializeLabels(buildStatusDto);
     FontChanged += OnFontChanged;
     StoreInitialFontSizes();
 }
開發者ID:dirkrombauts,項目名稱:SirenOfShame,代碼行數:8,代碼來源:ViewBuildSmall.cs

示例14: AddMapping

        public AddMapping(SirenOfShameSettings settings, string whenISeeDefaultRawName = null)
        {
            _settings = settings;
            InitializeComponent();

            AddPeopleToDropdowns();
            RemovePeopleThatHaveAlreadyBeenMappedFromDropdowns();
            SetWhenISeeDropdownToDefault(whenISeeDefaultRawName);
        }
開發者ID:dirkrombauts,項目名稱:SirenOfShame,代碼行數:9,代碼來源:AddMapping.cs

示例15: RulesEngine

 public RulesEngine(SirenOfShameSettings settings)
 {
     DisableSosOnline = false;
     DisableWritingToSosDb = false;
     ResetPreviousWorkingOrBrokenStatuses();
     _settings = settings;
     _timer.Interval = 1000;
     _timer.Tick += TimerTick;
 }
開發者ID:AutomatedArchitecture,項目名稱:SirenOfShame,代碼行數:9,代碼來源:RulesEngine.cs


注:本文中的SirenOfShame.Lib.Settings.SirenOfShameSettings類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。