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


C# Gtk.Label.ShowAll方法代码示例

本文整理汇总了C#中Gtk.Label.ShowAll方法的典型用法代码示例。如果您正苦于以下问题:C# Gtk.Label.ShowAll方法的具体用法?C# Gtk.Label.ShowAll怎么用?C# Gtk.Label.ShowAll使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Gtk.Label的用法示例。


在下文中一共展示了Gtk.Label.ShowAll方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GtkSocketViewContent

		public GtkSocketViewContent(GtkPlugOpenedFile openFile)
		{
			this.openFile = openFile;
			this.openFile.ViewContent = this;
			label = new Gtk.Label("Initializing...");
			label.ParentSet += this.OnLabelParentChanged;
			label.ShowAll();
		}
开发者ID:Protobuild,项目名称:Protobuild.IDE.MonoDevelop,代码行数:8,代码来源:GtkSocketViewContent.cs

示例2: CatalogTab

        public CatalogTab ()
        {
            this.Build ();

            String[] localizedCatalogs = {
                Mono.Unix.Catalog.GetString("ActPlace"),
                Mono.Unix.Catalog.GetString("Language"),
                Mono.Unix.Catalog.GetString("HumanRightsViolationCategory"),
                Mono.Unix.Catalog.GetString("HumanRightsViolation"),
                Mono.Unix.Catalog.GetString("City"),
                Mono.Unix.Catalog.GetString("State"),
                Mono.Unix.Catalog.GetString("Country"),
                Mono.Unix.Catalog.GetString("AffiliationType"),
                Mono.Unix.Catalog.GetString("IdentificationType"),
                Mono.Unix.Catalog.GetString("SourceInformationType"),
                Mono.Unix.Catalog.GetString("DocumentarySourceType"),
                Mono.Unix.Catalog.GetString("MaritalStatus"),
                Mono.Unix.Catalog.GetString("TravelCompanion"),
                Mono.Unix.Catalog.GetString("CaseStatus"),
                Mono.Unix.Catalog.GetString("IndigenousLanguage"),
                Mono.Unix.Catalog.GetString("RelationshipType"),
                Mono.Unix.Catalog.GetString("TravelingReason"),
                Mono.Unix.Catalog.GetString("InstitutionCategory"),
                Mono.Unix.Catalog.GetString("ReliabilityLevel"),
                Mono.Unix.Catalog.GetString("VictimStatus"),
                Mono.Unix.Catalog.GetString("InstitutionType"),
                Mono.Unix.Catalog.GetString("Religion"),
                Mono.Unix.Catalog.GetString("InterventionType"),
                Mono.Unix.Catalog.GetString("EthnicGroup"),
                Mono.Unix.Catalog.GetString("Job"),
                Mono.Unix.Catalog.GetString("ScholarityLevel"),
                Mono.Unix.Catalog.GetString("AddressType"),
                Mono.Unix.Catalog.GetString("StayType"),
                Mono.Unix.Catalog.GetString("PerpetratorType"),
                Mono.Unix.Catalog.GetString("PerpetratorStatus"),
                Mono.Unix.Catalog.GetString("InvolvementDegree")
            };

            String[] catalogs = {
                "ActPlace",
                "Language",
                "HumanRightsViolationCategory",
                "HumanRightsViolation",
                "City",
                "State",
                "Country",
                "AffiliationType",
                "IdentificationType",
                "SourceInformationType",
                "DocumentarySourceType",
                "MaritalStatus",
                "TravelCompanion",
                "CaseStatus",
                "IndigenousLanguage",
                "RelationshipType",
                "TravelingReason",
                "InstitutionCategory",
                "ReliabilityLevel",
                "VictimStatus",
                "InstitutionType",
                "Religion",
                "InterventionType",
                "EthnicGroup",
                "Job",
                "ScholarityLevel",
                "AddressType",
                "StayType",
                "PerpetratorType",
                "PerpetratorStatus",
                "InvolvementDegree"
            };

            notebook1.Remove (notebook1.Children[0]);

            foreach (String catalog in catalogs) {
                CatalogCRUD catalogcrud = new CatalogCRUD ();
                catalogcrud.Model = catalog;

                notebook1.Add (catalogcrud);

                // Notebook tab
                Gtk.Label label = new Gtk.Label ();
                label.LabelProp = Mono.Unix.Catalog.GetString(catalog);
                notebook1.SetTabLabel (catalogcrud, label);
                label.ShowAll ();
            }


        }
开发者ID:monsterlabs,项目名称:HumanRightsTracker,代码行数:89,代码来源:CatalogTab.cs


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