private void button2_Click(object sender, EventArgs e) { Frm_Plan f = new Frm_Plan(); f.ShowDialog(); if (f.DialogResult == System.Windows.Forms.DialogResult.OK) { D3Config.LoadPlanList(); BindCMB(); } }
private void button3_Click(object sender, EventArgs e) { if (D3Config.PLAN.Path.ToUpper().Contains("DEFAULT.TXT")) { MessageBox.Show("默认的不能删除"); return; } System.IO.File.Delete(D3Config.PLAN.Path); System.IO.File.WriteAllText(D3Config.DefaultPath, D3Config.PlanPath + "\\Default.txt", Encoding.GetEncoding("gb2312")); D3Config.LoadPlanList(); BindCMB(); }