示例#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();
 }
示例#2
0
文件: Drawers.cs 项目: slmtik/IT-Step
 public static void Update(Panel panel)
 {
     Draw();
     panel.elem = 0;
     panel.yPos = 1;
     panel.GetDir();
     panel.ShowDir();
 }
示例#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();
     }
 }