示例#1
0
        public void DirectoryDoubleClick(object sender, EventArgs e)
        {
            DirectoryControl c = sender as DirectoryControl;

            UpdateFlowControl(c.path);
            workingDirectory = c.path;
        }
示例#2
0
        private void CreateRegressControls(string path)
        {
            string parent = "";

            if (Directory.GetParent(path) != null)
            {
                parent = Directory.GetParent(path).ToString();
            }

            if (parent != String.Empty)
            {
                //Create .. directory
                EpisodeFlow.Controls.Add(new DirectoryControl(parent, this, true));
            }
            else
            {
                DirectoryControl c = new DirectoryControl("", this, true);
                c.DoubleClick += DisplayRootDirectory;
                EpisodeFlow.Controls.Add(c);
            }
        }