コード例 #1
0
ファイル: TabManager.CS プロジェクト: HumMod/editor
    private static void OnVisibleChanged(object Obj, EventArgs EA)
    {
        TabPage Tab = (TabPage)Obj;

        if (Tab.Visible)
        {
            TabData Data = (TabData)Tab.Tag;
            StatusBarManager.ShowText("File : " + Data.Filename);

//        RefreshStatus () ;
//        RefreshState () ;
        }
    }
コード例 #2
0
ファイル: IO_Writer.CS プロジェクト: HumMod/editor
  { public static void Write(String Filename, String Content)
    {
        try
        { StatusBarManager.ShowText("Writing " + Filename + " ... ");

          StreamWriter SW = new StreamWriter(Filename);
          SW.Write(Content);
          SW.Close();

          StatusBarManager.AddText("Done"); }

        catch
        { StatusBarManager.AddText("Failed"); }
    }
コード例 #3
0
  { public static String Read(String Filename)
    {
        try
        { StatusBarManager.ShowText("Reading " + Filename + " ... ");

          StreamReader SR      = new StreamReader(Filename);
          String       Content = SR.ReadToEnd();
          SR.Close();

          StatusBarManager.AddText("Done");
          return(Content); }

        catch
        { StatusBarManager.AddText("Failed");
          return(null); }
    }
コード例 #4
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;
    }