Ejemplo n.º 1
0
        private void loadFiles(object sender, EventArgs e)
        {
            VControl control = (VControl)sender;

            if (LoadFiles != null)
            {
                control.FilesList = LoadFiles(control.CurrentPath);
            }
        }
Ejemplo n.º 2
0
        private void getParentPath(object sender, EventArgs e)
        {
            VControl control = (VControl)sender;

            if (control.CurrentPath.Length > 3 && GetParentPath != null && LoadFiles != null)
            {
                control.CurrentPath = GetParentPath(control.CurrentPath);
                control.FilesList   = LoadFiles(control.CurrentPath);
            }
        }
Ejemplo n.º 3
0
        private void itemClicked(object sender, EventArgs e)
        {
            VControl control = (VControl)sender;

            if (CheckItem != null && LoadFiles != null && control.ClickedItem != null)
            {
                string tmp = control.CurrentPath;
                control.CurrentPath = CheckItem(control.ClickedItem, control.CurrentPath);
                if (control.CurrentPath != tmp && LoadFiles != null)
                {
                    control.FilesList = LoadFiles(control.CurrentPath);
                }
            }
        }