예제 #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();
     }
 }