Exemplo n.º 1
0
        void Init()
        {
            Width  = 80;
            Height = 25;

            Console.SetWindowSize(Width, Height);

            leftPanel  = new Panel(this, @"C:\soft"); leftPanel.Name = "l";
            rightPanel = new Panel(this, @"C:\"); rightPanel.Name = "r";

            command = "";

            rightPanel.X = Width / 2;

            exit_menu = new YesNoBox(this, "Quit", "Do you want to Quit DNT?");

            exit_menu.YesPressed = delegate(ConsoleKeyInfo info) { Environment.Exit(0); };

            mkdir_menu = new MakeFolderBox(this);

            about_box = new AboutBox(this);

            large_error_box = new ErrorBox(this);

            error_box = new ErrorBox(this, 40);
        }
Exemplo n.º 2
0
        void DestroyAll()
        {
            leftPanel  = null;
            rightPanel = null;

            currentPanel = null;

            current_directory = null;

            command = null;

            exit_menu       = null;
            mkdir_menu      = null;
            about_box       = null;
            large_error_box = null;
            error_box       = null;
        }