Esempio n. 1
0
    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 () ;
        }
    }
Esempio n. 2
0
  { 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"); }
    }
Esempio n. 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); }
    }