Example #1
0
        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);
        }
Example #2
0
 public ChartingController()
 {
     model = new ChartingModel();
     view  = new ChartingView(this);
     view.Show();
 }