コード例 #1
0
 /// <summary>
 /// Create a new CodeEditor form.
 /// </summary>
 public CodeEditor(Main parent)
 {
     InitializeComponent();
     windowMenuItem = new MenuItem(ShortFileName, (s, e) => Activate());
     FindReplace = new FindReplace(this);
     parentForm = parent;
     parentForm.FireOnCodeEditorLoad(this);
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: Quackmatic/VisualTrillek
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Events = new EventQueue<string>();
            Main main = new Main();
            Events.Updated += (sender, e) => main.FireOnEventLogged(main.EventList);

            LoadSettings();
            CheckForPlugins();
            Application.Run(main);
        }