菜单
  


                    char[] Permissions = PermissionSet.ToCharArray();
                    chkAllowStoreFiles.Checked = Permissions[0] == '1';
                    chkAllowStoreFolders.Checked = Permissions[1] == '1';
                    chkAllowRenameFiles.Checked = Permissions[2] == '1';
                    chkAllowRenameFolders.Checked = Permissions[3] == '1';
                    chkAllowDeleteFiles.Checked = Permissions[4] == '1';
                    chkAllowDeleteFolders.Checked = Permissions[5] == '1';
                    chkAllowCopyFiles.Checked = Permissions[6] == '1';
                    chkAllowViewHiddenFiles.Checked = Permissions[7] == '1';
                    chkAllowViewHiddenFolders.Checked = Permissions[8] == '1';
                }//为用户设置权限的初始值,1为打勾。
                else
                {
                    MessageBox.Show("The user with the name " + OldUserName + " dose not exist.", "Advanced FTP Server");
                    DialogResult = DialogResult.OK;
                    Close();
                }
            }

            void BrowseRootFolder_Click(object sender, EventArgs e)
            {
                FolderBrowserDialog FBD = new FolderBrowserDialog();
                FBD.Description = "Select the Root Folder for the user";
                FBD.ShowNewFolderButton = true;
                FBD.SelectedPath = txtStartUpPath.Text;
                if (FBD.ShowDialog() == DialogResult.Cancel) return;
                txtStartUpPath.Text = FBD.SelectedPath;
            }//选择启动路径

            void SaveUser_Click(object sender, EventArgs e)
            {
                txtUserName.Text = txtUserName.Text.Trim();
                txtStartUpPath.Text = txtStartUpPath.Text.Trim();

                string Message = string.Empty;

                if (txtUserName.Text.Length < 2) Message = "User Name cannot be lesser than 2 chars\n ";
  1. 上一篇:造币机械生产车间信息管理系统分析与研究
  2. 下一篇:C#的家庭理财系统软件设计+ER图
  1. 基于MATLAB的图像增强算法设计

  2. jsp+sqlserver高校二手商品交...

  3. 基于Kinect的手势跟踪与识别算法设计

  4. JAVA基于安卓平台的医疗护工管理系统设计

  5. java+mysql设备监控记录的大...

  6. 基于核独立元分析的非线...

  7. 基于Hadoop的制造过程大数据存储平台构建

  8. 电站锅炉暖风器设计任务书

  9. 河岸冲刷和泥沙淤积的监测国内外研究现状

  10. 杂拟谷盗体内共生菌沃尔...

  11. 十二层带中心支撑钢结构...

  12. 酸性水汽提装置总汽提塔设计+CAD图纸

  13. java+mysql车辆管理系统的设计+源代码

  14. 当代大学生慈善意识研究+文献综述

  15. 乳业同业并购式全产业链...

  16. 大众媒体对公共政策制定的影响

  17. 中考体育项目与体育教学合理结合的研究

  

About

751论文网手机版...

主页:http://www.751com.cn

关闭返回