F_PropertyGrid_Mod.cs

33 lines | 733 B Blame History Raw Download
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinForm_And_Data.Forms.PropertyGrid
{
    public partial class F_PropertyGrid_Mod : Form
    {
        public F_PropertyGrid_Mod(Object obj)
        {
            InitializeComponent();

            listBox1.DataSource = obj;
        }

        private void F_PropertyGrid_Mod_Load(object sender, EventArgs e)
        {

        }

        private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            propertyGrid1.SelectedObject = listBox1.SelectedItem;
        }
    }
}