Beispiel #1
0
        /// <summary>
        /// Handles the Click event of the buttonExpando control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        private void buttonExpando_Click(object sender, EventArgs e)
        {
            ColorPickerDialog picker = null;

            try
            {
                picker = new ColorPickerDialog
                {
                    OldColor = CurrentColor
                };
                if (picker.ShowDialog() == DialogResult.OK)
                {
                    CurrentColor = picker.SelectedColor;
                }

                EditorService.CloseDropDown();
            }
            catch (Exception ex)
            {
                GorgonDialogs.ErrorBox(null, ex);
            }
            finally
            {
                if (picker != null)
                {
                    picker.Dispose();
                }
            }
        }
Beispiel #2
0
 private void SelectButton_Click(object sender, EventArgs e)
 {
     _value = (string)PropertiesList.SelectedItem;
     if (EditorService != null)
     {
         EditorService.CloseDropDown();
     }
 }
 private void SelectButton_Click(object sender, EventArgs e)
 {
     if (PathTree.SelectedNode != null)
     {
         _value = PathTree.SelectedNode.FullPath;
         if (EditorService != null)
         {
             EditorService.CloseDropDown();
         }
     }
 }
        private void PopulateTypeTreeView()
        {
            Cursor cursorBackUp = Cursor;

            Cursor = Cursors.WaitCursor;

            List <Type> types;

            try
            {
                types = _typeFinder.GetTypes(IncludeGacCheckBox.Checked);
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message, "Error looking up the available types", MessageBoxButtons.OK, MessageBoxIcon.Error);
                Cursor = cursorBackUp;
                EditorService.CloseDropDown();
                return;
            }

            _typeTreeViewController.PopulateTreeNodes(types, _value);
            Cursor = cursorBackUp;
        }
        private void SelectButton_Click(object sender, EventArgs e)
        {
            _value = _typeTreeViewController.GetSelectedType();

            EditorService.CloseDropDown();
        }