private void Main_Load(object sender, EventArgs e) { Status.Visible = false; if (String.IsNullOrWhiteSpace(FileToOpen) && !String.IsNullOrWhiteSpace(Settings.LastOpenFile)) { FileToOpen = Settings.LastOpenFile; } if (FileToOpen != null && System.IO.File.Exists(FileToOpen)) { new EditorFile(FileToOpen); if (EditorFile.All.Count > 0) { EnableEdit(); } Status.Visible = true; } else { Credits.Show(); } foreach (TypeInfo t in EditorSyntax.Styles.ConfiguredColorSchemes) { var i = ColorSchemeMenu.DropDownItems.Add(t.Name.Replace("Colors_", "").Replace("_", " "), null, Main_SetColorScheme) as ToolStripMenuItem; if (t.Name == EditorSyntax.Styles.ColorScheme.GetType().Name) { i.Checked = true; } } }
public static new void Show() { if (Instance == null) { Instance = new Credits(); Instance.Opacity = 0; Instance.Show(Main.Instance); Instance.DTimer.Start(); } }
public static new void Show() { if (Instance == null) { Instance = new Credits(); Instance.Opacity = 0; Instance.Show(Main.Instance); Instance.DTimer.Start(); } }
private void CreditsMenuItem_Click(object sender, EventArgs e) { Credits.Show(); }