void HandleAbout_toolbuttonhandleClicked(object sender, EventArgs e) { Gtk.AboutDialog ad = new Gtk.AboutDialog(); ad.SetPosition(Gtk.WindowPosition.CenterOnParent); Assembly asm = Assembly.GetExecutingAssembly(); ad.ProgramName = (asm.GetCustomAttributes(typeof(AssemblyTitleAttribute), false)[0] as AssemblyTitleAttribute).Title; ad.Version = asm.GetName().Version.ToString(); ad.Comments = (asm.GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false)[0] as AssemblyDescriptionAttribute).Description; ad.Copyright = (asm.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false)[0] as AssemblyCopyrightAttribute).Copyright; ad.Authors = new string[] { "Ronaldo Nascimento <*****@*****.**" }; ad.License = "GPL 3"; ad.Logo = Battle.Gui.MediaManager.GetPixbufFromBaseFile("BLLogo-small.jpg"); ad.Website = "http://battle.sourceforge.net"; ad.Run(); ad.Destroy(); }
protected void OnAboutActionActivated(object sender, System.EventArgs e) { Assembly assembly = Assembly.GetExecutingAssembly(); AboutDialog aboutDlg = new AboutDialog(); aboutDlg.ParentWindow = this.GdkWindow; aboutDlg.SetPosition(Gtk.WindowPosition.Center); aboutDlg.Title = "About MultiMC"; aboutDlg.ProgramName = AppUtils.GetAssemblyAttr<AssemblyTitleAttribute>(assembly).Title; aboutDlg.Version = AppUtils.GetVersion().ToString(); aboutDlg.Comments = AppUtils.GetAssemblyAttr<AssemblyDescriptionAttribute>(assembly).Description; aboutDlg.Copyright = AppUtils.GetAssemblyAttr<AssemblyCopyrightAttribute>(assembly).Copyright; aboutDlg.License = Resources.License; aboutDlg.Logo = Pixbuf.LoadFromResource("MultiMC.AboutLogo.png"); aboutDlg.Website = "http://forkk.net/MultiMC"; aboutDlg.WebsiteLabel = aboutDlg.Website; aboutDlg.Authors = new string[] { "Andrew Okin <*****@*****.**>", "ShaRose" }; aboutDlg.Response += (sender2, e2) => aboutDlg.Destroy(); aboutDlg.Run(); }
/// <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); } }
void HandleAbout_toolbuttonhandleClicked(object sender, EventArgs e) { Gtk.AboutDialog ad = new Gtk.AboutDialog(); ad.SetPosition(Gtk.WindowPosition.CenterOnParent); Assembly asm = Assembly.GetExecutingAssembly(); ad.ProgramName = (asm.GetCustomAttributes(typeof(AssemblyTitleAttribute), false)[0] as AssemblyTitleAttribute).Title; ad.Version = asm.GetName().Version.ToString(); ad.Comments = (asm.GetCustomAttributes(typeof(AssemblyDescriptionAttribute), false)[0] as AssemblyDescriptionAttribute).Description; ad.Copyright = (asm.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false)[0] as AssemblyCopyrightAttribute).Copyright; ad.Authors = new string[] {"Ronaldo Nascimento <*****@*****.**"}; ad.License = "GPL 3"; ad.Logo = Battle.Gui.MediaManager.GetPixbufFromBaseFile("BLLogo-small.jpg"); ad.Website = "http://battle.sourceforge.net"; ad.Run(); ad.Destroy(); }
/// <summary> /// Shows the About dialog /// </summary> private void OnAbout(object sender, System.EventArgs e) { var about = new Gtk.AboutDialog(); String[] authors = { Core.AppInfo.Author }; about.ProgramName = Core.AppInfo.Name; about.Version = Core.AppInfo.Version; about.Authors = authors; about.Comments = Core.AppInfo.Comments; about.License = Core.AppInfo.License; about.Copyright = "(c) " + authors[ 0 ] + " " + Convert.ToString( DateTime.Now.Year ) ; about.Website = Core.AppInfo.Website; about.Logo = this.Icon; about.Parent = this; about.TransientFor = this; about.SetPosition( WindowPosition.CenterOnParent ); about.Run(); about.Destroy(); }