Пример #1
0
        //Run and destroy a standard confirmation dialog
        public static Gtk.ResponseType RunHigConfirmation(Gtk.Window parent,
                                                          Gtk.DialogFlags flags,
                                                          Gtk.MessageType type,
                                                          string header,
                                                          string msg,
                                                          string ok_caption)
        {
            HigMessageDialog hmd = new HigMessageDialog(parent, flags, type, header, msg, ok_caption);

            try {
                return((Gtk.ResponseType)hmd.Run());
            } finally {
                hmd.Destroy();
            }
        }
Пример #2
0
        //run and destroy a standard dialog
        public static Gtk.ResponseType RunHigMessageDialog(Gtk.Window parent,
                                                           Gtk.DialogFlags flags,
                                                           Gtk.MessageType type,
                                                           Gtk.ButtonsType buttons,
                                                           string header,
                                                           string msg)
        {
            HigMessageDialog hmd = new HigMessageDialog(parent, flags, type, buttons, header, msg);

            try {
                return((Gtk.ResponseType)hmd.Run());
            } finally {
                hmd.Destroy();
            }
        }
Пример #3
0
 //run and destroy a standard dialog
 public static Gtk.ResponseType RunHigMessageDialog(Gtk.Window parent,
              Gtk.DialogFlags flags,
              Gtk.MessageType type,
              Gtk.ButtonsType buttons,
              string          header,
              string          msg)
 {
     HigMessageDialog hmd = new HigMessageDialog(parent, flags, type, buttons, header, msg);
      try {
          return (Gtk.ResponseType)hmd.Run();
      } finally {
          hmd.Destroy();
      }
 }
Пример #4
0
 //Run and destroy a standard confirmation dialog
 public static Gtk.ResponseType RunHigConfirmation(Gtk.Window parent,
              Gtk.DialogFlags flags,
              Gtk.MessageType type,
              string          header,
              string          msg,
              string          ok_caption)
 {
     HigMessageDialog hmd = new HigMessageDialog(parent, flags, type, header, msg, ok_caption);
      try {
          return (Gtk.ResponseType)hmd.Run();
      } finally {
          hmd.Destroy();
      }
 }