private void button4_Click(object sender, EventArgs e) { if (!UseConfiguration.addSetting("adc", textBox3.Text)) { UseConfiguration.updateSeeting("adc", textBox3.Text); } label2.Text = UseConfiguration.getSetting("adc"); }
private void Form1_Load(object sender, EventArgs e) { string str = "LOAD DATA LOCAL INFILE '" + Environment.CurrentDirectory.Replace("\\", "\\\\") + @"\\CompanyData\\comp.csv" + "' replace into table company character set utf8 fields terminated by ',' enclosed by '\"' lines terminated by '\\n' (FCompanyCode, FCompanyName,FCompanyRight,FType)"; textBox2.Text = str; label2.Text = UseConfiguration.getSetting("adc"); string[] filenames = Directory.GetFiles(@".\"); MessageBox.Show(System.IO.Path.GetFileName(filenames[0]) + filenames[1]); }