示例#1
0
        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);
        }
示例#2
0
 public CheckLinkResult(CheckText pastForm)
 {
     InitializeComponent();
     // Setting the instance of checkText equel to the parameter that is passed in the constructer.
     this.pastForm = pastForm;
 }