示例#1
0
        void AddPath()
        {
            if (lvRecTVFolders.Items.Count > (MAX_FOLDERS - 1))
            {
                RPMessageBox.ShowAlert("You may only add up to " + MAX_FOLDERS.ToString() + " folders.");
                return;
            }


            FormInputBox fInputBox = new FormInputBox("Add path to folder", "Enter the path to a folder - e.g. \\\\SERVER\\SHARENAME", "\\SERVER\\SHARE_NAME");

            if (fInputBox.ShowDialog() == DialogResult.OK)
            {
                if (!(string.IsNullOrWhiteSpace(fInputBox.Value)))
                {
                    addFolder(fInputBox.Value);
                }
            }
        }
        void AddPath()
        {
            if (lvRecTVFolders.Items.Count > (MAX_FOLDERS - 1))
            {
                RPMessageBox.ShowAlert("You may only add up to " + MAX_FOLDERS.ToString() + " folders.");
                return;
            }

            FormInputBox fInputBox = new FormInputBox("Add path to folder", "Enter the path to a folder - e.g. \\\\SERVER\\SHARENAME", "\\SERVER\\SHARE_NAME");

            if (fInputBox.ShowDialog() == DialogResult.OK)
            {
                if (! (string.IsNullOrWhiteSpace(  fInputBox.Value) ) )
                    addFolder(fInputBox.Value);
            }
        }