Ejemplo n.º 1
0
        private void OpenGenerated()
        {
            OpenFileDialog ofd1 = new OpenFileDialog();

            ofd1.Filter = "XML Document|*.xml";
            ofd1.Title  = "Open an XML Document";
            ofd1.ShowDialog();
            if (ofd1.FileName != "")
            {
                currentDis = new DistributionInstance();
                string str = File.ReadAllText(ofd1.FileName);
                currentDis.InitXml(str);
            }
            UpdateList(currentDis);
        }
Ejemplo n.º 2
0
        private void LoadGDFromXmlHadler(object sender, RoutedEventArgs e)
        {
            OpenFileDialog ofd1 = new OpenFileDialog();

            ofd1.Filter = "XML Document|*.xml";
            ofd1.Title  = "Open an XML Document";
            ofd1.ShowDialog();
            if (ofd1.FileName != "")
            {
                currentDis = new DistributionInstance();
                string str = File.ReadAllText(ofd1.FileName);
                currentDis.InitXml(str);
            }
            // test1();
            //test2theta();
        }