private void SetProject(Gibbed.ProjectData.Project project) { if (project != null) { try { this.FileHashLookup = project.LoadListsFileNames(); this.TypeHashLookup = project.LoadListsTypeNames(); this.openDialog.InitialDirectory = project.InstallPath; this.saveKnownFileListDialog.InitialDirectory = project.ListsPath; } catch (Exception e) { MessageBox.Show( "There was an error while loading project data." + Environment.NewLine + Environment.NewLine + e.ToString() + Environment.NewLine + Environment.NewLine + "(You can press Ctrl+C to copy the contents of this dialog)", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); project = null; } } if (project != this.Manager.ActiveProject) { this.Manager.ActiveProject = project; } this.projectComboBox.SelectedItem = project; }
public static Gibbed.ProjectData.HashList <uint> LoadListsColumnNames( this Gibbed.ProjectData.Project project) { return(project.LoadLists( "*.columnlist", s => s.HashCRC32(), s => s.ToLowerInvariant())); }
public static Gibbed.ProjectData.HashList <uint> LoadListsTypeNames( this Gibbed.ProjectData.Project project) { return(project.LoadLists( "*.typelist", s => s.HashFNV32(), s => s.ToLowerInvariant())); }
public static Gibbed.ProjectData.HashList <ulong> LoadListsFileNames( this Gibbed.ProjectData.Project project) { return(project.LoadLists( "*.filelist", s => s.HashFNV64(), s => s.ToLowerInvariant())); }