Exemplo n.º 1
0
 private void button4_Click(object sender, EventArgs e)
 {
     openFileDialog1.Title  = "载入本地配置";
     openFileDialog1.Filter = "配置文档(*.cfg)|*.cfg";
     if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
     {
         List <ConfigEntity> configs = owner.LoadConfigFromLocal(openFileDialog1.FileName);
         LoadConfigs(configs);
     }
     openFileDialog1.Dispose();
 }