• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Tab类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: Page_Load

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

                this.DataBind();

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

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

                t = new Tab();
                t.Text = "History";
                t.Enabled = FileID != Guid.Empty;
                t.NavigateUrl = "ViewBlogHistory.aspx?FileID=" + FileID;
                TabControlBlog.Tabs.Add(t);

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

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


示例17: Page_Load

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

                this.DataBind();

                Tab t = new Tab();
                t.Text = "Properties";
                t.Enabled = UserID != Guid.Empty;
                t.NavigateUrl = "EditUser.aspx?UserID=" + UserID;
                TabControlUser.Tabs.Add(t);

                t = new Tab();
                t.Text = "Roles";
                t.Enabled = UserID != Guid.Empty;
                t.NavigateUrl = "EditUserRoles.aspx?UserID=" + UserID;
                TabControlUser.Tabs.Add(t);

                t = new Tab();
                t.Text = "History";
                t.Enabled = UserID != Guid.Empty;
                t.NavigateUrl = "ViewUserHistory.aspx?UserID=" + UserID;
                TabControlUser.Tabs.Add(t);

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

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


示例18: OnRenameTab

 /// <summary>
 /// Starts renaming of the <paramref name="tab"/> using the <paramref name="baseName"/>.
 /// </summary>
 /// <param name="tab">A <see cref="Tab"/> to rename.</param>
 /// <param name="baseName">A default name displayed in the rename textbox.</param>
 protected virtual void OnRenameTab(Tab tab, string baseName)
 {
     RenameTextBox box = this.RenamerBox;
     box.Tool = tab;
     box.Caption = baseName;
     box.Show();
 }
开发者ID:hksonngan,项目名称:sharptracing,代码行数:12,代码来源:Toolbox.Renaming.cs


示例19: Index

        public ActionResult Index(FormCollection collection)
        {
            var item = new Upload();
            var whiteList = new string[] { "Artist", "Name", "Tab", "BookId" };
            if (TryUpdateModel(item, whiteList, collection.ToValueProvider()))
            {
                if (ModelState.IsValid)
                {
                    //_uploadService.Upload(item.Artist, item.Name, item.BookId, item.Tab, User.Identity.Name);

                    var tab = new Tab { Artist = item.Artist, Name = item.Name, Content = item.Tab, CreatedOn = DateTime.UtcNow, AuthorName = User.Identity.Name };
                    RavenSession.Store(tab);

                    if (item.BookId > 0)
                    {
                        var bookTasks = new BookService();
                        bookTasks.AddTabToBook(tab.Id, item.BookId.Value, RavenSession);
                    }

                    TempData.Add(Constants.TempDataMessage, "Upload successful, thanks!");

                    return RedirectToAction("Index", "Songs");
                }
            }
            return View();
        }
开发者ID:mattfrear,项目名称:A4tabRaven,代码行数:26,代码来源:UploadController.cs


示例20: CreateTabDefinition

 public static TabDefinition CreateTabDefinition(Tab tab)
 {
     TabDefinition tabDefinition = new TabDefinition();
     tabDefinition.Name = tab.Name;
     tabDefinition.RequiredAccess = tab.RequiredAccess;
     tabDefinition.SortIndex = tab.SortIndex;
     return tabDefinition;
 }
开发者ID:joelabrahamsson,项目名称:Page-Type-Builder,代码行数:8,代码来源:TabDefinitionUpdaterTestsUtility.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# TabControl类代码示例发布时间:2022-05-24
下一篇:
C# TYPE类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap