예제 #1
0
 public static void ShowUp()
 {
     if (about == null)
     {
         about            = new AboutDialog();
         about.Destroyed += delegate(object o, EventArgs e) { about = null; };
         about.Response  += delegate(object o, Gtk.ResponseArgs e) { if (about != null)
                                                                     {
                                                                         about.Destroy();
                                                                     }
         };
     }
     about.Show();
 }
예제 #2
0
        public static void ShowUp()
        {
            if (about == null)
            {
                about            = new AboutDialog();
                about.Destroyed += (o, e) => { about = null; };
                about.Response  += (o, e) => { if (about != null)
                                               {
                                                   about.Destroy();
                                               }
                };
            }

            about.Show();
        }