예제 #1
0
 private void MatchStoreIndex()
 {
     //if (this.tbStoreIndex.Text == String.Empty ||
     //	Regex.IsMatch(this.tbStoreIndex.Text,
     //	@"^[a-zA-Z]:(\\(?![\s\.])[^\\/:\*\?\x22<>\|]*[^\s\.\\/:\*\?\x22<>\|])+$"))
     //{
     //	this.lblMatchStoreIndex.Text = String.Empty;
     //	return true;
     //}
     //else
     //{
     //	this.lblMatchStoreIndex.Text = "Path isn't match";
     //	return false;
     //}
     if (Anime.IsMatchPath(this.tbStoreIndex.Text))
     {
         //this.lblMatchStoreIndex.Text = String.Empty;
         this.lblPath.ForeColor = SystemColors.ControlText;
         btMatch |= 0x04;
     }
     else
     {
         //this.lblMatchStoreIndex.Text = "Path isn't match";
         this.lblPath.ForeColor = Color.Red;
         btMatch &= 0xFB;
     }
 }