private void ReloadItem(CertificateFile f) { f.Reload(); lstFiles.Items.Remove(f); AssignToGroup(f); lstFiles.Items.Add(f); }
public static CertificateFile FromFile(string folderPath, string filePath) { var certFile = new CertificateFile { Filename = filePath.Substring(folderPath.Length + 1), FullPath = filePath }; certFile.Reload(); return(certFile); }