public bool openSchema(string file) { var xmlSerializer = new System.Xml.Serialization.XmlSerializer(typeof(ChartingModel)); try { var document = System.Xml.Linq.XDocument.Load(file); model = (ChartingModel)xmlSerializer.Deserialize(document.CreateReader()); } catch (System.Xml.XmlException) { return(false); } return(true); }
public ChartingController() { model = new ChartingModel(); view = new ChartingView(this); view.Show(); }