void InitAppTypes(IStatusService s) { checkedListBox1.Items.Clear(); checkedListBox2.Items.Clear(); var apps = s.GetSubscribeApps(); foreach (var app in apps) { checkedListBox1.Items.Add(app); } var types = s.GetSubscribeTypes(); foreach (var type in types) { checkedListBox2.Items.Add(type); } }