private void AssignType(DashboardItemTypeEnum type, int index) { for (int i = 0; i < ChannelSession.Settings.DashboardItems.Count; i++) { if (ChannelSession.Settings.DashboardItems[i] == type) { ChannelSession.Settings.DashboardItems[i] = DashboardItemTypeEnum.None; } } ChannelSession.Settings.DashboardItems[index] = type; this.NotifyItemPropertiesChanged(); }
private object GetItemForType(DashboardItemTypeEnum type) { switch (type) { case DashboardItemTypeEnum.Chat: return(this.ChatControl); case DashboardItemTypeEnum.Alerts: return(this.AlertsControl); case DashboardItemTypeEnum.Statistics: return(this.StatisticsControl); case DashboardItemTypeEnum.GameQueue: return(this.GameQueueControl); case DashboardItemTypeEnum.QuickCommands: return(this.QuickCommandsControl); case DashboardItemTypeEnum.RedemptionStore: return(this.RedemptionStoreControl); } return(null); }