Ejemplo n.º 1
0
 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;
         }
     }
 }
Ejemplo n.º 2
0
 public static new void Show()
 {
     if (Instance == null) {
         Instance = new Credits();
         Instance.Opacity = 0;
         Instance.Show(Main.Instance);
         Instance.DTimer.Start();
     }
 }
Ejemplo n.º 3
0
 public static new void Show()
 {
     if (Instance == null)
     {
         Instance         = new Credits();
         Instance.Opacity = 0;
         Instance.Show(Main.Instance);
         Instance.DTimer.Start();
     }
 }
Ejemplo n.º 4
0
 private void CreditsMenuItem_Click(object sender, EventArgs e)
 {
     Credits.Show();
 }