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


C# Box.ShowAll方法代码示例

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


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

示例1: HelpPage

        public HelpPage()
            : base(0.5f, 0.5f, 0.0f, 0.0f)
        {
            Image help = new Image ();
            help.Pixbuf = Gdk.Pixbuf.LoadFromResource ("jcastro.png");
            help.Show ();
            Add (help);

            tab_widget = new HBox ();
            tab_widget.Spacing = 2;
            tab_widget.PackStart (new Image (Stock.Help, IconSize.Menu), false, false, 0);
            tab_widget.PackStart (new Label (Title), true, true, 0);
            tab_widget.ShowAll ();
        }
开发者ID:knocte,项目名称:banshee,代码行数:14,代码来源:HelpPage.cs

示例2: RatingMenuItem

        public RatingMenuItem () : base ()
        {
            box = new HBox ();
            box.Spacing = 5;

            Label label = new Label ();
            label.Markup = String.Format ("<i>{0}</i>",
                GLib.Markup.EscapeText (Catalog.GetString ("Rating:")));
            box.PackStart (label, false, false, 0);
            label.Show ();

            entry = new RatingEntry ();
            entry.HasFrame = false;
            entry.PreviewOnHover = true;
            entry.AlwaysShowEmptyStars = true;
            entry.Changed += OnEntryChanged;
            box.PackStart (entry, false, false, 0);

            box.ShowAll ();
            Add (box);
        }
开发者ID:rubenv,项目名称:tripod,代码行数:21,代码来源:RatingMenuItem.cs

示例3: Window

		public Window (ComparisonInfo info) : base ("ilContrast Assembly Comparison Tool") 
		{
			DefaultSize = new Size (450, 450);

			main_vbox = new VBox (false, 0);
			AddActionUI ();
#if USE_GECKO
			browser = new Gecko.WebControl ();
			main_vbox.PackStart (browser, true, true, 0);
#else
			web_view = new WebKit.WebView ();
			ScrolledWindow sw = new ScrolledWindow ();
			sw.Add (web_view);
			main_vbox.PackStart (sw, true, true, 0);
#endif
			statusbar = new Statusbar ();
			main_vbox.PackStart (statusbar, false, false, 0);
			Add (main_vbox);
			main_vbox.ShowAll ();
			first_show = true;
			this.info = info;
		}
开发者ID:col42dev,项目名称:mono-tools,代码行数:22,代码来源:Window.cs

示例4: MainWindow

        public MainWindow()
            : base(Gtk.WindowType.Toplevel)
        {
            this.Build();

            if (!Directory.Exists(Resources.InstDir))
                Directory.CreateDirectory(Resources.InstDir);

            if (!File.Exists(AppSettings.Main.JavaPath))
                AppSettings.Main.JavaPath = OSUtils.FindJava();

            Title = string.Format("MultiMC {0} for {1}",
                                  Resources.VersionString,
                                  OSUtils.OSName);
            Icon = Pixbuf.LoadFromResource("MainIcon");

            instList = new ListStore(typeof(string), typeof(Instance), typeof(Gdk.Pixbuf));

            instIconView.Model = instList;
            instIconView.TextColumn = 0;
            instIconView.PixbufColumn = 2;
            instIconView.Cells[0] = new CellRendererText();

            CellRendererText textCell = (instIconView.Cells[0] as CellRendererText);
            textCell.Editable = true;
            textCell.Width = 64;
            textCell.Alignment = Pango.Alignment.Center;
            textCell.Edited += (object o, EditedArgs args) =>
            {
                using (TreePath tp = new TreePath(args.Path))
                {
                    instIconView.SelectPath(tp);
                    if (Instance.NameIsValid(args.NewText))
                    {
                        SelectedInst.Name = args.NewText;
                        LoadInstances();
                    }
                }
            };

            InitMenu();
            //			InitDND();

            progBarBox = new VBox();
            windowbox.PackEnd(progBarBox, false, true, 0);

            progBarBox.ShowAll();

            LoadInstances();

            /*
             * Run startup tasks such as downloading DotNetZip
             * and checking for updates.
             */
            RunStartupTasks();

            HintDialog.ShowHint(this, Hint.WelcomeHint);
        }
开发者ID:Orochimarufan,项目名称:MultiMC,代码行数:58,代码来源:MainWindow.cs


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