Exemple #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (listBox1.SelectedItem != null)
     {
         //d.dosyaAc(path + k.kullaniciAdi +@"\"+ listBox1.SelectedItem+@".not");
         context.dosyaAc(path + k.kullaniciAdi + @"\" + listBox1.SelectedItem + @".not");
     }
 }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string newPath = path + @"\" + textBox1.Text + ".not";

            if (secim == 0)
            {
                File.WriteAllText(newPath, "");
            }
            else
            {
                string buffer = File.ReadAllText(eskiDosya);
                File.WriteAllText(newPath, buffer);
                File.Delete(eskiDosya);
            }
            context.dosyaAc(newPath);
        }