示例#1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     try
     {
         FormSerialisor.Deserialise(this, Application.StartupPath + @"\cfg.xml");
     }
     catch (Exception)
     {
         errorLabel.Text = "Error loading configuration";
     }
 }
示例#2
0
 private void button2_Click(object sender, EventArgs e)
 {
     FormSerialisor.Serialise(this, Application.StartupPath + @"\cfg.xml");
 }