private void button3_Click(object sender, EventArgs e) { SaveFileDialog Dlg = new SaveFileDialog(); Dlg.DefaultExt = "CSV"; Dlg.InitialDirectory = Value.PathWork; Dlg.Filter = "CSV文件(*.CSV)|*.CSV"; if (Dlg.ShowDialog() == DialogResult.Cancel) { return; } DataSave.SetDataToFile(dataGridView1, Dlg.FileName); Ini.Write("MailPath", Dlg.FileName); this.Text = Dlg.FileName + Value.SoftName; }
private void 另存为AToolStripMenuItem_Click(object sender, EventArgs e) { SaveFileDialog Dlg = new SaveFileDialog(); Dlg.InitialDirectory = Value.PathWork; Dlg.DefaultExt = "CSV"; Dlg.Filter = "CSV文件(*.CSV)|*.CSV"; if (Dlg.ShowDialog() == DialogResult.Cancel) { return; } DataSave.SetDataToFile(dataGridView1, Dlg.FileName); Ini.Write("MailPath", Path.GetFileName(Dlg.FileName)); this.Text = Dlg.FileName + Value.SoftName + "(" + Value.LoginUserName + ")"; }
private void 保存ToolStripMenuItem_Click(object sender, EventArgs e) { Value.App_Busy = true; DataSave.SetDataToFile(dataGridView1, Ini.Read("MailPath")); Value.App_Busy = false; }
private void 保存SToolStripMenuItem_Click(object sender, EventArgs e) { DataSave.SetDataToFile(dataGridView1, Ini.Read("MailPath")); }