Beispiel #1
0
        private void listBox_Properties_DoubleClick(object sender, EventArgs e)
        {
            if (null != objectManager.SelectedObject && null == form_AddProperty)
            {
                Property temp = objectManager.SelectedObject.Properties[listView_Properties.SelectedIndices[0]];
                form_AddProperty = new AddProperty(true, temp.Name, temp.Value);

                form_AddProperty.ShowDialog(this);

                objectManager.SelectedObject.Properties.Sort(delegate(Property p1, Property p2) { return p1.Name.CompareTo(p2.Name); });
                FixViewList();
            }
        }
Beispiel #2
0
        private void button_AddProperty_Click(object sender, EventArgs e)
        {
            if (null != objectManager.SelectedObject && null == form_AddProperty)
            {
                form_AddProperty = new AddProperty();

                if (System.Windows.Forms.DialogResult.OK == form_AddProperty.ShowDialog(this))
                {
                    objectManager.SelectedObject.Properties.Sort(delegate(Property p1, Property p2) { return p1.Name.CompareTo(p2.Name); });
                    FixViewList();
                }
            }
        }