RPS.Screensaver.MonitorsAndConfigReady C# (CSharp) Метод

MonitorsAndConfigReady() приватный Метод

private MonitorsAndConfigReady ( ) : void
Результат void
        private void MonitorsAndConfigReady() {
            if (this.action != Actions.Preview) {
                for (int i = 0; i < this.monitors.Length; i++) {
                    if (this.config.hasPersistantKey("historyM" + Convert.ToString(i)) && this.config.hasPersistantKey("historyOffsetM" + Convert.ToString(i))) {
                        try {
                            this.monitors[i].setHistory(JsonConvert.DeserializeObject<List<long>>((string)this.config.getPersistant("historyM" + Convert.ToString(i))), Convert.ToInt32((string)this.config.getPersistant("historyOffsetM" + Convert.ToString(i))));
                        } catch (Newtonsoft.Json.JsonSerializationException e) {
                            // Ignore old format
                        }
                    }
                }
            }
        }