Esempio n. 1
0
        /// <summary>
        /// Function that creates the dialog containing information about the program.
        /// </summary>
        /// <returns>AboutDialog instance</returns>
        private AboutDialog CreateAboutDialog()
        {
            AboutDialog aboutDialog = new AboutDialog();

            aboutDialog.Title   = "About Process Watch";
            aboutDialog.Authors = new[]
            {
                "Wojciech Wesołowski",
                "Marek Krzysztofiak"
            };
            aboutDialog.Copyright   = "Copyright \xa9 2021 Wojciech Wesołowski";
            aboutDialog.Version     = "v.1.0";
            aboutDialog.ProgramName = "Process Watch";
            aboutDialog.Response   += (o, args) =>
            {
                switch (args.ResponseId)
                {
                case ResponseType.DeleteEvent:
                    aboutDialog.Hide();
                    break;

                case ResponseType.Cancel:
                    aboutDialog.Hide();
                    break;
                }
            };
            aboutDialog.Comments = "Process Watch is a simple and intuitive process manager\n" +
                                   "that allows to inspect all running processes and eventually kill them.";
            aboutDialog.Logo         = new Pixbuf("icons/processIconSmall.png");
            aboutDialog.TransientFor = _window;

            return(aboutDialog);
        }
Esempio n. 2
0
 private static void Timer_Tick(object sender, EventArgs e)
 {
     Timer.Enabled = false;
     Timer.Dispose();
     Timer = null;
     AboutDialog.Hide();
 }
Esempio n. 3
0
        private void AboutButton_Clicked(object sender, EventArgs e)
        {
            AboutDialog about = (AboutDialog)builder.GetObject("AboutDialog");

            about.Run();
            about.Hide();
        }
Esempio n. 4
0
    protected virtual void OnAboutActivated(object sender, System.EventArgs e)
    {
        about           = new AboutDialog();
        about.Version   = "0.6";
        about.Copyright = "Copyright 2011 - Seb Clarke";
        about.License   = "GPLv3 goes here!";
        about.Comments  = "Special thanks to my 3d guru, Iain C, of godlike fame";

        about.Run();
        about.Hide();
    }
Esempio n. 5
0
 private static void Pulse_Tick(object sender, EventArgs e)
 {
     CanPaste = Clipboard.ContainsData(DataFormat);
     foreach (var worldCon in WorldCons)
     {
         worldCon.OnPulse();
     }
     if (_pulseCount < 10)
     {
         _pulseCount++;
     }
     else
     {
         AboutDialog.Hide();
     }
 }
Esempio n. 6
0
        private static void AboutActivated(object sender, EventArgs e)
        {
            var dialog = new AboutDialog
            {
                TransientFor = Win,
                ProgramName  = "SiK GUI Gtk",
                Version      = "1.0.0",
                Comments     = "A Gtk-based GUI application for SiK Link.",
                LogoIconName = "system-run-symbolic",
                License      = "The application is licensed under LGPL.",
                Website      = "https://github.com/justas-/SiKLink",
                WebsiteLabel = "SiK Link and SiK GUI @ GitHub"
            };

            dialog.Run();
            dialog.Hide();
        }
Esempio n. 7
0
        private static void AboutActivated(object sender, EventArgs e)
        {
            var dialog = new AboutDialog
            {
                TransientFor = Win,
                ProgramName  = "GtkSharp Sample Application",
                Version      = "1.0.0.0",
                Comments     = "A sample application for the GtkSharp project.",
                LogoIconName = "system-run-symbolic",
                License      = "This sample application is licensed under public domain.",
                Website      = "https://www.github.com/GtkSharp/GtkSharp",
                WebsiteLabel = "GtkSharp Website"
            };

            dialog.Run();
            dialog.Hide();
        }
Esempio n. 8
0
        // Help -> About
        void OnHelpAbout(object sender, EventArgs args)
        {
            var dlg = new AboutDialog();

            dlg.Title       = "Olishell";
            dlg.ProgramName = "Olishell";
            dlg.WrapLicense = true;
            dlg.Copyright   = "Copyright (C) 2012 Olimex Ltd";
            dlg.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 2 of the License, or (at " +
                "your option) any later version.";

            dlg.Run();
            dlg.Hide();
        }
Esempio n. 9
0
        protected void on_about_toolbutton_clicked(object sender, EventArgs e)
        {
            Assembly assembly = Assembly.GetExecutingAssembly();

            string[]    me = new string[] { "Ronaldo Nascimento <*****@*****.**>" };
            AboutDialog d  = new AboutDialog();

            d.SkipTaskbarHint = true;
            d.Artists         = me;
            d.Authors         = me;
            object[] comments = assembly.GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false);
            d.Comments = ((AssemblyDescriptionAttribute)comments[0]).Description;
            object[] copyright = assembly.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
            d.Copyright   = ((AssemblyCopyrightAttribute)copyright[0]).Copyright;
            d.Documenters = me;
            d.Icon        = Gdk.Pixbuf.LoadFromResource("WebShell.Media.wsh.png");
            d.Logo        = Gdk.Pixbuf.LoadFromResource("WebShell.Media.wsh.png");
            d.License     = @"This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This 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 Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.";
            object[] programname = assembly.GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
            d.ProgramName = ((AssemblyTitleAttribute)programname[0]).Title;
            d.Title       = d.ProgramName;
            //d.TranslatorCredits = me[0];
            d.Version = string.Format("{0}.{1}.{2}.{3}", assembly.GetName().Version.Major, assembly.GetName().Version.Minor,
                                      assembly.GetName().Version.Revision, assembly.GetName().Version.Build);
            d.Website      = "http://battle.sourceforge.net";
            d.WebsiteLabel = d.Website;
            d.Run();
            d.Hide();
            d.Destroy();
        }
Esempio n. 10
0
        private static void on_about_activate(object sender, EventArgs args)
        {
            if (about == null)
            {
                about = new AboutDialog();
            }

            about.ProgramName       = NAME;
            about.Version           = VERSION;
            about.LogoIconName      = "gfax";
            about.Authors           = new string[] { "George Farris <*****@*****.**>" };
            about.Documenters       = new string[] {};
            about.Copyright         = Catalog.GetString("Copyright (C) 2003 George Farris <*****@*****.**>");
            about.Comments          = Catalog.GetString("A Facsimile application for GNOME");
            about.TranslatorCredits = (
                "Johannes Rohr <*****@*****.**> - German\n" +
                "Maris Dembovskis <*****@*****.**> - Latvian\n" +
                "Sasa Ostrouska <*****@*****.**> Italian\n" +
                "Bart Verstraete <*****@*****.**> - Dutch");
            about.Run();
            about.Hide();
        }
Esempio n. 11
0
        void HandleAboutbuttonClicked(object sender, EventArgs e)
        {
            AboutDialog d   = new AboutDialog();
            Assembly    asm = Assembly.GetExecutingAssembly();

            //d.Artists = new string [] {"Ronaldo Nascimento <*****@*****.**>"};
            d.Authors   = new string [] { "Ronaldo Nascimento <*****@*****.**>" };
            d.Copyright = (asm.GetCustomAttributes(
                               typeof(AssemblyCopyrightAttribute), false) [0]
                           as AssemblyCopyrightAttribute).Copyright;
            d.Documenters = new string [] { "Ronaldo Nascimento <*****@*****.**>" };
            d.License     = @"This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 This 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 Lesser General Public License for more details.

 You should have received a copy of the GNU Lesser General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.";
            d.ProgramName = (asm.GetCustomAttributes(
                                 typeof(AssemblyTitleAttribute), false) [0]
                             as AssemblyTitleAttribute).Title;
            d.Title        = "About Adeptus";
            d.Version      = asm.GetName().Version.ToString();
            d.Website      = "http://battle.sourceforge.net";
            d.WebsiteLabel = "http://battle.sourceforge.net";
            d.Response    += delegate(object o, ResponseArgs args) {
                d.Hide();
            };
            d.Logo = Gdk.Pixbuf.LoadFromResource("Adeptus.Gui.adeptus.jpeg");
            d.Run();
        }
Esempio n. 12
0
 private void ShowAboutDialog(object sender, EventArgs e)
 {
     HelpAbout.Run();
     HelpAbout.Hide();
 }
Esempio n. 13
0
    protected virtual void AboutActivatedEvent(object sender, System.EventArgs e)
    {
        AboutDialog AboutBox = new AboutDialog();
        AboutBox.ProgramName = "GtkRegexNet";
        AboutBox.Copyright = "Copyright (c) 2011\nAll rights reserved.";
        AboutBox.License = @"Redistribution and use in source and binary forms, with or without
        modification, are permitted provided that the following conditions are met:
        * Redistributions of source code must retain the above copyright
          notice, this list of conditions and the following disclaimer.
        * Redistributions in binary form must reproduce the above copyright
          notice, this list of conditions and the following disclaimer in the
          documentation and/or other materials provided with the distribution.
        * Neither the name of The Warrent Team nor the
          names of its contributors may be used to endorse or promote products
          derived from this software without specific prior written permission.
        * This software is free for non-commercial use. You may not use this
          software, in whole or in part, in support of any commercial product
          without the express consent of the author.

        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ""AS IS"" AND
        ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
        WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
        DISCLAIMED. IN NO EVENT SHALL THE WARRENT TEAM BE LIABLE FOR ANY
        DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
        (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
        LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
        ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
        (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
        SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
        AboutBox.Authors = new string[] {
            "Marc-Andre Ferland - Madrang"
        };
        AboutBox.Website = @"http://sites.google.com/site/warrentteam/";

        AboutBox.Run();
        AboutBox.Hide();
        AboutBox.Dispose();
    }
Esempio n. 14
0
    protected virtual void OnAboutActivated(object sender, System.EventArgs e)
    {
        about = new AboutDialog();
        about.Version = "0.6";
        about.Copyright = "Copyright 2011 - Seb Clarke";
        about.License = "GPLv3 goes here!";
        about.Comments = "Special thanks to my 3d guru, Iain C, of godlike fame";

        about.Run();
        about.Hide();
    }
Esempio n. 15
0
	protected virtual void doAbout (object sender, System.EventArgs e)
	{
		AboutDialog dialog = new AboutDialog ();
		
		dialog.ProgramName = "Open Cache Manager";
		
		dialog.Icon = this.Icon;
		
		dialog.Version = m_monitor.GetOCMVersion();
		
		dialog.Logo =  new Gdk.Pixbuf ("./icons/scalable/OCMLogo.svg", 96, 96);
		
		dialog.Website = "http://opencachemanage.sourceforge.net/";
		
		//dialog.Comments = (asm.GetCustomAttributes (typeof(AssemblyDescriptionAttribute), false)[0] as AssemblyDescriptionAttribute).Description;
		
		dialog.Copyright = "Copyright Kyle Campbell (c) 2010-2011";
		
		System.IO.StreamReader reader = new System.IO.StreamReader(new System.IO.FileStream("licence/Licence.txt",System.IO.FileMode.Open,System.IO.FileAccess.Read));
		
		dialog.License = reader.ReadToEnd();
		
		reader.Close();
		
		dialog.Authors = new String[] { "Kyle Campbell,Florian Plähn - Programming", "Madelayne DeGrâce - Icons",
			"Harrie Klomp - Dutch Translation" , "Thor Dekov Buur - Danish Translation",
			"Michael Massoth/Florian Plähn/Maik Bischoff - German Translation",
			"Josef Kulhánek - Czech Translation","Vicen - Spanish Translation"};		
		dialog.Run ();
		dialog.Hide();
		
	}