private void propertyGrid1_PropertyValueChanged(object s, PropertyValueChangedEventArgs e) { this.changed = true; if (e.ChangedItem.Label == "Name") { this.treeView1.BeginUpdate(); this.treeView1.Nodes.Clear(); MKDS_Const.ObjectDatabase.GetTreeNodes(this.treeView1.Nodes, (string)null); this.treeView1.Sort(); this.treeView1.EndUpdate(); } ObjectDb.Object @object = MKDS_Const.ObjectDatabase.GetObject(((ObjectDb.Object) this.propertyGrid1.SelectedObject).ObjectId); this.label1.Text = @object.ToString(); this.label2.Text = @object.Description; this.pictureBox1.Image = (Image)@object.GetPicture(); }