Exemple #1
0
        private void createDirToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            var cdf = new CreateDirForm();

            if (cdf.ShowDialog(this) == DialogResult.OK)
            {
                var pathName = cdf.PathName;

                if (_client != null && _client.Connected)
                {
                    try
                    {
                        _client.MakeDir(pathName);

                        textBox2_TextChanged(null, null);

                        Log($"创建文件夹:{pathName} 成功");
                    }
                    catch (Exception ex)
                    {
                        Log($"创建文件夹:{pathName} 失败", ex.Message);
                    }
                }
            }
        }
Exemple #2
0
        void CreateRemoteDir()
        {
            var cdf = new CreateDirForm();

            if (cdf.ShowDialog(this) == DialogResult.OK)
            {
                var pathName = cdf.PathName;

                if (_client != null && _client.Connected)
                {
                    try
                    {
                        Log($"正在创建文件夹:{pathName}");

                        _client.MakeDir(pathName);

                        textBox2_TextChanged(null, null);

                        Log($"创建文件夹:{pathName} 成功");
                    }
                    catch (Exception ex)
                    {
                        Log($"创建文件夹:{pathName} 失败", ex.Message);
                    }
                }
            }
        }
Exemple #3
0
        private void createDirToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var cdf = new CreateDirForm();

            if (cdf.ShowDialog(this) == DialogResult.OK)
            {
                var pathName = cdf.PathName;

                Directory.CreateDirectory(Path.Combine(textBox1.Text, pathName));

                textBox1_TextChanged(null, null);
            }
        }
Exemple #4
0
        void CreateLocalDir()
        {
            var cdf = new CreateDirForm();

            if (cdf.ShowDialog(this) == DialogResult.OK)
            {
                var pathName = cdf.PathName;

                Directory.CreateDirectory(Path.Combine(textBox1.Text, pathName));

                RefreshLocalListView();
            }
        }