Пример #1
0
 private void MainForm_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F11)
     {
         Form_PorpertiesGrid.ShowPropertiesGridFormForFocused();
     }
 }
 public static void ShowPropertiesGridFormFor(object SelectingObject)
 {
     if (form_PorpertiesGrid == null)
     {
         form_PorpertiesGrid = new Form_PorpertiesGrid();
     }
     form_PorpertiesGrid.propertyGrid1.SelectedObject = SelectingObject;
     form_PorpertiesGrid.Text = SelectingObject.ToString();
     form_PorpertiesGrid.Show();
 }
 private void Form_PorpertiesGrid_FormClosed(object sender, FormClosedEventArgs e)
 {
     form_PorpertiesGrid = null;
 }
        public Form_PorpertiesGrid()
        {
            InitializeComponent();

            form_PorpertiesGrid = this;
        }
Пример #5
0
 private void tsbObjectInspector_Click(object sender, EventArgs e)
 {
     Form_PorpertiesGrid.ShowPropertiesGridFormForFocused();
 }