Ejemplo n.º 1
0
	/**
	 * This is the handler for opening the MainMenu>Help>About button.
	 */
	protected void OpenAboutWindow (object sender, EventArgs e)
	{
		AboutDialog about = new AboutDialog ();
		about.ProgramName = "SMS Appliction";
		about.Version = " Version: 0.1";
		about.Run ();
		about.Destroy ();
	}
Ejemplo n.º 2
0
 protected void about(object sender, EventArgs e)
 {
     AboutDialog about = new AboutDialog ();
     about.ProgramName = "Mola-Mola Editor";
     about.Version = "1.0.0";
     about.Run ();
     about.Destroy ();
 }
Ejemplo n.º 3
0
    protected void OnAbout(object sender, EventArgs e)
    {
        var about = new AboutDialog ();
        about.ProgramName = "GTK# Image Viewer";
        about.Version = "1.0.0";
        about.Run ();

        about.Destroy ();
    }
Ejemplo n.º 4
0
    protected void OnAboutActionActivated(object sender, EventArgs e)
    {
        AboutDialog ad = new AboutDialog();
        ad.Title = "I know this is crappy but it hopefully works";
        ad.Authors = new String[]{ "Mike Santiago" };
        ad.Version = "1.0.0.0";

        ad.Run();
        ad.Destroy();
    }
Ejemplo n.º 5
0
        void OnAboutClicked(object sender, EventArgs args)
        {
            AboutDialog about = new AboutDialog();

            about.ProgramName = "GhostPDL Gtk# Viewer";
            about.Version     = "0.1";
            about.Copyright   = "(c) Artifex Software";
            about.Comments    = @"A demo of GhostPDL API with C# Mono";
            about.Website     = "http://www.artifex.com";
            about.Run();
            about.Destroy();
        }
Ejemplo n.º 6
0
    private void AboutAuthorActivated(object sender, EventArgs e)
    {
        AboutDialog about = new AboutDialog()
        {
            ProgramName = "Пошук по базі даних",
            Authors     = new string[] { "Карапуд Максим К-26" },
            Version     = "Версія 1.0.0"
        };

        about.Run();
        about.Destroy();
    }
Ejemplo n.º 7
0
    protected void OnAboutActionActivated(object sender, EventArgs e)
    {
        using (AboutDialog about = new AboutDialog())
        {
            about.ProgramName = "Catcher";
            about.Copyright   = "http packet viewer for linux, version 0.1 (2013-01-01)";
            about.Website     = "https://github.com/ren85/catcher";

            about.Run();
            about.Destroy();
        }
    }
Ejemplo n.º 8
0
    protected void showAboutDialog(object sender, EventArgs e)
    {
        AboutDialog about = new AboutDialog();

        about.ProgramName = "AutoSolution-EasyOS";
        about.Version     = "0.1";
        about.Copyright   = "(c) caesarhao";
        about.Comments    = @"EasyOS is an app for generating OS structure";
        about.Website     = "http://www.notyet.com";
        //about.Logo = new Gdk.Pixbuf("battery.png");
        about.Run();
        about.Destroy();
    }
Ejemplo n.º 9
0
        private void ShowAboutDialog(object sender, EventArgs args)
        {
            AboutDialog about = new AboutDialog();

            about.Authors      = new string[] { "Jahangmar" };
            about.ProgramName  = "GardenPlanner";
            about.Version      = MainClass.VERSION;
            about.Website      = "https://github.com/jahangmar/GardenPlanner";
            about.WebsiteLabel = "GardenPlanner on github";
            about.TransientFor = MainWindow.GetInstance();
            about.Run();
            about.Destroy();
        }
Ejemplo n.º 10
0
 /// <summary>
 /// Displays the about window to the user.
 /// </summary>
 /// <param name="sender">The sending object.</param>
 /// <param name="e">The event args.</param>
 private void OnMenuAboutItemActivated(object sender, EventArgs e)
 {
     using (var builder = new Builder(Assembly.GetExecutingAssembly(), "Launchpad.Launcher.Interface.Launchpad.glade", null))
     {
         using (var dialog = new AboutDialog(builder.GetObject("MainAboutDialog").Handle))
         {
             dialog.Icon = ResourceManager.ApplicationIcon;
             dialog.Logo = ResourceManager.ApplicationIcon;
             dialog.Run();
             dialog.Destroy();
         }
     }
 }
Ejemplo n.º 11
0
    /**
     * About Dialog opens to display information about the application
     */
    protected void OnAboutActionActivated(object sender, System.EventArgs e)
    {
        AboutDialog about = new AboutDialog();

        about.ProgramName = "Screenary";
        about.Version     = "1.0.0";
        about.Comments    = "A screencasting application for Ubuntu";
        about.Authors     = new string [] { "Marc Andre", "Hai-Long", "Gina", "Terri-Anne", "Marwan" };
        about.Website     = "http://www.screenary.com/";

        about.Run();
        about.Destroy();
    }
Ejemplo n.º 12
0
        protected void OnAboutActionActivated(object sender, EventArgs e)
        {
            AboutDialog ad = new AboutDialog
            {
                Title       = "About",
                ProgramName = "YuDesk",
                Version     = "1.0",
                Copyright   = "@tthhr",
                Website     = "https://github.com/tthhr/yudesk"
            };

            ad.Run();
            ad.Destroy();
        }
Ejemplo n.º 13
0
    protected void On_AboutAction_Activated(object sender, EventArgs e)
    {
        //create a AboutDialog
        AboutDialog about = new AboutDialog();

        about.ProgramName = "SimpleEditor";
        about.Version     = "0.1";
        about.Copyright   = "(c)Zhang TongXie";
        about.Comments    = @"SimpleEditor is a very simple tool for editing file!";
        about.Website     = "https://github.com/deleteLater";
        about.Logo        = new Gdk.Pixbuf("logo.png");
        about.Run();
        about.Destroy();
    }
Ejemplo n.º 14
0
    protected void OnButton2Clicked(object sender, EventArgs e)
    {
        AboutDialog dialog = new AboutDialog();

        dialog.ProgramName = FileVersionInfo.GetVersionInfo(Assembly.GetEntryAssembly().Location).ProductName;
        dialog.Version     = FileVersionInfo.GetVersionInfo(Assembly.GetEntryAssembly().Location).FileVersion.Substring(0, 5);
        dialog.Comments    = FileVersionInfo.GetVersionInfo(Assembly.GetEntryAssembly().Location).Comments;
        dialog.Authors     = new string [] { FileVersionInfo.GetVersionInfo(Assembly.GetEntryAssembly().Location).LegalCopyright, "Lucas Dias de Souza" };
        dialog.Website     = "mailto:[email protected]";
        dialog.Copyright   = FileVersionInfo.GetVersionInfo(Assembly.GetEntryAssembly().Location).LegalCopyright;

        dialog.Run();
        dialog.Destroy();
    }
Ejemplo n.º 15
0
    protected void OnAboutActionActivated(object sender, EventArgs e)
    {
        AboutDialog abdg = new AboutDialog();

        abdg.WrapLicense = true;
        abdg.Authors     = new string[] { "SavSanta <@SavSantaX>" };
        abdg.ProgramName = "Combat Sports ScoreCard Keeper";
        abdg.Version     = "0.98";
        abdg.Website     = "https://github.com/SavSanta/CombatSportsScore";
        abdg.Comments    = "Combat Sports ScoreCard Keeper (for Boxing/MMA/KickBoxing) written in C# using GTK+";
        abdg.License     = "Permission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.";
        abdg.Run();
        abdg.Destroy();
    }
Ejemplo n.º 16
0
    void OpenAboutDialog()
    {
        AboutDialog about = new AboutDialog();

        about.ProgramName = "Landnite Launcher";
        about.Version     = "0.1";
        about.Copyright   = "© Liam Hall";
        about.Comments    = @"A simple app to launch the game you actually want.";
        about.Website     = "https://bit.ly/VisitLandnite";
        //about.Logo = new Gdk.Pixbuf("battery.png");
        about.SetPosition(WindowPosition.CenterAlways);
        about.Run();
        about.Destroy();
    }
Ejemplo n.º 17
0
    protected void OnAboutActionActivated(object sender, EventArgs e)
    {
        // Create a new About dialog
        AboutDialog about = new AboutDialog();

        // Change the Dialog's properties to the appropriate values.
        about.ProgramName = "Gravador do nrf24le1";
        about.Version     = "1.2";

        // Show the Dialog and pass it control
        about.Run();

        // Destroy the dialog
        about.Destroy();
    }
Ejemplo n.º 18
0
    protected void OnAbout(object sender, EventArgs e)
    {
        // Create a new About dialog
        AboutDialog about = new AboutDialog();

        // Change the Dialog's properties to the appropriate values
        about.ProgramName = "Log Viewer";
        about.Version     = "1.0.0";

        // Show the Dialog and pass it control
        about.Run();

        // Destroy the dialog
        about.Destroy();
    }
Ejemplo n.º 19
0
    protected void OnAbout(object sender, EventArgs e)
    {
        // Create a new About dialog
        AboutDialog about = new AboutDialog ();

        // Change the Dialog's properties to the appropriate values
        about.ProgramName = "Log Viewer";
        about.Version = "1.0.0";

        // Show the Dialog and pass it control
        about.Run ();

        // Destroy the dialog
        about.Destroy ();
    }
Ejemplo n.º 20
0
        protected void OnAboutActionActivated(object sender, EventArgs e)
        {
            AboutDialog dialog = new AboutDialog
            {
                ProgramName = "CashFlow",
                Version     = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(),
                Comments    = "Döviz verilerini grafiğe döken bir program.",
                License     = License.MergedLicenses,
                Authors     = new string[] { "Serhat Seyren <*****@*****.**>" },
                Website     = "https://github.com/thesseyren/CashFlow",
            };

            dialog.Run();
            dialog.Destroy();
        }
Ejemplo n.º 21
0
        private void OnAbout(object o, EventArgs args)
        {
            var d = new AboutDialog {
                ProgramName    = Program.AppName,
                Version        = Program.AppVersion,
                Logo           = Program.AppIcon,
                Comments       = "Trackr is a simple program for tracking and managing your watched anime and manga.",
                Website        = "https://github.com/beesenpai/Trackr",
                TransientFor   = this,
                WindowPosition = WindowPosition.CenterOnParent
            };

            d.Run();
            d.Destroy();
        }
Ejemplo n.º 22
0
        protected void OnBtnAcercaDeClicked(object sender, EventArgs e)
        {
            Estilo      est      = new Estilo();
            AboutDialog AcercaDe = new AboutDialog();

            AcercaDe.ProgramName  = "WhiteRose";
            AcercaDe.Version      = "1.0";
            AcercaDe.Copyright    = "(c) EcoTech Team - 2017";
            AcercaDe.Website      = "http://www.imdb.com/title/tt4158110/?ref_=ttep_ep_tt";
            AcercaDe.WebsiteLabel = "Mr. Robot";
            AcercaDe.Authors      = new string[] { "Albert Acevedo C.I. 26710983", "Gabriel Roa C.I. 25919459", "Marielba Maldonado C.I. 26710983", "Rubén Gutiérrez C.I. 25147289", "Sección 1 - Programación II" };
            AcercaDe.ModifyBg(StateType.Normal, est.LigthSteelBlue);
            AcercaDe.Comments = "Sistema de Facturación para la empresa Mr. Robot \n Programado como proyecto final de la asignatura Programación II \n Lapso 2017-1 - Barquisimeto, diciembre del 2017";
            AcercaDe.Run();
            AcercaDe.Destroy();
        }
Ejemplo n.º 23
0
	public void OnAbout (object o, EventArgs args)
	{
		AboutDialog dialog = new AboutDialog ();

		dialog.ProgramName = CAPTION;

		dialog.Authors = new string[] {
			"Zoltan Varga ([email protected])"
		};

		dialog.Copyright = "Copyright © 2008 Novell, Inc. and Others";
		dialog.Comments = "A Coverage Analysis program for MONO.";

		dialog.Run ();
		dialog.Destroy ();
	}
Ejemplo n.º 24
0
    protected void AboutClick(object sender, EventArgs e)
    {
        var aboutDlg = new AboutDialog();

        aboutDlg.ProgramName = "MyTest Creator";
        aboutDlg.Title       = "About MyTest Creator";
        aboutDlg.Version     = "v1.0";
        aboutDlg.Comments    = "Программа создания тестов для оболочки MyTest";
        aboutDlg.Authors     = new string[] { "Глушенков А.Н., 2017" };
        aboutDlg.Documenters = new string[] { "Глушенков А.Н., 2017" };
        aboutDlg.Copyright   = "Крымский федеральный университет им. В.И. Вернадского";
        aboutDlg.Copyright  += "\nФизико-технический институт";
        aboutDlg.Copyright  += "\nКафедра медицинской физики и информатики";
        aboutDlg.Run();
        aboutDlg.Destroy();
    }
Ejemplo n.º 25
0
    protected void OnAboutActionActivated(object sender, EventArgs e)
    {
        AboutDialog ad = new AboutDialog()
        {
            Website     = "https://github.com/NattyNarwhal/Colours",
            Version     = Assembly.GetExecutingAssembly().GetName().Version.ToString(),
            ProgramName = "Colours",
            License     = "This software is licensed under the MIT License." +
                          " Portions of this code were borrowed from the Mono Project" +
                          ", under the MIT license.",
            WrapLicense = true
        };

        ad.Run();
        ad.Destroy();
    }
Ejemplo n.º 26
0
    protected void OnAboutActionActivated(object sender, EventArgs e)
    {
        var dialog = new AboutDialog();

        dialog.Version  = "0.0.1";
        dialog.Title    = "Nate's Calculator";
        dialog.Website  = "https://www.GitHub.com/ndaljr/Calculator";
        dialog.Comments = "This is a basic calculator that allows for expressions to be evaluated." +
                          " You can email me at [email protected] if you notice any bugs.\n"
                          + "\nCredit goes to the author of the info.lundin.math dll. This calculator uses the parser provided by the" +
                          " aforementioned package.";
        dialog.Authors = new string[] { "Nathaniel D. Alcedo Jr" };
        dialog.ShowAll();
        dialog.Run();
        dialog.Destroy();
    }
Ejemplo n.º 27
0
    protected void OnAbout(object sender, EventArgs e)
    {
        AboutDialog about = new AboutDialog
        {
            Title   = "About SADA",
            Version = "1.0"
        };

        string[] authors = new string[1];
        authors[0]     = "Nathan Smith";
        about.Authors  = authors;
        about.Comments = "SADA stands for Smith Airfoil Design Application. It was built to enable engineers to design and tweak airfoils in an easy-to-use environment.";
        //about.Copyright = "Smith Software LLC";
        about.Run();
        about.Destroy();
    }
Ejemplo n.º 28
0
    protected void onAbout(object sender, System.EventArgs e)
    {
        AboutDialog about = new AboutDialog();

         // Change the Dialog's properties to the appropriate values.
         	string[] authors = new string[1] {"Σαββόπουλος Κώστας"};
        about.ProgramName = "Βυζαντινή Ιστορία - The Game!";
        about.Website = "http://www.pansoft.gr";
        about.Authors = authors;
        about.Version = "0.0.01";

         // Show the Dialog and pass it control
         about.Run();

         // Destroy the dialog
         about.Destroy();
    }
Ejemplo n.º 29
0
        private static void OnAboutMenuActivated(object sender, EventArgs e)
        {
            AboutDialog about = new AboutDialog();

            about.Logo              = new Pixbuf(Assembly.GetExecutingAssembly(), "monotools.png");
            about.Icon              = about.Logo;
            about.Version           = Assembly.GetExecutingAssembly().GetName().Version.ToString();
            about.ProgramName       = Catalog.GetString("MonoTools");
            about.Website           = "http://www.go-mono.com/monovs/";
            about.WebsiteLabel      = Catalog.GetString("Visit Homepage");
            about.Copyright         = Catalog.GetString("Copyright \xa9 2010 Novell, Inc.");
            about.Authors           = null;
            about.Documenters       = null;
            about.TranslatorCredits = null;
            about.Run();
            about.Destroy();
        }
Ejemplo n.º 30
0
        private void About(object sender, EventArgs eventArgs)
        {
            if (_aboutDialog == null || !_aboutDialog.Visible)
            {
                var ab = new AboutDialog
                {
                    Website     = "https://github.com/fhaze",
                    ProgramName = "漢字七",
                    Authors     = new[] { "FHaze aka 松本エデル" },
                    Version     = _version
                };
                ab.Run();
                ab.Destroy();

                _aboutDialog = ab;
            }
        }
Ejemplo n.º 31
0
        /// <summary>
        /// Raises the about event.
        /// </summary>
        protected void OnAbout(object sender, System.EventArgs e)
        {
            AboutDialog about = new AboutDialog();

            about.ProgramName = "CEW";
            about.Version     = "1.0";
            about.Authors     = new string[] { "Sylvia Weber" };
            about.Copyright   = "2018";
            about.Logo        = new Gdk.Pixbuf(Functions.logoFile);

            String dissTitle = "Konzeption und Umsetzung eines computergenerierten etymologischen Wörterbuchs am Beispiel des Französischen";

            about.Comments = "Software zur Dissertationsschrift" + Environment.NewLine + Environment.NewLine +
                             "Weber, Sylvia (2018): " + dissTitle + ", Diss., Friedrich-Alexander-Universität Erlangen-Nürnberg.";

            about.Run();
            about.Destroy();
        }
Ejemplo n.º 32
0
        protected void OnAbout(object sender, EventArgs e)
        {
            AboutDialog dialog     = new AboutDialog();
            Assembly    asmCurrent = Assembly.GetExecutingAssembly();

            AssemblyDetail details = new AssemblyDetail(asmCurrent);

            dialog.ProgramName = details.Product;
            dialog.Version     = details.ProductVersion;
            dialog.Comments    = details.Description;
            dialog.Authors     = new string[] { "Amy Nagle" };
            dialog.Website     = "https://github.com/kabili207/zoragen-gtk";
            dialog.Copyright   = details.Copyright;
            dialog.Logo        = Gdk.Pixbuf.LoadFromResource("Zyrenth.ZoraGen.GtkUI.Farore.ico");
            dialog.Icon        = Gdk.Pixbuf.LoadFromResource("Zyrenth.ZoraGen.GtkUI.Farore.ico");
            dialog.Run();
            dialog.Destroy();
        }
Ejemplo n.º 33
0
 protected void OnInfoActionActivated(object sender, EventArgs e)
 {
     Gtk.AboutDialog about = new AboutDialog();
     about.ProgramName       = "Secretaría Electrial";
     about.Authors           = new string[] { "Rafael Bailón-Ruiz <*****@*****.**>" };
     about.TranslatorCredits = "English:\n\tRafael Bailón-Ruiz <*****@*****.**>\nEspañol:\n\tRafael Bailón-Ruiz <*****@*****.**>\nFrançais:\n\tRafael Bailón-Ruiz <*****@*****.**>";
     about.Copyright         = "Copyright © 2013-2014 Asociación Electrial";
     about.WebsiteLabel      = "http://www.ugr.es/~electrial";
     about.Version           = "1.0.0";
     about.Icon         = programIcon;
     about.Logo         = programIcon;
     about.License      = "This program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n";
     about.Modal        = true;
     about.TransientFor = this;
     if ((ResponseType)about.Run() == ResponseType.Cancel)
     {
     }
     about.Destroy();
 }
Ejemplo n.º 34
0
    protected void OnBtnAutorsClicked(object sender, System.EventArgs e)
    {
        // Create a new About dialog
        AboutDialog about = new AboutDialog();

        string[] names = { "Siof", "Lukaasm" };

        // Change the Dialog's properties to the appropriate values.
        about.ProgramName = "MonoToD";
        about.Authors     = names;
        about.Website     = "http://wow.hellground.pl";
        about.Comments    = "Linuxowy minimalistyczny launcher serwera Theatre of Dreams napisany w C# z użyciem Mono oraz GTK#";

        // Show the Dialog and pass it control
        about.Run();

        // Destroy the dialog
        about.Destroy();
    }
Ejemplo n.º 35
0
    protected void MenuHelpAbout(object sender, EventArgs e)
    {
        var ico   = new Gdk.Pixbuf("GAF128.ico");
        var about = new AboutDialog();

        about.Title        = "About";
        about.HasSeparator = true;
        about.License      = _ga.Licence;    //TODO: this could come from the UI Assembly if different from GAF.Api
        about.Logo         = ico;
        about.Icon         = ico;
        about.Version      = GAF.LabGtk.Info.GetFileVersionInfo().FileVersion;
        about.ProgramName  = GAF.LabGtk.Info.GetFileVersionInfo().ProductName;
        about.Comments     = GAF.LabGtk.Info.GetFileVersionInfo().Comments;
        about.Copyright    = GAF.LabGtk.Info.GetFileVersionInfo().LegalCopyright;
        about.Authors      = new string [] { GAF.LabGtk.Info.GetFileVersionInfo().CompanyName };

        about.Run();
        about.Destroy();
    }
Ejemplo n.º 36
0
        /// <summary>
        /// Shows about window.
        /// </summary>
        public static void Show()
        {
            AboutDialog about = new AboutDialog();
            Assembly    asm   = Assembly.GetExecutingAssembly();
            Pixbuf      icon  = null;

            try
            {
                icon = IconTheme.Default.LoadIcon("glippy", 128, Gtk.IconLookupFlags.GenericFallback);
            }
            catch (System.Exception ex)
            {
                Core.Tools.PrintInfo(ex, typeof(AboutWindow));
            }

            about.ProgramName       = Name;
            about.Version           = Core.EnvironmentVariables.Version;
            about.Comments          = Description;
            about.Copyright         = (asm.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false)[0] as AssemblyCopyrightAttribute).Copyright;
            about.Website           = "https://launchpad.net/glippy";
            about.Authors           = authors;
            about.Artists           = artists;
            about.License           = license;
            about.TranslatorCredits = translators;
            about.Icon = icon;
            about.Logo = IconTheme.Default.LoadIcon("glippy", 48, Gtk.IconLookupFlags.GenericFallback);
            about.Run();

            if (icon != null)
            {
                icon.Dispose();
            }

            if (about.Logo != null)
            {
                about.Logo.Dispose();
            }

            about.Destroy();
            about.Dispose();
        }
Ejemplo n.º 37
0
    protected void OnAboutActionActivated(object sender, EventArgs e)
    {
        AboutDialog a = new AboutDialog();
        a.Title = "Sobre o bCHIP8";
        a.ProgramName = "bCHIP8";
        a.Comments =
        @"Este pequeno emulador foi desenvolvido
        na expectativa de consolidar os conhecimentos básicos
        sobre o mundo da emulação e ter a oportunidade de
        reviver softwares e jogos desenvolvidos no passado.

        A plataforma CHIP8 foi criada para que os jogos fossem
        desenvolvidos mais facilmente, numa plataforma de
        senvolvimento não tão complexa.";

        a.Copyright = @"Desenvolvido por Bruno Costa de Morais, 2013";
        a.Website = "mailto:[email protected]";
        a.LogoIconName = "gtk-about";
        a.Run();
        a.Destroy();
    }
Ejemplo n.º 38
0
/*****************************OTHER METHODS***********************************/
	protected void OnAbout (object sender, System.EventArgs e)
	{
		AboutDialog about = new AboutDialog();
		about .Copyright = copyright ;
		about .Website = website ;
		about .License = "Nexth is free software; you can redistribute it and/or modify it\nunder the terms of the GNU General Public License as published \nby the Free Software Foundation; either version 3 of the License, \nor (at your option) any later version.\n\nNexth t is made in the hope that it will be useful, \nbut WITHOUT ANY WARRANTY; without even the implied warranty of \nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  \nSee the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License \nalong with this program.  If not, see <http://www.gnu.org/licenses/>.";
		about .Version = nversion ;
		about .Run ();
		about .Destroy ();
	}
Ejemplo n.º 39
0
    /**
     * About Dialog opens to display information about the application
     */
    protected void OnAboutActionActivated(object sender, System.EventArgs e)
    {
        AboutDialog about = new AboutDialog();

        about.ProgramName = "Screenary";
        about.Version = "1.0.0";
        about.Comments = "A screencasting application for Ubuntu";
        about.Authors = new string [] {"Marc Andre", "Hai-Long", "Gina", "Terri-Anne", "Marwan"};
        about.Website = "http://www.screenary.com/";

        about.Run();
        about.Destroy();
    }
Ejemplo n.º 40
0
        private void About_Activated(object sender, EventArgs e)
        {
            AboutDialog dlg = new AboutDialog ();

            try {
                dlg.Run ();
            } finally {
                dlg.Destroy ();
            }
        }
Ejemplo n.º 41
0
	protected void OnRun (object sender, System.EventArgs e)
	{
		string commback = Command .Text;
		string comtext; //Cometex is the command that UI gates
		comtext = Command .Text .ToLower();
		int worc = 0; //To show the command's kind
		Command .Text = "";
		if (comtext == "about") //About Command
		{
		AboutDialog About = new AboutDialog ();
		About .Version = "1.0.1";
		About .Copyright = "Copyright 2012 ®Pouya Animation Foundation, Inc.";
		About .Website = "www.thepa.mx/nexth";
		About .License = "Nexth is free software; you can redistribute it and/or modify it\nunder the terms of the GNU General Public License as published \nby the Free Software Foundation; either version 3 of the License, \nor (at your option) any later version.\n\nNexth t is made in the hope that it will be useful, \nbut WITHOUT ANY WARRANTY; without even the implied warranty of \nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  \nSee the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License \nalong with this program.  If not, see <http://www.gnu.org/licenses/>.";
		About .Version = nversion ;
		About .Run ();
		About .Destroy ();
		}
		else if (comtext == "p1") // p1 > make panel 2 full size
		{
		    vpaned2 .Position = vpaned2 .MaxPosition ;
		}
		else if (comtext == "p2") // p2 > make panel 1 full siz
		{
			vpaned2 .Position = vpaned2 .MinPosition ;
		}
		else if (comtext == "exit") //exit > quit from application
		{
			goexit ();
		}
		else if (comtext == "ps") //ps > to make panel1 and panel 2 half size
		{
			vpaned2 .Position = vpaned2 .MaxPosition/2 ;
		}
		else if (comtext == "1c") //1c > to clear panel 1
		{
			panel1 .Buffer.Text = "";
		}
		else if (comtext == "2c") //2c > to clear panel 2
		{
			panel2 .Buffer.Text = "";
		}
		else if (comtext == "history") //commanding history
		{
			vclose ();
			vs.Show ();
			vhistory .Show ();
		}
		else if (comtext.StartsWith ("e1 ")) //echo command for p1
		{
			worc = 1;
			string echoword = Nexear .ttools .ts (commback , "e1 ");
			panel1 .Buffer .Text = panel1 .Buffer .Text + "\n" + echoword;
		}
		else if (comtext.StartsWith ("e2 ")) //echo command for p2
		{
			worc = 2;
			string echoword = Nexear .ttools .ts (commback , "e2 ");
			panel2 .Buffer .Text = panel2 .Buffer .Text + "\n" + echoword;
		}
		else if (comtext == "m21") //to move texts from p1 to p2
		{
			panel1 .Buffer .Text = panel2 .Buffer .Text ;
		}
		else if (comtext == "m12") //to move texts from p2 to p1
		{
			panel2 .Buffer .Text = panel1 .Buffer .Text ;
		}
		else if (comtext == "mm") //to change texts
		{
			string pan1back = panel2 .Buffer .Text ;
			panel2 .Buffer .Text = panel1 .Buffer .Text ;
			panel1 .Buffer .Text = pan1back ;
		}
		else if (comtext == "wma") // to maximaize screen
		{
			Maximize ();
		}
		else if (comtext == "e") //to exit
		{
			goexit ();
		}
		//KARY COMMAND!
		else if (comtext == "kary")
		{
			vclose ();
			vkary .Show ();
			vs.Show ();
		}
		else if (comtext == "pouya")
		{
			vclose ();
			vkary .Show ();
			vs.Show ();
		}
		else if (comtext == "pouya kary")
		{
			vclose ();
			vkary .Show ();
			vs.Show ();
		}
		else if (comtext == "replace -e") //To exit from replace
		{
			vclose ();
			ReplaceName.Text = "";
			ReplaceWith .Text = "";
			ReplacePanelNo .Active = 0;
		}
		else if (comtext == "replace") //Replace > to open replace page
		{
			vclose ();
			vreplace .Show ();
			vs.Show ();
		}
		else if (commback.StartsWith ("replace ")) //Replace {text}, to input {text} as first text
		{
			ReplaceName .Text = Nexear .ttools .ts (commback  , "replace ");
			vclose ();
			vreplace .Show ();
			vs.Show ();
		}
		else if (comtext == "help") // Help > to show help page
		{
			vclose ();
			vHelpCommand .Show ();
			vs.Show ();
		}
		else if (comtext == "history -c") //to close history
		{
			lhistory.Text = "";
		}
		else if (comtext == "history -e")
		{
			vclose ();
		}
		else if (comtext == "help -e")
		{
			vclose ();
		}
		else if (commback .StartsWith ("rn1 "))
		{
			p1name  = Nexear .ttools .ts (commback , "rn1 ");
		}
		else if (commback .StartsWith ("rn2 "))
		{
			p2name  = Nexear .ttools .ts (commback , "rn2 ");
		}
		else if (comtext == "")
		{}
		else if (commback .StartsWith ("open1 "))
		{
			string filewhere = Nexear .ttools .ts (commback , "open1 ");
			if (File .Exists (filewhere ))
			{
				panel1 .Buffer .Text = openpanelto (filewhere );
			}
			else
			{
				errorscreen ("File dose not exists","005");
			}
		}
		else if (commback .StartsWith ("open2 "))
		{
			string filewhere = Nexear .ttools .ts (commback , "open2 ");
			if (File .Exists (filewhere ))
			{
				panel1 .Buffer .Text = openpanelto (filewhere );
			}
			else
			{
				errorscreen ("File dose not exists","005");
			}
		}
		else if (commback .StartsWith ("import "))
		{
			string filetoimport = Nexear .ttools .ts (commback ,"import ");
			if (File .Exists (filetoimport ))
			{
				nexearopen (filetoimport );
			}
			else
			{
				errorscreen ("File dose not exsits","011");
			}
		}
		else if (comtext == ":d")
		{
			panel1 .Buffer .Text = panel1 .Buffer .Text + "😆";
			worc = 4;
			}
		else if (comtext == "2:d")
		{
			panel2 .Buffer .Text = panel2 .Buffer .Text + "😆";
			worc = 4;
		}
		else if (comtext == ":)")
		{
			panel1 .Buffer .Text = panel1 .Buffer .Text + "😌";
			worc = 4;
		}
		else if (comtext == "2:)")
		{
			panel2 .Buffer .Text = panel2 .Buffer .Text + "😌";
			worc = 4;
		}
		else if (comtext == ";)")
		{
			panel1 .Buffer .Text = panel1 .Buffer .Text + "😉";
			worc = 4;
		}
		else if (comtext == "2;)")
		{
			panel2 .Buffer .Text = panel2 .Buffer .Text + "😉";
			worc = 4;
		}
		else if (comtext == ":|")
		{
			panel1 .Buffer .Text = panel1 .Buffer .Text + "😐";
			worc = 4;
		}
		else if (comtext == "2:|")
		{
			panel2 .Buffer .Text = panel2 .Buffer .Text + "😐";
			worc = 4;
		}
		else if (comtext == ":s")
		{
			panel1 .Buffer .Text = panel1 .Buffer .Text + "😖";
			worc = 4;
		}
		else if (comtext == "2:s")
		{
			panel2 .Buffer .Text = panel2 .Buffer .Text + "😖";
			worc = 4;
		}
		else if (comtext == ":(")
		{
			panel1 .Buffer .Text = panel1 .Buffer .Text + "😞";
			worc = 4;
		}
		else if (comtext == "2:(")
		{
			panel2 .Buffer .Text = panel1 .Buffer .Text + "😞";
			worc = 4;
		}
		else if (comtext == ":p")
		{
			panel1 .Buffer .Text = panel1 .Buffer .Text + "😏";
			worc = 4;
		}
		else if (comtext == "2:p")
		{
			panel2 .Buffer .Text = panel1 .Buffer .Text + "😏";
			worc = 4;
		}
		else //So if it was no ant command it will be echo in Panel 1
		{
			worc = 1;
			panel1 .Buffer .Text = panel1 .Buffer .Text + "\n" + commback ;
		}
		if (comtext == "")
		{}
		else if (worc == 1)
		{ 
			//If command dosent exist or was e1 the text will apper in
			//panel1 we just show that kind of commands in a special
			//way this is for e1 or nothing
			if (commback .StartsWith("e1 "))
			{
				commback = Nexear .ttools .ts (commback , "e1 ");
			}
			lhistory .Text  = lhistory .Text  + "\n❶→“"+ commback + "”";
	 		if (lhistory.Text .StartsWith ("  [⌂ "))
			{
				lhistory .Text = "  "+lhistory .Text .Trim ();
			}
			else
			{
			lhistory .Text = lhistory .Text .Trim ();
			}
		}
		else if (worc == 2)
		{
			commback = Nexear .ttools .ts (commback , "e2 ");
			lhistory .Text  = lhistory .Text  + "\n❷→“"+ commback + "”";
	 		lhistory .Text = lhistory .Text.TrimStart ();
		}
		else if (worc == 4)
		{
			lhistory .Text  = lhistory .Text  + "\n😌😆😉😐😖😞😘";
	 		lhistory .Text = lhistory .Text.TrimStart ();
		}
		else
		{
			if (comtext == "history -c")
			{
				lhistory .Text = "";
			}
			else
			{
			lhistory .Text  = lhistory .Text  + "\n[⌂ "+ commback+"]" ;
	 		lhistory .Text = lhistory .Text.TrimStart ();
			}
		}
	}
Ejemplo n.º 42
0
    protected virtual void OnAboutActionActivated(object sender, System.EventArgs e)
    {
        // Create a new About dialog
        AboutDialog about = new AboutDialog ();

        // Change the Dialog's properties to the appropriate values.
        about.ProgramName = "pacinfo";
        about.Version = "0.1";
        about.Authors = new string[] { "Daniel Isenmann <*****@*****.**>" };
        about.WrapLicense = true;
        about.License = "This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program.  If not, see <http://www.gnu.org/licenses/>.";

        // Show the Dialog and pass it control
        about.Run ();

        // Destroy the dialog
        about.Destroy ();
    }
Ejemplo n.º 43
0
 protected virtual void OnAboutActionActivated(object sender, System.EventArgs e)
 {
     AboutDialog aboutus = new AboutDialog ();
                 aboutus.Run ();
                 aboutus.Destroy ();
 }
Ejemplo n.º 44
0
    protected void OnAbout(object sender, System.EventArgs e)
    {
        AboutDialog dialog = new AboutDialog ();

        dialog.ProgramName = "Password Usher";
        dialog.Version = "0.0.1";
        dialog.Comments = "A password manager utility";
        dialog.Authors = new string [] {"Chirdeep Tomar"};
        dialog.Website = "https://github.com/chirdeeptomar/password-usher";

        dialog.Run ();
        dialog.Destroy ();
    }
Ejemplo n.º 45
0
    protected void OnAboutActionActivated(object sender, System.EventArgs e)
    {
        Gtk.AboutDialog dialog = new AboutDialog();

        dialog.ProgramName = "snowpack";
        dialog.Version = "0.1.0";
        dialog.Comments = "A cross-platform Amazon Glacier Client";
        dialog.Authors = new string [] {
            "Nathan Wittstock, Far Dog LLC", "",
            "Using the AWS SDK\n" +
            "\t©2009–2012 Amazon Technologies, Inc.\n" +
            "\tReleased under the Apache 2.0 License" };
        dialog.Copyright = "©2012 Far Dog LLC";
        dialog.License =
            "Copyright 2012 Far Dog LLC or its affiliates. All Rights Reserved.\n\n" +
            "Licensed under the GNU General Public License, Version 3.0 (the \"License\").\n" +
            "You may not use this file except in compliance with the License.\n" +
            "A copy of the License is located at\n\n" +
            "http://www.gnu.org/licenses/gpl-3.0.txt\n\n" +
            "or in the \"gpl-3.0\" file accompanying this file. This file is distributed\n" +
            "on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either\n" +
            "express or implied. See the License for the specific language governing\n" +
            "permissions and limitations under the License.";
        dialog.Website = "http://fardogllc.com/";

        dialog.Run ();
        dialog.Destroy ();
    }
Ejemplo n.º 46
0
    protected virtual void About_OnActivated(object sender, System.EventArgs e)
    {
        AboutDialog ab = new AboutDialog();

          try
          {
         ab.ProgramName = AppName;
         ab.Copyright = "Copyright \u00a9 2013 Firefly Software";
         ab.Version = string.Empty;
         ab.Comments = "Version: " + Version;

         try
         {
            ab.Logo = null;
         }

         catch(Exception Mye)
         {
            DispMesg(Mye.Message);
         }

         ab.Run();
          }

          finally
          {
         ab.Destroy();
          }
    }
Ejemplo n.º 47
0
    void ShowInfoDialog()
    {
        var about = new AboutDialog { Authors = new[] { "Benjamin Klüglein <*****@*****.**>" }, ProgramName = Catalog.GetString ("Directory History"), License = LicenseText, Comments = Catalog.GetString ("A program to keep a simple history of your files."), Title = Catalog.GetString ("About Directory History") };

        about.Run ();
        about.Destroy ();
    }
Ejemplo n.º 48
0
 protected void OnMnHelpAboutActivated(object sender, EventArgs e)
 {
     AboutDialog a = new AboutDialog ();
     a.Run ();
     a.Destroy ();
 }
Ejemplo n.º 49
0
    protected void OnAboutActionActivated(object sender, EventArgs e)
    {
        AboutDialog dialog = new AboutDialog ();
        dialog.ProgramName = "QS: Мастерская автостекла";

        Version version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
        dialog.Version = String.Format("{0}.{1}.{2}", version.Major, version.Minor, version.Build);

        dialog.Logo = Gdk.Pixbuf.LoadFromResource ("CarGlass.icons.logo.png");

        dialog.Comments = "Регистрация заказов в мастерской автостекл." +
            "\nРазработана на MonoDevelop с использованием открытых технологий Mono, GTK#, MySQL." +
            "\nТелефон тех. поддержки +7(812)575-79-44";

        dialog.Copyright = "Quality Solution 2014";

        dialog.Authors = new string [] {"Ганьков Андрей <*****@*****.**>"};

        dialog.Website = "http://www.qsolution.ru/";

        dialog.Run ();
        dialog.Destroy();
    }
Ejemplo n.º 50
0
    protected void OnAboutActionActivated(object sender, System.EventArgs e)
    {
        AboutDialog about = new AboutDialog();

        /* Change the Dialog's properties to the appropriate values. */
        about.ProgramName = "Screenary";
        about.Version = "1.0.0";
        about.Comments = "A screencasting application for Ubuntu";
        about.Authors = new string [] {"Marc Andre", "Hai-Long", "Gina", "Terri-Anne", "Marwan"};
        about.Website = "http://www.screenary.com/";

        /* Show the dialog and pass it control */
        about.Run();

        /* Destroy the dialog */
        about.Destroy();
    }
Ejemplo n.º 51
0
    protected void OnInfoActionActivated(object sender, EventArgs e)
    {
        Gtk.AboutDialog about = new AboutDialog();
        about.ProgramName = "Secretaría Electrial";
        about.Authors = new string[]{ "Rafael Bailón-Ruiz <*****@*****.**>" };
        about.TranslatorCredits = "English:\n\tRafael Bailón-Ruiz <*****@*****.**>\nEspañol:\n\tRafael Bailón-Ruiz <*****@*****.**>\nFrançais:\n\tRafael Bailón-Ruiz <*****@*****.**>";
        about.Copyright = "Copyright © 2013-2014 Asociación Electrial";
        about.WebsiteLabel = "http://www.ugr.es/~electrial";
        about.Version = "1.0.0";
        about.Icon = programIcon;
        about.Logo = programIcon;
        about.License = "This program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see <http://www.gnu.org/licenses/>.\n";
        about.Modal = true;
        about.TransientFor = this;
        if ((ResponseType)about.Run() == ResponseType.Cancel)
        {

        }
        about.Destroy();
    }
Ejemplo n.º 52
0
    void OnAbout(object sender, System.EventArgs e)
    {
        const string LicensePath = "COPYING.txt";

        System.Version version = System.Reflection.Assembly.GetExecutingAssembly ().GetName ().Version;
        string appVersion = string.Format ("{0}.{1}.{2}", version.Major.ToString (), version.Minor.ToString (), version.Build.ToString ());

        AboutDialog about = new AboutDialog { ProgramName = appName, Version = appVersion,
            Copyright = "© 2011 SubaruDieselCrew",
            Authors = new string[] { "subdiesel\thttp://subdiesel.wordpress.com",
                "\nThanks for any feedback!",
                "\nEXTERNAL BINARY DEPENDENCIES:",
                "Gtk#\thttp://mono-project.com/GtkSharp",
                "NPlot\thttp://netcontrols.org/nplot/wiki/",
                "gnuplot\thttp://www.gnuplot.info/",
                },
            WrapLicense = true };
        about.Icon = about.Logo = MainClass.AppIcon;
        about.Comments = "License: GPL v3";

        try {
            about.License = System.IO.File.ReadAllText (LicensePath);
        } catch (System.IO.FileNotFoundException) {
            about.License = "Could not load license file '" + LicensePath + "'.\nGo to http://www.fsf.org";
        }

        about.Run ();
        about.Destroy ();
    }
 //when about is is pressed
 protected void aboutUs(object sender, EventArgs e)
 {
     AboutDialog about = new AboutDialog ();
     about.ProgramName = "ANG GANDA NI MAAM KAT LOLTERPRETER KEK";
     about.Version = "1.0";
     about.Copyright = "(c) OutlawTechnoPsychobitches : Julius Jireh B. Vega, Aron John S. Vibar, Maru Gabriel S. Baul";
     about.Comments = @"LOLCode Interpreter for creating, editing, and executing LOLCode v1.2 programs";
     try{
         about.Logo = new Gdk.Pixbuf("../../logo.png");
     }
     catch(Exception ){}
     about.Run();
     about.Destroy();
 }
Ejemplo n.º 54
0
    protected void OnAbout(object sender, EventArgs e)
    {
        AboutDialog ad = new AboutDialog();

        ad.WindowPosition = WindowPosition.CenterAlways;
        ad.Title = "LunaLua Module Manager";
        ad.ProgramName = "LunaLua Module Manager";
        ad.Version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
        ad.Icon = Image.LoadFromResource("Gtktester.Icons.PNG.256.png").Pixbuf;
        ad.Logo = ad.Icon;
        ad.Authors = new string[]
            {
                "Mike Santiago", "\n--Special Thanks to the Beta Testers :)--", "Xerx/Blank - Windows 8.1\nMarinite - Windows 7\nEnjl - Windows 7\nglitch4\nbossedit8",
                "\n\nSpecial Thank you to Wohlstand for hosting LunaLua" +
                "\nSpecial Thank you to Kevsoft for developing LunaLua",
                "\n\n--3rd Party Libraries Used--",
                "Json.NET by Newtonsoft - http://www.newtonsoft.com/json\n  Licensed under the MIT License (MIT)",
                "MonoDevelop.Core by Xamarin/Mono - http://www.github.com/mono/monodevelop"
            };
        ad.Website = "http://www.github.com/Luigifan/LuaScriptsManager";
        ad.WebsiteLabel = "GitHub Repository";
        ad.License = @"Copyright (C) 2015 Mike Santiago
        Released under the MIT Public License

        Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
        The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

        THE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.";
        ad.WrapLicense = true;

        ad.Run();
        ad.Destroy();
    }
Ejemplo n.º 55
0
    static void OnAboutItemActivate(object o, EventArgs args)
    {
        AboutDialog dialog = new AboutDialog ();

        dialog.Logo = icon;
        dialog.ProgramName = "Encodroyd";
        dialog.Version = "0.0.1.0";
        dialog.Comments = "A video encoding software for Android phones";
        dialog.Copyright = "Copyright 2009 Florian Adamsky";
        dialog.Website = "http://cit.github.com/Encodroyd/";
        dialog.WebsiteLabel = "Visit Homepage";

        dialog.Run ();
        dialog.Destroy();
    }
Ejemplo n.º 56
0
 protected void save(object sender, EventArgs e)
 {
     if (ready == true) {
         AboutDialog about = new AboutDialog ();
         about.ProgramName = "first save as!";
         about.Run ();
         about.Destroy ();
     }
 }
Ejemplo n.º 57
0
    protected void Sobre(object sender, System.EventArgs e)
    {
        bool estavaPausado = pausado;

        pausado = true;
        PausarJogo();
        AboutDialog sobre = new AboutDialog();
            sobre.Title = "Sobre o bPong";
            sobre.ProgramName = "bPong";
            sobre.Version = "1.0";
            sobre.Copyright = @"Desenvolvido por Bruno Costa de Morais © 2012";
            sobre.Website = @"https://github.com/brunocmorais";
            sobre.DestroyWithParent = true;

            sobre.Comments = @"
        Este é um pequeno remake de um dos maiores
        clássicos do mundo dos videogames, que é o
        emblemático Pong. Foi lançado pela Atari no
        último dia do ano de 1972 e até hoje é lem-
        brado pelos gamers mais saudosistas.

        Foi desenvolvido com a linguagem C#, sob o uso
        do framework Mono e da biblioteca gráfica GTK#,
        em conjunto com a biblioteca de desenho Cairo.

        Licenciado sob a GPL 3.";
            sobre.Resizable = false;
            sobre.Run();
            sobre.Destroy();
            pausado = estavaPausado;
            PausarJogo();
    }
Ejemplo n.º 58
0
    void OnAbout(object sender, System.EventArgs e)
    {
        AboutDialog dialog = new AboutDialog {
            ProgramName = MainClass.AppName,
            Version = MainClass.AppVersion,
            Copyright = MainClass.AppCopyright,
            Comments = MainClass.AppDescription,
            Authors = new string[] { "subdiesel\thttp://subdiesel.wordpress.com/",
                "\nThanks for any feedback!",
                "\nEXTERNAL BINARY DEPENDENCIES:",
                "Gtk#\thttp://mono-project.com/GtkSharp",
                "Florence\thttp://github.com/scottstephens/Florence",
                "gnuplot\thttp://www.gnuplot.info/",
            },
            WrapLicense = true,
        };

        dialog.Icon = dialog.Logo = MainClass.AppIcon;

        string licensePath = MainClass.LicensePath;
        try {
            dialog.License = System.IO.File.ReadAllText (licensePath);
        } catch (System.IO.FileNotFoundException) {
            dialog.License = "Could not load license file '" + licensePath + "'.\nGo to http://www.fsf.org";
        }

        // default works fine on Linux, need extra work on Windows it seems...
        //AboutDialog.SetUrlHook (HandleAboutDialogActivateLinkFunc);

        dialog.Run ();
        dialog.Destroy ();
    }
Ejemplo n.º 59
0
 protected void OnAboutActionActivated (object sender, EventArgs e)
 {
     var adialog = new AboutDialog ();
     adialog.TransientFor = this;
     adialog.Logo = new Gdk.Pixbuf(null, "MonoGame.Tools.Pipeline.App.ico");
     adialog.ProgramName = AssemblyAttributes.AssemblyProduct;
     adialog.Version = AssemblyAttributes.AssemblyVersion;
     adialog.Comments = AssemblyAttributes.AssemblyDescription;
     adialog.Copyright = AssemblyAttributes.AssemblyCopyright;
     adialog.Website = "http://www.monogame.net/";
     adialog.WebsiteLabel = "MonoGame Website";
     adialog.Run ();
     adialog.Destroy ();
 }
Ejemplo n.º 60
0
        private void PopulateActionGroups()
        {
            normal_actions.Add (new ActionEntry [] {
                new ActionEntry ("GameMenu", null, "_Game", null, null, null),
                new ActionEntry ("New", Stock.New, "_New",
                    "<control>N", null, null),
                new ActionEntry ("Open", Stock.Open, "_Open",
                    "<Control>O", null, null),
                new ActionEntry ("Quit", Stock.Quit, "_Quit",
                    "<control>Q", null, delegate { Game.Instance.Quit (); }),

                new ActionEntry ("EditMenu", null, "_Edit", null, null, null),
                new ActionEntry ("Preferences", Stock.Preferences,
                    "_Preferences", null, null, delegate {
                        new PreferenceDialog ();
                    }),

                new ActionEntry ("ViewMenu", null, "_View", null, null, null),
                new ActionEntry ("ZoomIn", Stock.ZoomIn, "Zoom _In",
                    Accelerator.Name ((uint) Key.plus, ModifierType.ControlMask),
                    null, null),
                new ActionEntry ("ZoomOut", Stock.ZoomOut, "Zoom _Out",
                    Accelerator.Name ((uint) Key.minus, ModifierType.ControlMask),
                    null, null),
                new ActionEntry ("NormalSize", Stock.Zoom100, "_Normal Size",
                    "<control>0", null, null),
                new ActionEntry ("CharacterInformation", null, "_Character Information",
                    "<control>c", null, delegate {
                        new CharacterDialog ();
                    }),

                new ActionEntry ("HelpMenu", null, "_Help", null, null, null),
                new ActionEntry ("About", Stock.About, "_About",
                    null, null, delegate {
                        Dialog dialog = new AboutDialog ();
                        dialog.Run ();
                        dialog.Destroy ();
                    }),
            });

            toggle_actions.Add (new ToggleActionEntry []
            {
                new ToggleActionEntry ("ShowGridLines", null, "Show _Gridlines",
                    null, null, null, false),
                new ToggleActionEntry ("ShowMessages", null, "Show _Messages",
                    "<control>m", null, null, true),
                new ToggleActionEntry ("FullScreen", null, "Full Screen",
                    "F11", null, null, false)
            });

            map_actions.Add (new ActionEntry []
            {
                new ActionEntry ("MoveHere", null, "_Move Here",
                    null, null, null),
                new ActionEntry ("Target", null, "_Target",
                    null, null, null),
                new ActionEntry ("Examine", null, "_Examine",
                    null, null, null)
            });

            hero_actions.Add (new ActionEntry []
            {
                new ActionEntry ("MoveNorth", null, "Move _North",
                    null, null, null),
                new ActionEntry ("MoveSouth", null, "Move _South",
                    null, null, null),
                new ActionEntry ("MoveWest", null, "Move _West",
                    null, null, null),
                new ActionEntry ("MoveEast", null, "Move _East",
                    null, null, null),
                new ActionEntry ("MoveNorthEast", null, "Move North East",
                    null, null, null),
                new ActionEntry ("MoveSouthEast", null, "Move South East",
                    null, null, null),
                new ActionEntry ("MoveNorthWest", null, "Move North West",
                    null, null, null),
                new ActionEntry ("MoveSouthWest", null, "Move South West",
                    null, null, null),

                new ActionEntry ("DoNothing", null, "Do Nothing",
                    null, null, null),

                new ActionEntry ("PickUp", null, "Pick Up Item",
                    null, null, null)
            });

            ui.InsertActionGroup (normal_actions, 0);
            ui.InsertActionGroup (toggle_actions, 0);
            ui.InsertActionGroup (map_actions, 0);
            ui.InsertActionGroup (hero_actions, 0);
        }