public FolderInclusion Add(string path, InclusionMode mode) { var folder = new FolderInclusion(path, mode); Add(folder); return(folder); }
void selectAndAddFolder(InclusionMode mode) { if (folderDialog.ShowDialog(new Winform32Helper(this)) == System.Windows.Forms.DialogResult.OK) { if (!currentFolderList.Contains(folderDialog.SelectedPath)) { var folder = currentFolderList.Add(folderDialog.SelectedPath, mode); currentFolderListView.Items.Add(folder); } enableButtons(true); } }
public override int GetHashCode() { int hash = 1; hash ^= projectIds_.GetHashCode(); if (InclusionMode != global::Google.Cloud.SecurityCenter.V1.OrganizationSettings.Types.AssetDiscoveryConfig.Types.InclusionMode.Unspecified) { hash ^= InclusionMode.GetHashCode(); } hash ^= folderIds_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
// ReSharper restore UnusedMember.Global public FolderInclusion(string path, InclusionMode mode) { Path = path; Inclusion = mode; }