public AboutDialog() { InitializeComponent(); splashPage.ConstructSimple(); txtInfo.Text = "AGS Editor .NET (Build " + AGS.Types.Version.AGS_EDITOR_VERSION + ")"; if (AGS.Types.Version.IS_BETA_VERSION) { txtInfo.Text += " ** BETA VERSION **"; } txtInfo.Text += Environment.NewLine + "v" + AGS.Types.Version.AGS_EDITOR_FRIENDLY_VERSION + ", " + AGS.Types.Version.AGS_EDITOR_DATE + Environment.NewLine + AGS.Types.Version.AGS_EDITOR_COPYRIGHT + Environment.NewLine + "Scintilla (c) 1998-2003 Neil Hodgson, all rights reserved" + Environment.NewLine + "DockPanel Suite (c) 2007 Weifen Luo" + Environment.NewLine + "See the DOCS folder for copyrights of used libraries." + Environment.NewLine + "System: " + GetOperatingSystemName() + Environment.NewLine; GetAboutDialogTextEventArgs evArgs = new GetAboutDialogTextEventArgs(string.Empty); Factory.Events.OnGetAboutDialogText(evArgs); txtInfo.Text += evArgs.Text; }
public void OnGetAboutDialogText(GetAboutDialogTextEventArgs evArgs) { if (GetAboutDialogText != null) { GetAboutDialogText(evArgs); } }
public AboutDialog() { InitializeComponent(); pictureBox.Image = Resources.ResourceManager.GetBitmap("splash.bmp"); txtInfo.Text = "AGS Editor .NET (Build " + AGS.Types.Version.AGS_EDITOR_VERSION + ")"; if (AGS.Types.Version.IS_BETA_VERSION) { txtInfo.Text += " ** BETA VERSION **"; } txtInfo.Text += Environment.NewLine + "v" + AGS.Types.Version.AGS_EDITOR_FRIENDLY_VERSION + ", " + AGS.Types.Version.AGS_EDITOR_DATE + Environment.NewLine + AGS.Types.Version.AGS_EDITOR_COPYRIGHT + Environment.NewLine + "Scintilla (c) 1998-2003 Neil Hodgson, all rights reserved" + Environment.NewLine + "See the DOCS folder for copyrights of used libraries." + Environment.NewLine + "System: " + GetOperatingSystemName() + Environment.NewLine; GetAboutDialogTextEventArgs evArgs = new GetAboutDialogTextEventArgs(string.Empty); Factory.Events.OnGetAboutDialogText(evArgs); txtInfo.Text += evArgs.Text; }
private void Events_GetAboutDialogText(GetAboutDialogTextEventArgs evArgs) { if (_editorPlugins.Count > 0) { evArgs.Text += "Editor plugins loaded:" + Environment.NewLine; foreach (EditorPlugin plugin in _editorPlugins) { evArgs.Text += "* " + plugin.FileName + Environment.NewLine; } } }
public AboutDialog() { InitializeComponent(); splashPage.ConstructSimple(); StringBuilder sb = new StringBuilder(); sb.Append($"AGS Editor .NET (Build {Types.Version.AGS_EDITOR_VERSION})"); if (Types.Version.IS_BETA_VERSION) { sb.AppendLine(" ** BETA VERSION **"); } else { sb.AppendLine(); } sb.AppendLine($"v{Types.Version.AGS_EDITOR_FRIENDLY_VERSION}, {Types.Version.AGS_EDITOR_DATE}"); sb.AppendLine(Types.Version.AGS_EDITOR_COPYRIGHT); sb.AppendLine("See the Licenses folder for copyrights of used libraries."); sb.AppendLine("DockPanel Suite © 2007 Weifen Luo"); sb.AppendLine("irrKlang © 2001-2018 Nikolaus Gebhardt / Ambiera"); sb.AppendLine("Magick.NET © 2013-2019 Dirk Lemstra"); sb.AppendLine("Newtonsoft JSON.NET © 2007 James Newton-King"); sb.AppendLine("Scintilla © 1998-2003 Neil Hodgson"); sb.AppendLine("System: " + GetOperatingSystemName()); // pickup extra information which might be set (i.e. loaded plug-ins) GetAboutDialogTextEventArgs evArgs = new GetAboutDialogTextEventArgs(string.Empty); Factory.Events.OnGetAboutDialogText(evArgs); // ...value is either completely empty or already includes a newline if (!string.IsNullOrWhiteSpace(evArgs.Text)) { sb.Append(evArgs.Text); } txtInfo.Text = sb.ToString().TrimEnd(); }