本文整理汇总了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 ();
}
示例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);
}
示例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;
}
示例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);
}