public GreenCampus(int defaultTabItem, MainWindow p)
        {
            InitializeComponent();
            controlmenu = p;
            switch (defaultTabItem){
                case 1:
                    tabI_resource.IsSelected = true;

                    break;
                case 2:
                    tabI_environment.IsSelected = true;
                    break;
            }
        }
 public ComprehensiveReputation(int defaultTabItem,MainWindow p)
 {
     InitializeComponent();
     controlmenu = p;
     switch (defaultTabItem)
     {
         case 1:
             tabI_academic.IsSelected = true;
             break;
         case 2:
             tabI_donate.IsSelected = true;
             break;
         case 3:
             tabI_reputation.IsSelected = true;
             break;
         case 4:
             tabI_schoolfellow.IsSelected = true;
             break;
     }
 }