Пример #1
0
        public MainView()
        {
            InitializeComponent();

            MyModele = new Modele();

            if (File.Exists("myModelData.xml"))
            {
                FileStream    fs = new FileStream("myModelData.xml", FileMode.Open);
                XmlSerializer xs = new XmlSerializer(typeof(Modele));
                MyModele = (Modele)xs.Deserialize(fs);
                fs.Close();
                timUpdate.Enabled = true;
            }
            else
            {
                UserDataView udView = new UserDataView(MyModele, true);
                udView.ShowDialog();
            }
        }
Пример #2
0
        private void userInfoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            UserDataView udView = new UserDataView(MyModele, false);

            udView.ShowDialog();
        }