//- $AddTab -// private void AddTab(Instance instance, TabControl tcMain) { InstanceTab tab = new InstanceTab(instance); //+ tab.Style = (Style)FindResource("tabStyle"); tcMain.Items.Add(tab); }
//- @SubmitRequest -// public void SubmitRequest(String instanceId, Request request, Response Response) { for (int i = 0; i < this.Items.Count; i++) { InstanceTab tab = this.Items[i] as InstanceTab; if (tab != null && tab.Instance.Id == instanceId) { tab.SubmitRequest(request, Response); } } }
//- ~CloseTab -// internal void CloseTab(InstanceTab instanceTab) { this.Items.Remove(instanceTab); }