当前位置: 首页>>代码示例>>C#>>正文


C# Tab类代码示例

本文整理汇总了C#中Tab的典型用法代码示例。如果您正苦于以下问题:C# Tab类的具体用法?C# Tab怎么用?C# Tab使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Tab类属于命名空间,在下文中一共展示了Tab类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: actViewDetail

        public void actViewDetail(contact customer)
        {
            Tab tab = new Tab(customer.lastname, new View.Customer.ShowCustomerUCView(customer), null);

            parentVM.customerTabs.Add(tab);
            parentVM.selectedTab = tab;
        }
开发者ID:rtherisod,项目名称:EducomManager,代码行数:7,代码来源:ListCustomerViewModel.cs.REMOTE.2420.cs

示例2: InstrumentConfigControl

        public InstrumentConfigControl(Tab tab)
        {
            if (DesignerProperties.IsInDesignTool) { return; }

            InitializeComponent();
            mTab = tab;
            ConfigurationTreeView.LoadOnDemand += ConfigurationTreeViewLoadOnDemand;

            ObservableCollection<NodeView> configurationRootNode = new ObservableCollection<NodeView>();

            NodeView instrumentTypesNode = new NodeView(null) { Name = "Instrument Types ", HasChildren = true, Type = NodeType.InstrumentTypesNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };
            NodeView instrumentComponentTypesNode = new NodeView(null) { Name = "Instrument Component Types", HasChildren = true, Type = NodeType.InstrumentComponentTypes, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };
            NodeView instrumentPropertiesNode = new NodeView(null) { Name = "Instrument Properties", HasChildren = true, Type = NodeType.InstrumentProperties, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };

            NodeView calibrationComponentTypesNode = new NodeView(null) { Name = "Calibration Component Types", HasChildren = true, Type = NodeType.CalibrationComponentTypes, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };
            NodeView calibrationPropertiesNode = new NodeView(null) { Name = "Calibration Properties", HasChildren = true, Type = NodeType.CalibrationPropertiesNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };
            NodeView reportsNode = new NodeView(null) { Name = "Reports", HasChildren = true, Type = NodeType.ReportsNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };

            NodeView manufacturersNode = new NodeView(null) { Name = "Manufacturers", HasChildren = true, Type = NodeType.ManufacturersNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };

            NodeView engineeringUnits = new NodeView(null) { Name = "Calibration Engineering Units", HasChildren = true, Type = NodeType.EngineeeringUnitsNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };

            configurationRootNode.Add(instrumentTypesNode);
            configurationRootNode.Add(instrumentComponentTypesNode);
            configurationRootNode.Add(instrumentPropertiesNode);

            configurationRootNode.Add(calibrationComponentTypesNode);
            configurationRootNode.Add(calibrationPropertiesNode);
            configurationRootNode.Add(reportsNode);
            configurationRootNode.Add(manufacturersNode);
            configurationRootNode.Add(engineeringUnits);

            ConfigurationTreeView.ItemsSource = configurationRootNode;
        }
开发者ID:barrett2474,项目名称:CMS2,代码行数:34,代码来源:InstrumentConfigControl.xaml.cs

示例3: AddEditReportDialog

 public AddEditReportDialog(Tab tab)
 {
     InitializeComponent();
     AddEditReportModel model = new AddEditReportModel(tab);
     model.View = this;
     DataContext = model;
 }
开发者ID:barrett2474,项目名称:CMS2,代码行数:7,代码来源:AddEditReportDialog.xaml.cs

示例4: OnGUI

      void OnGUI()
      {
         
         if (Selection.activeGameObject == null)
         {
            EditorGUILayout.LabelField("No objects selected. Please select an object with a MeshFilter and Renderer");
            return;
         }
         DrawChannelGUI();

         var ot = tab;
         tab = (Tab)GUILayout.Toolbar((int)tab, tabNames);
         if (ot != tab)
         {
            UpdateDisplayMode();
         }
         if (tab == Tab.Paint)
         {
            DrawPaintGUI();
         }
         else if (tab == Tab.Deform)
         {
            DrawDeformGUI();
         }
         else if (tab == Tab.Flow)
         {
            DrawFlowGUI();
         }
         else if (tab == Tab.Bake)
         {
            DrawBakeGUI();
         }
      }
开发者ID:cupsster,项目名称:VertexPaint,代码行数:33,代码来源:VertexPainterWindow_GUI.cs

示例5: CreateRootTab

 //Tab
 private Tab CreateRootTab(string index)
 {
     Tab tab = new Tab();
     tab.Text = index;
     RadTabStrip1.Tabs.Add(tab);
     return tab;
 }
开发者ID:trungjc,项目名称:quanlyhocsinh,代码行数:8,代码来源:MainHomeTabAnnounce.ascx.cs

示例6: ElectricalEquipmentConfigControl

        public ElectricalEquipmentConfigControl(Tab tab)
        {
            if (DesignerProperties.IsInDesignTool) { return; }

            InitializeComponent();
            mTab = tab;
            ConfigurationTreeView.LoadOnDemand += ConfigurationTreeViewLoadOnDemand;

            ObservableCollection<NodeView> configurationRootNode = new ObservableCollection<NodeView>();

            NodeView electricalTypeNode = new NodeView(null) { Name = "Electrical Equipment Types", HasChildren = true, Type = NodeType.ElectricalTypesNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };
            NodeView electricalComponentTypesNode = new NodeView(null) { Name = "Electrical Equipment Component Types", HasChildren = true, Type = NodeType.ElectricalComponentTypes, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };
            NodeView standardComponentPropertiesNode = new NodeView(null) { Name = "Electrical Equipment Properties", HasChildren = true, Type = NodeType.ElectricalProperties, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };

            NodeView reportsNode = new NodeView(null) { Name = "Reports", HasChildren = true, Type = NodeType.ReportsNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };

            NodeView manufacturersNode = new NodeView(null) { Name = "Manufacturers", HasChildren = true, Type = NodeType.ManufacturersNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };

            configurationRootNode.Add(electricalTypeNode);
            configurationRootNode.Add(electricalComponentTypesNode);
            configurationRootNode.Add(standardComponentPropertiesNode);
            configurationRootNode.Add(reportsNode);
            configurationRootNode.Add(manufacturersNode);

            ConfigurationTreeView.ItemsSource = configurationRootNode;
        }
开发者ID:barrett2474,项目名称:CMS2,代码行数:26,代码来源:ElectricalEquipmentConfigControl.xaml.cs

示例7: GetTabDefinition

 private TabDefinition GetTabDefinition(Tab tab)
 {
     TabDefinition tabDefinition = TabDefinitionRepository.GetTabDefinition(tab.Name);
     if(tabDefinition == null)
         tabDefinition = new TabDefinition();
     return tabDefinition;
 }
开发者ID:episerver,项目名称:Page-Type-Builder,代码行数:7,代码来源:TabDefinitionUpdater.cs

示例8: Id_Should_Be_Composed_If_Parent_Is_Present

 public void Id_Should_Be_Composed_If_Parent_Is_Present()
 {
     var tab = new Tab("Tab2").With(() => _sut);
     var ribbon = new Ribbon("Ribbon3")
         .With(()=>tab);
     Assert.AreEqual("Ribbon3.Tab2.MyGroup", _sut.Id);
 }
开发者ID:ThorstenHans,项目名称:FluentSPRibbon,代码行数:7,代码来源:Group_Tests.cs

示例9: MobilePlantConfigControl

        public MobilePlantConfigControl(Tab tab)
        {
            if (DesignerProperties.IsInDesignTool) { return; }

            // Required to initialize variables
            InitializeComponent();
            mTab = tab;
            ConfigurationTreeView.LoadOnDemand += ConfigurationTreeView_LoadOnDemand;
            RadTreeViewItem treeViewItem = ConfigurationTreeView.SelectedContainer;
            ObservableCollection<NodeView> configurationRootNode = new ObservableCollection<NodeView>();

            NodeView mobilePlantTypesNode = new NodeView(null) { Name = "Mobile Plant Types", HasChildren = true, Type = NodeType.MobilePlantTypesNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };
            NodeView mobilePlantComponentTypesNode = new NodeView(null) { Name = "Mobile Plant Component Types", HasChildren = true, Type = NodeType.MobilePlantComponentTypes, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };
            NodeView standardComponentPropertiesNode = new NodeView(null) { Name = "Mobile Plant Properties", HasChildren = true, Type = NodeType.MobilePropertiesNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };

            NodeView mobilePlantHirersNode = new NodeView(null) { Name = "Mobile Plant MobileHirers", HasChildren = true, Type = NodeType.MobileHirersNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };
            NodeView mobilePlantOwnersNode = new NodeView(null) { Name = "Mobile Plant Owners", HasChildren = true, Type = NodeType.MobileOwnersNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };
            NodeView reportsNode = new NodeView(null) { Name = "Reports", HasChildren = true, Type = NodeType.ReportsNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };
            NodeView manufacturersNode = new NodeView(null) { Name = "Manufacturers", HasChildren = true, Type = NodeType.ManufacturersNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };

            configurationRootNode.Add(mobilePlantTypesNode);
            configurationRootNode.Add(mobilePlantComponentTypesNode);
            configurationRootNode.Add(standardComponentPropertiesNode);
            configurationRootNode.Add(mobilePlantHirersNode);
            configurationRootNode.Add(mobilePlantOwnersNode);
            configurationRootNode.Add(reportsNode);
            configurationRootNode.Add(manufacturersNode);

            ConfigurationTreeView.ItemsSource = configurationRootNode;
        }
开发者ID:barrett2474,项目名称:CMS2,代码行数:30,代码来源:MobilePlantConfigControl.xaml.cs

示例10: AddTab

 public void AddTab(Tab tab)
 {
     tab.PropertyChanged += new PropertyChangedEventHandler(tab_PropertyChanged);
     Children.Add(tab);
     if (tab.IsSelected)
         ProcessSelectedTab(tab);
 }
开发者ID:KonstantinKolesnik,项目名称:MFE,代码行数:7,代码来源:RadioTabControl.cs

示例11: ShouldLoadData

 private bool ShouldLoadData(Tab selectedTab) {
   JSONArray checkData = new JSONArray();
   DateTime? checkTime = null;
   switch(selectedTab) {
     case Tab.TOP_RICHER:
       checkData = topRicherList;
       checkTime = topRicherLoadTime;
     break;
     case Tab.TOP_WINNER:
       checkData = topWinnerList;
       checkTime = topWinnerLoadTime;
     break;
     default:
     return false;
   }
   
   if (checkData == null || checkData.Length == 0) {
     return true;
   } else {
     if (checkTime.HasValue) {
       if (Utils.CurrentTime().Subtract((DateTime)checkTime).TotalSeconds >= RELOAD_DATA_SECONDS) {
         return true;
       } else {
         return false;
       }
     } else {
       return true;
     }
   }
 }
开发者ID:markofevil3,项目名称:SlotMachine,代码行数:30,代码来源:LeaderboardScreen.cs

示例12: Add

 public void Add(string name, GUI.WindowFunction f)
 {
     Tab t = new Tab ();
     t.name = name;
     t.f = f;
     Add (t);
 }
开发者ID:shinobushiva,项目名称:Takeakari-System,代码行数:7,代码来源:TabbedGUI.cs

示例13: DocumentConfigControl

        public DocumentConfigControl(Tab tab)
        {
            if (DesignerProperties.IsInDesignTool){return;}

            // Required to initialize variables
            InitializeComponent();
            mTab = tab;
            ConfigurationTreeView.LoadOnDemand += ConfigurationTreeView_LoadOnDemand;
            RadTreeViewItem treeViewItem = ConfigurationTreeView.SelectedContainer;
            ObservableCollection<NodeView> configurationRootNode = new ObservableCollection<NodeView>();

            NodeView authorsNode = new NodeView(null) { Name = "Authors", HasChildren = true, Type = NodeType.DocumentAuthorsNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };
            NodeView disciplinesNode = new NodeView(null) { Name = "Disciplines", HasChildren = true, Type = NodeType.DocumentDisciplinesNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };
            NodeView locationsNode = new NodeView(null) { Name = "Locations", HasChildren = true, Type = NodeType.DocumentLocationsNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };
            NodeView purchaseOrdersNode = new NodeView(null) { Name = "Purchase Orders", HasChildren = true, Type = NodeType.DocumentPurchaseOrdersNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };
            NodeView reportsNode = new NodeView(null) { Name = "Reports", HasChildren = true, Type = NodeType.ReportsNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };
            NodeView typesNode = new NodeView(null) { Name = "Types", HasChildren = true, Type = NodeType.DocumentTypesNode, Icon = "/CmsEquipmentDatabase;component/Images/Configuration.png" };

            //alpha
            configurationRootNode.Add(authorsNode);
            configurationRootNode.Add(disciplinesNode);
            configurationRootNode.Add(locationsNode);
            configurationRootNode.Add(purchaseOrdersNode);
            configurationRootNode.Add(reportsNode);
            configurationRootNode.Add(typesNode);

            ConfigurationTreeView.ItemsSource = configurationRootNode;
        }
开发者ID:barrett2474,项目名称:CMS2,代码行数:28,代码来源:DocumentConfigControl.xaml.cs

示例14: Page_Load

        private void Page_Load(object sender, System.EventArgs e)
        {
            if (!IsPostBack) {

                this.DataBind();

                Tab t = new Tab();
                t.Text = "Properties";
                t.Enabled = DirectoryID != Guid.Empty;
                t.NavigateUrl = "EditLibrary.aspx?FileID=" + DirectoryID;
                TabControlDirectory.Tabs.Add(t);

                t = new Tab();
                t.Text = "Attributes";
                t.Enabled = DirectoryID != Guid.Empty;
                t.NavigateUrl = "EditLibraryAttributes.aspx?FileID=" + DirectoryID;
                TabControlDirectory.Tabs.Add(t);

                //t = new Tab();
                //t.Text = "Configuration";
                //t.Enabled = DirectoryID != Guid.Empty;
                //t.NavigateUrl = "EditDirectoryConfiguration.aspx?FileID=" + DirectoryID;
                //TabControlDirectory.Tabs.Add(t);

                TabControlDirectory.Tabs.FindByText(Selected).Selected = true;

            }
        }
开发者ID:sffogg,项目名称:Xenosynth,代码行数:28,代码来源:DocumentLibraryTabControl.ascx.cs

示例15: IsIdProvider_Should_Be_True

 public void IsIdProvider_Should_Be_True()
 {
     // Arrange
     var sut = new Tab("MyTab");
     // Assert
     Assert.IsTrue(sut.IsIdProvider);
 }
开发者ID:ThorstenHans,项目名称:FluentSPRibbon,代码行数:7,代码来源:Ribbon_Tab_Tests.cs


注:本文中的Tab类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。