Пример #1
0
        private void bntMkDir_Click(object sender, EventArgs e)
        {
            InputDialog d = new InputDialog();

            d.Text        = "MkDir";
            d.label1.Text = "Directory name:";
            if (d.ShowDialog() == DialogResult.OK)
            {
                ResultStatus res = this.Port.MkDir(d.textBox1.Text);
                if (res.Result == ResultStatus.Statuses.Error)
                {
                    Helpers.ErrorBox(res);
                }
                else
                {
                    this.Fill();
                }
            }
            d.Dispose();
        }