Example #1
0
 public FileManager()
 {
     Drawers.CurrentTheme = 0;
     Drawers.Draw();
     Console.BackgroundColor = Drawers.Theme[0];
     Console.ForegroundColor = Drawers.Theme[1];
     drives = Directory.GetLogicalDrives();
     panels = new Panel[Constants.TABLES];
     for (int i = 0; i < Constants.TABLES; i++)
     {
         panels[i] = new Panel(i * (((Constants.COLS - 3) / Constants.TABLES) + 1) + 1, @"C:\");
     }
     CurPanel = 0;
     panel = panels[CurPanel];
     Cursor();
     Menu();
 }
Example #2
0
 public static void Update(Panel panel)
 {
     Draw();
     panel.elem = 0;
     panel.yPos = 1;
     panel.GetDir();
     panel.ShowDir();
 }
Example #3
0
 private void ChangePanel()
 {
     if (Constants.TABLES > 1)
     {
         Console.SetCursorPosition(panel.xPos, panel.yPos);
         Console.Write(panel[panel.elem]);
         if (CurPanel < Constants.TABLES - 1)
             CurPanel++;
         else
             CurPanel = 0;
         panel = panels[CurPanel];
         Cursor();
     }
 }