/// <summary> /// To create the first xml /// </summary> public static void Main() { ConstantsHolder ch = new ConstantsHolder(); ch.SaveXml(); }
/// <summary> /// To create the first xml /// </summary> public static void Main() { ConstantsHolder ch = new ConstantsHolder(); ch.SaveXml(); }
/// <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; }