예제 #1
0
        //- $AddTab -//
        private void AddTab(Instance instance, TabControl tcMain)
        {
            InstanceTab tab = new InstanceTab(instance);

            //+
            tab.Style = (Style)FindResource("tabStyle");
            tcMain.Items.Add(tab);
        }
예제 #2
0
 //- @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);
         }
     }
 }
예제 #3
0
 //- ~CloseTab -//
 internal void CloseTab(InstanceTab instanceTab)
 {
     this.Items.Remove(instanceTab);
 }