Esempio n. 1
0
 private void phoenixIcon_Click(object sender, EventArgs e)
 {
     using (AboutDialog dlg = new AboutDialog())
     {
         dlg.ShowDialog();
     }
 }
Esempio n. 2
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();
    }
 public void Execute()
 {
     using (var about = new AboutDialog())
     {
         about.ShowDialog ();
     }
 }
Esempio n. 4
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 ();
	}
 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 ();
 }
Esempio n. 6
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 ();
    }
Esempio n. 7
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();
    }
Esempio n. 8
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 ();
    }
Esempio n. 9
0
 public override void CommandClick(string controlID)
 {
     if (controlID == ABOUT_AGS_COMMAND)
     {
         AboutDialog dialog = new AboutDialog();
         dialog.ShowDialog();
         dialog.Dispose();
     }
     else if (controlID == VISIT_AGS_WEBSITE)
     {
         LaunchBrowserAtAGSWebsite();
     }
     else if (controlID == VISIT_AGS_FORUMS)
     {
         LaunchBrowserAtAGSForums();
     }
     else if (controlID == CHECK_FOR_UPDATES)
     {
         CheckForUpdates();
     }
     else if (!File.Exists(_helpFileName))
     {
         _guiController.ShowMessage("The help file '" + _helpFileName + "' is missing. You may need to reinstall AGS.", MessageBoxIcon.Warning);
     }
     else if (controlID == LAUNCH_HELP_COMMAND)
     {
         string keyword = string.Empty;
         if (_guiController.ActivePane != null)
         {
             keyword = _guiController.ActivePane.Control.HelpKeyword;
         }
         LaunchHelp(_helpFileName, HelpNavigator.KeywordIndex, keyword);
     }
     else if (controlID == HELP_CONTENTS_COMMAND)
     {
         Help.ShowHelp(GetHelpParentWindow(), _helpFileName);
     }
     else if (controlID == HELP_INDEX_COMMAND)
     {
         Help.ShowHelpIndex(GetHelpParentWindow(), _helpFileName);
     }
     else if (controlID == CRASH_EDITOR_COMMAND)
     {
         throw new AGSEditorException("Crash test");
     }
 }
Esempio n. 10
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();
    }
Esempio n. 11
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 ();
    }
Esempio n. 12
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();
    }
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
    /**
     * 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();
    }
Esempio n. 15
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 ();
			}
		}
	}
Esempio n. 16
0
        private MenuBar ConstructMenu()
        {
            var quitCommand = new Command {
                MenuText = "Quit", Shortcut = Application.Instance.CommonModifier | Keys.Q
            };

            quitCommand.Executed += (sender, e) => Application.Instance.Quit();

            var aboutCommand = new Command {
                MenuText = "About...", Shortcut = Keys.F1
            };

            aboutCommand.Executed += (sender, e) => AboutDialog.ShowDialog(this);

            var resetSettings = new Command {
                MenuText = "Reset to defaults"
            };

            resetSettings.Executed += async(sender, e) => await ResetSettingsDialog();

            var loadSettings = new Command {
                MenuText = "Load settings...", Shortcut = Application.Instance.CommonModifier | Keys.O
            };

            loadSettings.Executed += async(sender, e) => await LoadSettingsDialog();

            var saveSettingsAs = new Command {
                MenuText = "Save settings as...", Shortcut = Application.Instance.CommonModifier | Keys.Shift | Keys.S
            };

            saveSettingsAs.Executed += async(sender, e) => await SaveSettingsDialog();

            var saveSettings = new Command {
                MenuText = "Save settings", Shortcut = Application.Instance.CommonModifier | Keys.S
            };

            saveSettings.Executed += async(sender, e) => await SaveSettings();

            var applySettings = new Command {
                MenuText = "Apply settings", Shortcut = Application.Instance.CommonModifier | Keys.Enter
            };

            applySettings.Executed += async(sender, e) => await ApplySettings();

            var refreshPresets = new Command {
                MenuText = "Refresh presets"
            };

            refreshPresets.Executed += async(sender, e) => await RefreshPresets();

            var savePreset = new Command {
                MenuText = "Save as preset..."
            };

            savePreset.Executed += async(sender, e) => await SavePresetDialog();

            var detectTablet = new Command {
                MenuText = "Detect tablet", Shortcut = Application.Instance.CommonModifier | Keys.D
            };

            detectTablet.Executed += async(sender, e) => await DetectTablet();

            var showTabletDebugger = new Command {
                MenuText = "Tablet debugger..."
            };

            showTabletDebugger.Executed += (sender, e) => App.Current.DebuggerWindow.Show();

            var deviceStringReader = new Command {
                MenuText = "Device string reader..."
            };

            deviceStringReader.Executed += (sender, e) => App.Current.StringReaderWindow.Show();

            var configurationEditor = new Command {
                MenuText = "Open Configuration Editor...", Shortcut = Application.Instance.CommonModifier | Keys.E
            };

            configurationEditor.Executed += (sender, e) => App.Current.ConfigEditorWindow.Show();

            var pluginManager = new Command {
                MenuText = "Open Plugin Manager..."
            };

            pluginManager.Executed += (sender, e) => App.Current.PluginManagerWindow.Show();

            var wikiUrl = new Command {
                MenuText = "Open Wiki..."
            };

            wikiUrl.Executed += (sender, e) => DesktopInterop.Open(WikiUrl);

            var showGuide = new Command {
                MenuText = "Show guide..."
            };

            showGuide.Executed += (sender, e) => App.Current.StartupGreeterWindow.Show();

            var exportDiagnostics = new Command {
                MenuText = "Export diagnostics..."
            };

            exportDiagnostics.Executed += async(sender, e) => await ExportDiagnostics();

            var updater = new Command {
                MenuText = "Check for updates..."
            };

            updater.Executed += (sender, e) => Current.UpdaterWindow.Show();

            var menuBar = new MenuBar
            {
                Items =
                {
                    // File submenu
                    new ButtonMenuItem
                    {
                        Text  = "&File",
                        Items =
                        {
                            loadSettings,
                            saveSettings,
                            saveSettingsAs,
                            resetSettings,
                            applySettings,
                            new SeparatorMenuItem(),
                            refreshPresets,
                            savePreset,
                            new ButtonMenuItem
                            {
                                Text  = "Presets",
                                Items =
                                {
                                    new ButtonMenuItem
                                    {
                                        Text    = "No presets loaded",
                                        Enabled = false
                                    }
                                }
                            }
                        }
                    },
                    // Tablets submenu
                    new ButtonMenuItem
                    {
                        Text  = "Tablets",
                        Items =
                        {
                            detectTablet,
                            showTabletDebugger,
                            deviceStringReader,
                            configurationEditor
                        }
                    },
                    // Plugins submenu
                    new ButtonMenuItem
                    {
                        Text  = "Plugins",
                        Items =
                        {
                            pluginManager
                        }
                    },
                    new ButtonMenuItem
                    {
                        Text  = "&Help",
                        Items =
                        {
                            wikiUrl,
                            exportDiagnostics,
                            showGuide
                        }
                    }
                },
                ApplicationItems =
                {
                    // application (OS X) or file menu (others)
                },
                QuitItem  = quitCommand,
                AboutItem = aboutCommand
            };

            switch (SystemInterop.CurrentPlatform)
            {
            case PluginPlatform.Windows:
            case PluginPlatform.MacOS:
            {
                menuBar.Items.GetSubmenu("&Help").Items.Add(updater);
                break;
            }
            }

            return(menuBar);
        }
Esempio n. 17
0
 private void _menuItemHelpAbout_Click(object sender, EventArgs e)
 {
     using (AboutDialog aboutDialog = new AboutDialog("Animation", ProgrammingInterface.CS))
         aboutDialog.ShowDialog(this);
 }
        /// <summary>
        /// Show the about dialog
        /// </summary>
        public void ShowAboutDialog()
        {
            var dialog = new AboutDialog();

            dialog.ShowDialog();
        }
Esempio n. 19
0
        private void HandleShowWindowMessage(ShowWindowMessage msg)
        {
            switch (msg.Name)
            {
            case "NewConnection":
            {
                var connectionModel     = new Connection();
                var newConnectionDialog = new ConnectionPropertiesDialog {
                    DataContext = connectionModel
                };
                var dlgResult = newConnectionDialog.ShowDialog();
                if (dlgResult.HasValue && dlgResult.Value)
                {
                    var model = DataContext as MainViewModel;
                    if (model != null)
                    {
                        model.StoreSources.Add(connectionModel);
                        model.Configuration.ConnectionStrings.Add(new NamedConnectionString
                            {
                                Name             = connectionModel.Name,
                                ConnectionString =
                                    connectionModel.ConnectionString.
                                    ToString()
                            });
                        model.Configuration.Save();
                    }
                }
                break;
            }

            case "EditConnection":
            {
                var connectionModel = msg.ViewModel as Connection;
                if (connectionModel != null)
                {
                    var editModel = connectionModel.Clone();
                    var dlg       = new ConnectionPropertiesDialog {
                        DataContext = editModel
                    };
                    var dlgResult = dlg.ShowDialog();
                    if (dlgResult.HasValue && dlgResult.Value)
                    {
                        connectionModel.Name             = editModel.Name;
                        connectionModel.ConnectionString = editModel.ConnectionString;
                        var mvm = DataContext as MainViewModel;
                        if (mvm != null)
                        {
                            mvm.ServerRefresh(connectionModel);
                        }
                    }
                }
                break;
            }

            case "PrefixesDialog":
            {
                var configuration = msg.ViewModel as PolarisConfigurationModel;
                if (configuration != null)
                {
                    var oldPrefixes = new List <PrefixConfiguration>(configuration.Prefixes);
                    var dlg         = new PrefixesDialog {
                        DataContext = configuration
                    };
                    var dlgResult = dlg.ShowDialog();
                    if (dlgResult.HasValue && dlgResult.Value)
                    {
                        configuration.Save();
                    }
                    else
                    {
                        configuration.Prefixes = oldPrefixes;
                    }
                }
                break;
            }

            case "CreateStore":
            {
                var connection = msg.ViewModel as Connection;
                if (connection != null)
                {
                    var storeModel            = new Store(connection, Guid.NewGuid().ToString());
                    var storePropertiesDialog = new StorePropertiesDialog
                    {
                        DataContext = storeModel, Title = "New Store Properties"
                    };
                    var dlgResult = storePropertiesDialog.ShowDialog();
                    if (dlgResult.HasValue && dlgResult.Value && msg.Continuation != null)
                    {
                        msg.Continuation(storePropertiesDialog.DataContext);
                    }
                }
                break;
            }

            case "AboutDialog":
            {
                var dlg = new AboutDialog {
                    DataContext = msg.ViewModel
                };
                dlg.ShowDialog();
                break;
            }
            }
        }
Esempio n. 20
0
 private void _miHelpAbout_Click(object sender, EventArgs e)
 {
     using (AboutDialog aboutDialog = new AboutDialog("Ocr Zones Rubberband", ProgrammingInterface.CS))
         aboutDialog.ShowDialog(this);
 }
Esempio n. 21
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 ();
    }
Esempio n. 22
0
 /// <summary>
 /// Abouts this instance.
 /// </summary>
 public async void About()
 {
     var aboutDialog = new AboutDialog();
     await DialogHost.Show(aboutDialog, "RootDialog");
 }
 private void ToolbarAbout_Click(object sender, RoutedEventArgs e)
 {
     var dialog = new AboutDialog();
     dialog.ShowModal();
     DataConnectionHelper.LogUsage("ToolbarAbout");
 }
Esempio n. 24
0
        private void aboutToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            AboutDialog dlgAbout = new AboutDialog(Messager.Caption);

            dlgAbout.ShowDialog(this);
        }
Esempio n. 25
0
 private void OnAbout(object o, EventArgs args)
 {
     AboutDialog.Show(MainWindow);
 }
Esempio n. 26
0
 private void _menuItemHelpAbout_Click(object sender, System.EventArgs e)
 {
     using (AboutDialog aboutDialog = new AboutDialog("Feed Load", ProgrammingInterface.CS))
         aboutDialog.ShowDialog(this);
 }
Esempio n. 27
0
 private void _miHelpAbout_Click(object sender, EventArgs e)
 {
     using (AboutDialog aboutDialog = new AboutDialog("Interactive Histogram", ProgrammingInterface.CS))
         aboutDialog.ShowDialog(this);
 }
Esempio n. 28
0
        private void aboutMenuItem_Click(object sender, System.EventArgs e)
        {
            AboutDialog aboutDialog = new AboutDialog();

              aboutDialog.ShowDialog(this);
              aboutDialog.Dispose();
        }
Esempio n. 29
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();
    }
Esempio n. 30
0
        private void CyotekLinkToolStripStatusLabel_Click(object sender, EventArgs e)
        {
            AboutDialog.OpenCyotekHomePage();

            cyotekLinkToolStripStatusLabel.LinkVisited = true;
        }
Esempio n. 31
0
        private MenuBar ConstructMenu()
        {
            var quitCommand = new Command {
                MenuText = "Quit", Shortcut = Application.Instance.CommonModifier | Keys.Q
            };

            quitCommand.Executed += (sender, e) => Application.Instance.Quit();

            var aboutCommand = new Command {
                MenuText = "About...", Shortcut = Keys.F1
            };

            aboutCommand.Executed += (sender, e) => AboutDialog.ShowDialog(this);

            var resetSettings = new Command {
                MenuText = "Reset to defaults"
            };

            resetSettings.Executed += async(sender, e) => await ResetSettings(false);

            var loadSettings = new Command {
                MenuText = "Load settings...", Shortcut = Application.Instance.CommonModifier | Keys.O
            };

            loadSettings.Executed += async(sender, e) => await LoadSettingsDialog();

            var saveSettingsAs = new Command {
                MenuText = "Save settings as...", Shortcut = Application.Instance.CommonModifier | Keys.Shift | Keys.S
            };

            saveSettingsAs.Executed += async(sender, e) => await SaveSettingsDialog();

            var saveSettings = new Command {
                MenuText = "Save settings", Shortcut = Application.Instance.CommonModifier | Keys.S
            };

            saveSettings.Executed += async(sender, e) => await SaveSettings(Settings);

            var applySettings = new Command {
                MenuText = "Apply settings", Shortcut = Application.Instance.CommonModifier | Keys.Enter
            };

            applySettings.Executed += async(sender, e) => await ApplySettings();

            var detectTablet = new Command {
                MenuText = "Detect tablet", Shortcut = Application.Instance.CommonModifier | Keys.D
            };

            detectTablet.Executed += async(sender, e) => await DetectAllTablets();

            var showTabletDebugger = new Command {
                MenuText = "Tablet debugger..."
            };

            showTabletDebugger.Executed += (sender, e) => ShowTabletDebugger();

            var deviceStringReader = new Command {
                MenuText = "Device string reader..."
            };

            deviceStringReader.Executed += (sender, e) => ShowDeviceStringReader();

            var configurationEditor = new Command {
                MenuText = "Open Configuration Editor...", Shortcut = Application.Instance.CommonModifier | Keys.E
            };

            configurationEditor.Executed += (sender, e) => ShowConfigurationEditor();

            var pluginManager = new Command {
                MenuText = "Open Plugin Manager..."
            };

            pluginManager.Executed += (sender, e) => ShowPluginManager();

            var faqUrl = new Command {
                MenuText = "Open FAQ Page..."
            };

            faqUrl.Executed += (sender, e) => SystemInterop.Open(FaqUrl);

            var showGuide = new Command {
                MenuText = "Show guide..."
            };

            showGuide.Executed += async(sender, e) => await ShowFirstStartupGreeter();

            var exportDiagnostics = new Command {
                MenuText = "Export diagnostics..."
            };

            exportDiagnostics.Executed += async(sender, e) => await ExportDiagnostics();

            return(new MenuBar
            {
                Items =
                {
                    // File submenu
                    new ButtonMenuItem
                    {
                        Text = "&File",
                        Items =
                        {
                            loadSettings,
                            saveSettings,
                            saveSettingsAs,
                            resetSettings,
                            applySettings
                        }
                    },
                    // Tablets submenu
                    new ButtonMenuItem
                    {
                        Text = "Tablets",
                        Items =
                        {
                            detectTablet,
                            showTabletDebugger,
                            deviceStringReader,
                            configurationEditor
                        }
                    },
                    // Plugins submenu
                    new ButtonMenuItem
                    {
                        Text = "Plugins",
                        Items =
                        {
                            pluginManager
                        }
                    },
                    new ButtonMenuItem
                    {
                        Text = "&Help",
                        Items =
                        {
                            faqUrl,
                            exportDiagnostics,
                            showGuide
                        }
                    }
                },
                ApplicationItems =
                {
                    // application (OS X) or file menu (others)
                },
                QuitItem = quitCommand,
                AboutItem = aboutCommand
            });
        }
Esempio n. 32
0
		private void mnuAbout_Click(object sender, EventArgs e)
		{
			using (AboutDialog dialog = new AboutDialog())
				dialog.ShowDialog();
		}
Esempio n. 33
0
 /// <summary>
 /// Show the About dialog
 /// </summary>
 private void _miHelpAbout_Click(object sender, System.EventArgs e)
 {
     using (AboutDialog aboutDialog = new AboutDialog("JPEG 2000", ProgrammingInterface.CS))
         aboutDialog.ShowDialog(this);
 }
Esempio n. 34
0
 private void AboutAppButton_Click(object sender, EventArgs e)
 {
     using (var dlg = new AboutDialog())
         dlg.ShowDialog(this);
 }
        public void Execute(object parameter)
        {
            AboutDialog aboutDialog = _containter.Resolve <AboutDialog>();

            aboutDialog.ShowDialog(_containter.Resolve <MainForm>());
        }
Esempio n. 36
0
 public void About_Activated(object sender, EventArgs e)
 {
     AboutDialog dialog = new AboutDialog (Gui.MainWindow.Window);
     dialog.Run();
 }
 private void aboutButton_Click(object sender, EventArgs e)
 {
   using (Form dialog = new AboutDialog())
     dialog.ShowDialog(this);
 }
Esempio n. 38
0
        private void wizardSheet_About(object sender, EventArgs e)
        {
            AboutDialog dlgAbout = new AboutDialog("Modality Worklist WCF");

            dlgAbout.ShowDialog(this);
        }
 private void _miHelpAbout_Click(object sender, EventArgs e)
 {
     using (AboutDialog aboutDialog = new AboutDialog("Ocr Zones Rubberband", ProgrammingInterface.CS))
     aboutDialog.ShowDialog(this);
 }
Esempio n. 40
0
 private void _miHelpAbout_Click(object sender, EventArgs e)
 {
     using (AboutDialog aboutDialog = new AboutDialog("Annotations Layers", ProgrammingInterface.CS))
         aboutDialog.ShowDialog(this);
 }
Esempio n. 41
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 ();
    }
Esempio n. 42
0
        public void About(object sender, EventArgs args)
        {
            AboutDialog about = new AboutDialog();

            about.ShowDialog(this);
        }
Esempio n. 43
0
 private void _helpAboutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (AboutDialog aboutDialog = new AboutDialog("SharePoint", ProgrammingInterface.CS))
         aboutDialog.ShowDialog(this);
 }
Esempio n. 44
0
        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AboutDialog aboutDialog = new AboutDialog();

            aboutDialog.Show();
        }
Esempio n. 45
0
 protected void OnAboutActionActivated(object sender, System.EventArgs e)
 {
     AboutDialog dialog = new AboutDialog();
     dialog.Run ();
 }
Esempio n. 46
0
    void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
    {
        switch (connectionId)
        {
        case 1:
            this.AboutDialog = ((AboutDialog)(target));
            return;

        case 2:
            this.Rectangle1 = ((System.Windows.Shapes.Rectangle)(target));
            return;

        case 3:
            this.OKButton = ((Fluent.Button)(target));
            return;

        case 4:
            this.AppNameLabel = ((System.Windows.Controls.Label)(target));
            return;

        case 5:
            this.CopyLabel = ((System.Windows.Controls.Label)(target));
            return;

        case 6:
            this.VersionLabel = ((System.Windows.Controls.Label)(target));
            return;

        case 7:
            this.AppLogo = ((System.Windows.Controls.Image)(target));
            return;

        case 8:
            this.LicenseButton = ((Fluent.Button)(target));
            return;

        case 9:
            this.UpdateButton = ((Fluent.Button)(target));
            return;

        case 10:
            this.UpdateBox = ((System.Windows.Controls.Grid)(target));
            return;

        case 11:
            this.UpdateText = ((System.Windows.Controls.TextBlock)(target));
            return;

        case 12:
            this.ProgressBox = ((System.Windows.Controls.StackPanel)(target));
            return;

        case 13:
            this.UpdateProgressbar = ((System.Windows.Controls.ProgressBar)(target));
            return;

        case 14:
            this.FilesizeTextBlock = ((System.Windows.Controls.TextBlock)(target));
            return;

        case 15:
            this.ApplyUpdateButton = ((System.Windows.Controls.Button)(target));
            return;

        case 16:
            this.CancelUpdateButton = ((System.Windows.Controls.Button)(target));
            return;

        case 17:
            this.WhatsNewTextBlock = ((System.Windows.Controls.TextBlock)(target));
            return;

        case 18:
            this.WhatsNewTextBox = ((System.Windows.Controls.TextBox)(target));
            return;

        case 19:
            this.TextBox1 = ((System.Windows.Controls.TextBox)(target));
            return;
        }
        this._contentLoaded = true;
    }
Esempio n. 47
0
 protected void OnAboutActionActivated (object sender, EventArgs e)
 {
     Process.Start("http://www.monogame.net/about/");
     var adialog = new AboutDialog ();
     adialog.TransientFor = this;
     adialog.Run ();
 }
Esempio n. 48
0
 private void AboutDialog_Closed(object sender, EventArgs e)
 {
     this.aboutDialog.Closed -= AboutDialog_Closed;
     this.aboutDialog         = null;
 }
Esempio n. 49
0
      private void menuItemAbout_Click(object sender, System.EventArgs e)
      {
         AboutDialog dlg = new AboutDialog("Dicom Find");

         dlg.ShowDialog(this);
      }
Esempio n. 50
0
 /// <summary>
 /// Opens the About Dialog
 /// </summary>
 private async void ShowAboutDialog()
 {
     var dialog = new AboutDialog();
     await dialog.ShowAsync();
 }
Esempio n. 51
0
 protected virtual void OnAboutActionActivated(object sender, System.EventArgs e)
 {
     AboutDialog aboutus = new AboutDialog ();
                 aboutus.Run ();
                 aboutus.Destroy ();
 }
Esempio n. 52
0
 private void _menuItemHelpAbout_Click(object sender, EventArgs e)
 {
     using (AboutDialog aboutDialog = new AboutDialog("Twain With Barcode Separator", ProgrammingInterface.CS))
         aboutDialog.ShowDialog(this);
 }
Esempio n. 53
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 ();
	}
 private void AboutDialog_FormClosed(object sender, FormClosedEventArgs e)
 {
     aboutDialog = null;
 }
Esempio n. 55
0
 public void on_btnAbout_clicked(object sender, EventArgs args)
 {
     AboutDialog about = new AboutDialog();
     about.Run();
 }
Esempio n. 56
0
        private void toolStripButtonAbout_Click(object sender, EventArgs e)
        {
            AboutDialog ad = new AboutDialog();

            ad.ShowDialog();
        }
Esempio n. 57
0
 private void MenuHelpAbout_Click(object sender, System.EventArgs e)
 {
     using (AboutDialog af = new AboutDialog())
     {
         af.ShowDialog(AppWorkspace);
     }
 }
Esempio n. 58
0
        private void TsmiAboutClick(object sender, EventArgs e)
        {
            var aboutDialog = new AboutDialog();

            aboutDialog.ShowDialog();
        }
Esempio n. 59
0
        private void About_Activated(object sender, EventArgs e)
        {
            AboutDialog dlg = new AboutDialog ();

            try {
                dlg.Run ();
            } finally {
                dlg.Destroy ();
            }
        }
Esempio n. 60
0
        private void BtnAbout_Click(object sender, RoutedEventArgs e)
        {
            var about = new AboutDialog();

            ShowDialog(about);
        }