Ejemplo n.º 1
0
    public M_Main ()
    { This = this ;

      MenuItems.Add (new M_File ()) ;
      MenuItems.Add (new M_Edit ()) ;
      MenuItems.Add (new M_Search ()) ;
      MenuItems.Add (new M_Insert ()) ;
      MenuItems.Add (new M_Run ()) ;
      MenuItems.Add (new M_Options ()) ;
      MenuItems.Add (new M_Help ()) ;

    }
Ejemplo n.º 2
0
    public M_Main()
    {
        This = this;

        MenuItems.Add(new M_File());
        MenuItems.Add(new M_Edit());
        MenuItems.Add(new M_Search());
        MenuItems.Add(new M_Insert());
        MenuItems.Add(new M_Run());
        MenuItems.Add(new M_Options());
        MenuItems.Add(new M_Help());
    }
Ejemplo n.º 3
0
    public MainWindow()
    {
        This = this;

        BasicFont = This.Font;
        RegistryManager.CreateAccount();

        Text = AppMain.AppName;
        Icon = ResourceManager.GetAppIcon();

        WindowState = (FormWindowState)WindowStateManager.GetState();

        StartPosition = FormStartPosition.Manual;

        Rectangle Rect = new Rectangle();

        Rect = WindowLocationManager.GetLocation();

        Size     = new Size(Rect.Width, Rect.Height);
        Location = new Point(Rect.X, Rect.Y);

        Menu = new M_Main();

        /* The following three panels are docked.
         *
         * For reasons that I don't understand, when
         * panels are docked the latter panels get
         * priority over the earlier panels.
         *
         # The left panel sits at the left.
         # The right panel is a fill.
         # The top panel goes last and get docked at the top. */

        new PanelRight(this);
        new Window_Splitter(this);
        new PanelLeft(this);
        new PanelTop(this);

        StatusBarManager.Create(this);
        Print_Manager.Install();

        State.NoFilesOpen();

        Visible = true;
    }