示例#1
0
        /// <summary>
        /// Shows the about dialog.
        /// </summary>
        /// <param name='ProgramVersion'>
        /// Program version.
        /// </param>
        /// <param name='wind'>
        /// The Parent windows
        /// </param>
        public static void showAboutDialog(Version ProgramVersion, Gdk.Window wind)
        {
            try {
                AboutDialog about = new AboutDialog();
                about.ProgramName  = g_programName;
                about.ParentWindow = wind;
                about.Comments     = Catalog.GetString("Erstellen und Testen Sie schnell und einfach reguläre Ausdrücke mit der verbesserten Version von Phrasis.Studio");
                about.Version      = ProgramVersion.ToString();            //.Replace (".0", "");
                about.Logo         = new Gdk.Pixbuf(new cPathEnvironment().const_program_image, 128, 128, true);
                about.Icon         = new Gdk.Pixbuf(new cPathEnvironment().const_program_image, 64, 64, true);
                about.Title        = Catalog.GetString("Info über das Programm");
                about.Website      = "https://github.com/squarerootfury/terminus-project";
                about.License      = System.IO.File.ReadAllText(new cPathEnvironment().const_program_license, System.Text.Encoding.UTF8);
                about.WrapLicense  = true;
                about.Copyright   += Catalog.GetString("\nCopyright 2012 (c) Terminus Entwickler");
                about.SetPosition(WindowPosition.Center);

                /*about.Authors = new string[] {"Terminus - Team:\n","\"Fury\""};
                 * about.Artists = new string[] {"Anwendungsicon:\n","\"anonymous\""};
                 * about.Documenters = new string[] {"Anwendungsdokumentation:\n","ups keiner :)"};
                 */
                about.Run();
                about.Destroy();
            } catch (Exception ex) {
                MessageBox.Show(ex.Message, cTerminus.g_programName, ButtonsType.Close, MessageType.Error);
            }
        }
示例#2
0
        private void MenuAboutClick(object sender, EventArgs e)
        {
            _ = GetType().Assembly.GetName().Name;
            StringBuilder stringBuilder = new StringBuilder();

            object[] customAttributes = GetType().Assembly.GetCustomAttributes(typeof(AssemblyDescriptionAttribute), inherit: false);
            if (customAttributes.Length != 0)
            {
                stringBuilder.Append(((AssemblyDescriptionAttribute)customAttributes[0]).Description).Append(Environment.NewLine);
            }
            stringBuilder.Append(Environment.NewLine);
            stringBuilder.Append("Version: ").Append(GetType().Assembly.GetName().Version.ToString()).Append(Environment.NewLine);
            object[] customAttributes2 = GetType().Assembly.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), inherit: false);
            if (customAttributes2.Length != 0)
            {
                stringBuilder.Append("Copyright: ").Append(((AssemblyCopyrightAttribute)customAttributes2[0]).Copyright).Append(Environment.NewLine);
            }
            stringBuilder.Append(Environment.NewLine);
            stringBuilder.Append(ExtractInfo(g_Weather));
            stringBuilder.Append(ExtractInfo(g_SunRiseSet));
            AboutDialog val = (AboutDialog)(object)new AboutDialog();

            val.SetPosition((WindowPosition)3);
            val.Title   = "Simple Weather Tray Gtk Edition";
            val.Authors = new string[1] {
                "Luke Liukonen"
            };
            val.Comments = stringBuilder.ToString();
            val.Show();
        }
示例#3
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();
    }
示例#4
0
 void OnButtonConvertClicked(object sender, EventArgs e)
 {
     listCSVData.Clear();
     try{
         SetCSVData();
         WriteCSVFile();
         AboutDialog abt = new AboutDialog();
         abt.Modal = true;
         abt.SetPosition(WindowPosition.Center);
         abt.ProgramName = "Conversion Successful!";
         abt.Run();
         abt.Destroy();
     }
     catch (Exception ex) {
         AboutDialog abt = new AboutDialog();
         abt.Modal = true;
         abt.SetPosition(WindowPosition.Center);
         abt.ProgramName = "Conversion Failed!";
         abt.Run();
         abt.Destroy();
     }
 }