本文整理汇总了C#中Gtk.Dialog.HideAll方法的典型用法代码示例。如果您正苦于以下问题:C# Dialog.HideAll方法的具体用法?C# Dialog.HideAll怎么用?C# Dialog.HideAll使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gtk.Dialog
的用法示例。
在下文中一共展示了Dialog.HideAll方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Initialize
void Initialize(Window parent, String text)
{
var stream = Assembly
.GetExecutingAssembly()
.GetManifestResourceStream(AppController.Instance.Config.SourceDialog);
var glade = new Glade.XML(stream, "UnhandledExceptionDialog", null);
if (stream != null)
{
stream.Close();
}
//Glade.XML glade = Glade.XML.FromAssembly("UnhandledExceptionDialog.glade","UnhandledExceptionDialog", null);
//stream.Close();
glade.Autoconnect(this);
_thisDialog = ((Dialog)(glade.GetWidget("UnhandledExceptionDialog")));
_thisDialog.Modal = true;
_thisDialog.TransientFor = parent;
_thisDialog.SetPosition (WindowPosition.Center);
textview1.Buffer.Text = text;
btnContinue.Clicked += (sender, e) => _thisDialog.HideAll();
btnUpload.Clicked += OnUpload;
miSave.Activated += OnSave;
miSaveAs.Activated += OnSaveAs;
miQuit.Activated += (object sender, EventArgs e) => _thisDialog.HideAll();
miAbout.Activated += (object sender, EventArgs e) => new AboutDialog (_thisDialog).ShowDialog();
}