예제 #1
0
        private void parentToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Task.Run(() =>
            {
                try
                {
                    if (_client.ChangeToParentDir())
                    {
                        var cp = _client.CurrentDir();

                        textBox2.Invoke(new Action(() =>
                        {
                            textBox2.Text = cp;
                        }));
                    }
                }
                catch (Exception ex)
                {
                    Log("获取ftpserver列表失败", ex.Message);
                }
            });
        }