private void buttonWrite_Click(object sender, EventArgs e)
        {
            // кнопка выбора файла чтения
            string s = MyDialogFile.SelectTextFileAndReturnPath();

            if (s.Length > 0)
            {
                textBoxWrite.Text = s;
            }
        }
Example #2
0
 private void buttonPath_Click(object sender, EventArgs e)
 {
     textBoxPath.Text = MyDialogFile.SelectTextFileAndReturnPath();
 }
 public FormTask2_17()
 {
     InitializeComponent();
     textBoxRead.Text  = MyDialogFile.BasePathInProject() + "Name1.txt";
     textBoxWrite.Text = MyDialogFile.BasePathInProject() + "Name2.txt";
 }