public void Initialize() { enabledPlugins = new List <PluginConfiguration>(); foreach (PluginConfigurationCategory category in SubCategories) { foreach (PluginConfiguration config in category.PluginConfigurations) { config.EnabledChanged += config_EnabledChanged; if (config.Enabled) { Plugins_Load(config); } } } LoadDashboardTimespan(); // Load Comparison Type var type = LoadComparisonType(); UpdateComparisonType(type); ComparisonType = type; }
private void UpdateComparisonType(DeviceComparisonTypes comparisonType) { var data = new EventData(this); data.Id = "SORT_DEVICES"; data.Data01 = comparisonType; GetSentData(data); SendData?.Invoke(data); }
private void SortRows(EventData data) { if (data != null && data.Id == "SORT_DEVICES") { var type = (DeviceComparisonTypes)data.Data01; comparisonType = type; foreach (var row in Rows) { row.ComparisonType = type; } Rows.Sort(); } }
private void SortItems(EventData data) { if (data != null && data.Id == "SORT_DEVICES") { var type = (DeviceComparisonTypes)data.Data01; comparisonType = type; foreach (var item in Items) { item.ComparisonType = type; } Items.Sort(); } }
private void SortColumns(EventData data) { if (data != null && data.Id == "SORT_DEVICES") { var type = (DeviceComparisonTypes)data.Data01; comparisonType = type; foreach (var column in Columns) { column.ComparisonType = type; } Columns.Sort(); } }
private void UpdateComparisonType(DeviceComparisonTypes comparisonType) { var data = new EventData(this); data.Id = "SORT_DEVICES"; data.Data01 = comparisonType; GetSentData(data); SendData?.Invoke(data); }
private void SaveComparisonType(DeviceComparisonTypes type) { Properties.Settings.Default.DashboardComparisonType = type.ToString(); Properties.Settings.Default.Save(); }
private void SortRows(EventData data) { if (data != null && data.Id == "SORT_DEVICES") { var type = (DeviceComparisonTypes)data.Data01; comparisonType = type; foreach (var row in Rows) row.ComparisonType = type; Rows.Sort(); } }
private void SaveComparisonType(DeviceComparisonTypes type) { Properties.Settings.Default.DashboardComparisonType = type.ToString(); Properties.Settings.Default.Save(); }
private void SortItems(EventData data) { if (data != null && data.Id == "SORT_DEVICES") { var type = (DeviceComparisonTypes)data.Data01; comparisonType = type; foreach (var item in Items) item.ComparisonType = type; Items.Sort(); } }
private void SortColumns(EventData data) { if (data != null && data.Id == "SORT_DEVICES") { var type = (DeviceComparisonTypes)data.Data01; comparisonType = type; foreach (var column in Columns) column.ComparisonType = type; Columns.Sort(); } }