Esempio n. 1
0
        private void btnGetFolderId_Click(object sender, EventArgs e)
        {
            FolderIdDialog oForm = new FolderIdDialog(this.CurrentService);

            oForm.ShowDialog();
            if (oForm.ChoseOK == true)
            {
                txtFolderId.Text = PropertyInformation.TypeValues.FolderIdTypeValue.GetValue(oForm.ChosenFolderId, true);
            }
        }
Esempio n. 2
0
        private void btnFolderId_Click(object sender, EventArgs e)
        {
            FolderIdDialog oForm = new FolderIdDialog(_CurrentService);

            oForm.ShowDialog();
            if (oForm.ChoseOK == true)
            {
                lblFolderId.Text = PropertyInterpretation.GetPropertyValue(oForm.ChosenFolderId);
            }

            //if (FolderIdDialog.ShowDialog(ref this._SelectedFolder) == DialogResult.OK)
            //{
            //    lblFolderId.Text = PropertyInterpretation.GetPropertyValue(this._SelectedFolder);
            //}
        }
        private void btnGetFolderId_Click(object sender, EventArgs e)
        {
            FolderIdDialog oForm = new FolderIdDialog(this.CurrentService);

            oForm.ShowDialog();
            if (oForm.ChoseOK == true)
            {
                SetAndDisplayFolderId(oForm.ChosenFolderId);
            }

            //FolderId folderId = null;
            //if (Forms.FolderIdDialog.ShowDialog(ref folderId) == DialogResult.OK)
            //{
            //    SetAndDisplayFolderId(folderId);
            //}
        }
Esempio n. 4
0
        private void btnGetFolderId_Click(object sender, EventArgs e)
        {
            FolderIdDialog oForm = new FolderIdDialog(this.CurrentService);

            oForm.ShowDialog();
            if (oForm.ChoseOK == true)
            {
                txtFolderId.Text = PropertyInformation.TypeValues.FolderIdTypeValue.GetValue(oForm.ChosenFolderId, true);
            }

            //FolderId folderId = null;
            //if (Forms.FolderIdDialog.ShowDialog(ref folderId) == DialogResult.OK)
            //{
            //   // SetAndDisplayFolderId(folderId);
            //    _ChosenFolderId = folderId;
            //    txtFolderId.Text = PropertyInformation.TypeValues.FolderIdTypeValue.GetValue(folderId, true);

            //}
        }
        private void btnGetFolderId_Click(object sender, EventArgs e)
        {
            FolderIdDialog oForm = new FolderIdDialog(this.CurrentService);

            oForm.ShowDialog();
            if (oForm.ChoseOK == true)
            {
                //oForm.ChosenFolderId

                CurrentFolderId       = oForm.ChosenFolderId;
                this.txtFolderId.Text = PropertyInformation.TypeValues.FolderIdTypeValue.GetValue(oForm.ChosenFolderId, true);
            }

            //FolderId oFolder = null;
            //if (Forms.FolderIdDialog.ShowDialog(ref oFolder) == DialogResult.OK)
            //{
            //    CurrentFolderId = oFolder;
            //    this.txtFolderId.Text = PropertyInformation.TypeValues.FolderIdTypeValue.GetValue(oFolder, true);

            //}
        }
Esempio n. 6
0
        /// <summary>
        /// Allow the user to input an FolderId and display folder items
        /// in FolderContentsForm.
        /// </summary>
        /// <param name="sender">The parameter is not used.</param>
        /// <param name="e">The parameter is not used.</param>
        private void MnuOpenFolderById_Click(object sender, EventArgs e)
        {
            FolderIdDialog oForm = new FolderIdDialog(this.CurrentService);

            oForm.ShowDialog();
            if (oForm.ChoseOK == true && oForm.ChosenFolderId != null)
            {
                //oForm.ChosenFolderId
                this.CurrentService.ClientRequestId = Guid.NewGuid().ToString();  // Set a new GUID

                Folder folder = Folder.Bind(
                    this.CurrentService,
                    oForm.ChosenFolderId,
                    this.CurrentDetailPropertySet);

                FolderContentForm.Show(
                    string.Format(DisplayStrings.TITLE_CONTENTS_FOLDER, folder.DisplayName),
                    folder,
                    ItemTraversal.Shallow,
                    this.CurrentService,
                    this);
            }

            //FolderId folderId = null;
            //if (FolderIdDialog.ShowDialog(ref folderId) == DialogResult.OK && folderId != null)
            //{
            //    Folder folder = Folder.Bind(
            //        this.CurrentService,
            //        folderId,
            //        this.CurrentDetailPropertySet);

            //    FolderContentForm.Show(
            //        string.Format(DisplayStrings.TITLE_CONTENTS_FOLDER, folder.DisplayName),
            //        folder,
            //        ItemTraversal.Shallow,
            //        this.CurrentService,
            //        this);
            //}
        }