1 private void btNet_Click(object sender, EventArgs e){
2 fB.Description = "選擇你要把.NET解釋部署到哪個目錄
它必須是站點根目錄或者子級目錄";
3 fB.SelectedPath = Application.StartupPath + "wwwroot";
4 do{
5 fB.SelectedPath = tbnet.Text;
6 if (fB.ShowDialog().GetHashCode() == 1){
7 if (fB.SelectedPath.Contains(tbRoot.Text)){
8 tbnet.Text = fB.SelectedPath;
9 }else if (MessageBox.Show("必須是站點主目錄的平級目錄或者子級目錄", ".NET作用無法達到", MessageBoxButtons.RetryCancel, MessageBoxIcon.Information).GetHashCode() == 4){
10 continue;
11 }else{
12 break;
13 }
14 }else{
15 break;
16 }
17 }while (fB.SelectedPath.Contains(tbRoot.Text) == false);{
18 tbnet.Text = tbRoot.Text;
19 }
20 }