public ChooseTagForm(CheckText pastform) { InitializeComponent(); this.pastform = pastform; NewsTagsBox.CheckOnClick = true; string PathToTags = Directory.GetCurrentDirectory(); PathToTags = Path.GetFullPath(Path.Combine(PathToTags, @"..\..\..\..\")); PathToTags = Path.Combine(PathToTags, "Nyheder_Database"); string[] Array = (from dir in Directory.GetDirectories(PathToTags) select Path.GetFileNameWithoutExtension(dir)).ToArray(); NewsTagsBox.Items.AddRange(Array); }
public CheckLinkResult(CheckText pastForm) { InitializeComponent(); // Setting the instance of checkText equel to the parameter that is passed in the constructer. this.pastForm = pastForm; }