private void loadFiles(object sender, EventArgs e) { VControl control = (VControl)sender; if (LoadFiles != null) { control.FilesList = LoadFiles(control.CurrentPath); } }
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); } }
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); } } }