/// <sUMM2ary> /// sets a flag, that the user isnt asked for the input file for a /// worksheet every time /// </sUMM2ary> internal void SetDontAskForInputWorksheet() { // set the issue to save the option as 'don't ask me again' EA.ProjectIssues pIssues = (EA.ProjectIssues)repository.Issues.AddNew(DONT_ASK_FOR_INPUT_FILE, "Issue"); pIssues.Update(); repository.Issues.Refresh(); }
/// <sUMM2ary> /// removes a flag, that the user isnt asked for the input file for a /// worksheet every time /// </sUMM2ary> internal void UnSetDontAskForInputWorksheet() { for (short i = 0; i < repository.Issues.Count; i++) { EA.ProjectIssues issue = (EA.ProjectIssues)repository.Issues.GetAt(i); if (issue.Name.Equals(DONT_ASK_FOR_INPUT_FILE)) { repository.Issues.Delete(i); } } repository.Issues.Refresh(); }