Exemplo n.º 1
0
		public override bool LaunchConfiguration ()
		{			
			var dialog = new LevelsDialog (Data);
			dialog.Title = Name;
			dialog.Icon = PintaCore.Resources.GetIcon (Icon);
			
			int response = dialog.Run ();

			dialog.Destroy ();
			
			return (response == (int)Gtk.ResponseType.Ok);
		}
Exemplo n.º 2
0
        public override bool LaunchConfiguration()
        {
            var dialog = new LevelsDialog(Data);

            dialog.Title = Name;
            dialog.Icon  = PintaCore.Resources.GetIcon(Icon);

            int response = dialog.Run();

            dialog.Destroy();

            return(response == (int)Gtk.ResponseType.Ok);
        }
Exemplo n.º 3
0
        public override bool LaunchConfiguration()
        {
            using (var dialog = new LevelsDialog(Data)) {
                dialog.Title = Name;
                dialog.Icon  = PintaCore.Resources.GetIcon(Icon);

                var response = Gtk.ResponseType.None;
                while (response == Gtk.ResponseType.None)
                {
                    response = (Gtk.ResponseType)dialog.Run();
                }

                return(response == Gtk.ResponseType.Ok);
            }
        }