Example #1
0
        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;
        }
Example #2
0
File: Main.cs Project: wpmyj/csharp
        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 + ")";
        }
Example #3
0
File: Main.cs Project: wpmyj/csharp
 private void 保存ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Value.App_Busy = true;
     DataSave.SetDataToFile(dataGridView1, Ini.Read("MailPath"));
     Value.App_Busy = false;
 }
Example #4
0
File: Main.cs Project: wpmyj/csharp
 private void 保存SToolStripMenuItem_Click(object sender, EventArgs e)
 {
     DataSave.SetDataToFile(dataGridView1, Ini.Read("MailPath"));
 }