Esempio n. 1
0
        private void btCreateBotFolder_Click(object sender, EventArgs e)
        {
            FormEnterText form = new FormEnterText("Введите имя папки");

            if (form.ShowDialog() == DialogResult.OK)
            {
                TaskFile tf = new TaskFile();
                tf.from      = null;
                tf.to        = System.IO.Path.Combine(tbBotFolder.Text, form.Content);
                tf.direction = 4;
                AddQueueFile(tf);
            }
        }
Esempio n. 2
0
        private void btCreateMyFolder_Click(object sender, EventArgs e)
        {
            FormEnterText form = new FormEnterText("Введите имя папки");

            if (form.ShowDialog() == DialogResult.OK)
            {
                string path = System.IO.Path.Combine(tbMyFolder.Text, form.Content);
                try
                {
                    System.IO.Directory.CreateDirectory(path);
                }
                catch
                {
                    Output.MsgErr("Не возможно создать папку " + path);
                }
            }
            UpdateMyFileList();
        }