本文整理汇总了C#中MainWindow.Hide方法的典型用法代码示例。如果您正苦于以下问题:C# MainWindow.Hide方法的具体用法?C# MainWindow.Hide怎么用?C# MainWindow.Hide使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MainWindow
的用法示例。
在下文中一共展示了MainWindow.Hide方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Main
public static void Main(string[] args)
{
Application.Init ();
MainWindow win = new MainWindow ();
win.Hide();
Application.Run ();
}
示例2: Main2
public static void Main2 (string[] args)
{
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomainUnhandledException);
Application.Init ();
MainWindow win = new MainWindow ();
win.Show();
Application.Run();
win.Hide();
}
示例3: Argument
public void Argument(string arg)
{
if (arg == "/start")
{
MainWindow mw = new MainWindow();
mw.Hide();
diskCleanup dc = new diskCleanup();
if (dc.ShowDialog() == true)
{
App.Current.Shutdown();
}
}
}
示例4: Main
public static void Main(string[] args)
{
configpath = System.IO.Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath) + "/";
Application.Init();
win = new MainWindow();
var eventbox = new EventBox();
//win.ExposeEvent += OnExposed;
var chars = "abcdefghijklmnopqrstuvwxyz0123456789"; //ABCDEFGHIJKLMNOPQRSTUVWXYZ
var stringChars = new char[ssnamelength];
var random = new Random();
for (int i = 0; i < stringChars.Length; i++)
{
stringChars[i] = chars[random.Next(chars.Length)];
}
finalString = new string(stringChars) + ".png";
win.Hide();
TakeScreenshot(configpath + finalString.Replace(".png", "_pre.png"));
win.Show();
win.Decorated = false;
img = new Gtk.Image(configpath + finalString.Replace(".png", "_pre.png"));
eventbox.ButtonPressEvent += (ButtonPressHandler);
eventbox.ButtonReleaseEvent += (ButtonReleaseHandler);
img.Xalign = 0.5f;
img.Yalign = 0.5f;
eventbox.Add(img);
eventbox.ShowAll();
win.Add(eventbox);
win.ShowAll();
win.Move(0, 0);
Application.Run();
}