private void btnPropSet_Click(object sender, EventArgs e)
        {
            PropertySet propSet = this.CurrentPropertySet;

            if (PropertySetDialog.Show(ref propSet) == DialogResult.OK)
            {
                this.CurrentPropertySet = propSet;
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Display PropertySetDialog to configure the PropertySet used
        /// to populate the details grid
        /// </summary>
        /// <param name="sender">The parameter is not used.</param>
        /// <param name="e">The parameter is not used.</param>
        private void MnuPropertySet_Click(object sender, EventArgs e)
        {
            try
            {
                // Display PropertiesDialog
                PropertySet propSet = this.CurrentDetailPropertySet;
                if (PropertySetDialog.Show(ref propSet) == DialogResult.OK)
                {
                    this.Cursor = System.Windows.Forms.Cursors.WaitCursor;

                    this.CurrentDetailPropertySet = propSet;

                    // If there is a handler for mnuRefresh, now would be a good time to
                    // call it.
                    this.mnuRefresh.PerformClick();
                }
            }
            finally
            {
                this.Cursor = System.Windows.Forms.Cursors.Default;
            }
        }