Esempio n. 1
0
        private void textBox1_DoubleClick(object sender, EventArgs e)
        {
            OpenFileDialog file = new OpenFileDialog();

            //file.Filter = "Excel Dosyası |*.xlsx| Excel Dosyası|*.xls";
            //file.FilterIndex = 2;
            file.RestoreDirectory = true;
            file.CheckFileExists  = false;
            file.Title            = "Dosya seçimi yapın.";

            if (file.ShowDialog() == DialogResult.OK)
            {
                textBox1.Text  = file.FileName;
                Kaynakdosyaadi = file.SafeFileName;
            }

            Cls_Text t = new Cls_Text();

            t.DosyaYolu = file.FileName;


            if (Liste.Count == 0)
            {
                Liste.Add(t);
            }
            else
            {
                Liste[0] = t;
            }
        }
Esempio n. 2
0
        private void btnTemizle_Click(object sender, EventArgs e)
        {
            listBox1.Items.Clear();
            Liste.Clear();
            Cls_Text t = new Cls_Text();

            t.DosyaYolu = textBox1.Text;
            Liste.Add(t);
        }
Esempio n. 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "")
            {
                MessageBox.Show("Kaynak dosya yolunu girmelisiniz!");
                return;
            }

            if (textBox2.Text == "")
            {
                MessageBox.Show("Hedef dosya yolunu girmelisiniz!");
                return;
            }

            listBox1.Items.Add(textBox2.Text + "\\" + Kaynakdosyaadi);
            Cls_Text t = new Cls_Text();

            t.DosyaYolu = textBox2.Text + "\\" + Kaynakdosyaadi;
            Liste.Add(t);
        }