예제 #1
0
        private void propertyEditorButton_Clicked(object sender, EventArgs e)
        {
            List <AssetProperty> properties = new List <AssetProperty>();

            if (savedProperties != null)
            {
                foreach (AssetProperty property in savedProperties)
                {
                    properties.Add(new AssetProperty(property));
                }
                using (AssetPropertyCollectionEditor dlg = new AssetPropertyCollectionEditor(properties))
                {
                    if (dlg.ShowDialog() == DialogResult.OK)
                    {
                        savedProperties = dlg.Properties;
                    }
                    if (dlg.SomethingChanged && !somethingChanged)
                    {
                        setSomethingChanged();
                    }
                }
            }
        }
예제 #2
0
 private void propertyEditorButton_Clicked(object sender, EventArgs e)
 {
     List<AssetProperty> properties = new List<AssetProperty>();
     if (savedProperties != null)
     {
         foreach (AssetProperty property in savedProperties)
         {
             properties.Add(new AssetProperty(property));
         }
         using (AssetPropertyCollectionEditor dlg = new AssetPropertyCollectionEditor(properties))
         {
             if (dlg.ShowDialog() == DialogResult.OK)
             {
                 savedProperties = dlg.Properties;
             }
             if (dlg.SomethingChanged && !somethingChanged)
             {
                 setSomethingChanged();
             }
         }
     }
 }