Exemplo n.º 1
0
        /// <summary>
        /// To create the first xml
        /// </summary>
        public static void Main()
        {
            ConstantsHolder ch = new ConstantsHolder();

            ch.SaveXml();
        }
Exemplo n.º 2
0
 /// <summary>
 /// To create the first xml
 /// </summary>
 public static void Main()
 {
     ConstantsHolder ch = new ConstantsHolder();
     ch.SaveXml();
 }
Exemplo n.º 3
0
 /// <summary>
 /// saves the state in the xml file each time a property is modified
 /// </summary>
 /// <param name="s"></param>
 /// <param name="e"></param>
 private void propertyGrid_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
 {
     data.SaveXml();
     //refresh, needed if some properties are dynamically calculated
     //this.propertyGrid.SelectedObject = data;
 }