示例#1
0
        void CDirectoryEntryEdit(object sender, EventArgs e)
        {
            var oe = ((ServerEventRow)sender);
            var c = new FTPConfig {FTP = oe.Server};
            if (c.ShowDialog(this)==DialogResult.OK)
            {
                Servers[oe.Index] = c.FTP;
            }
            c.Dispose();

            RenderServerList();
        }
示例#2
0
 private void button1_Click(object sender, EventArgs e)
 {
     var f = new FTPConfig { FTP = new configurationServer() };
     if (f.ShowDialog(this) == DialogResult.OK)
     {
         var l = Servers.ToList();
         l.Add(f.FTP);
         Servers = l.ToArray();
         f.Dispose();
         RenderServerList();
     }
 }
示例#3
0
        private void button1_Click(object sender, EventArgs e)
        {
            var f = new FTPConfig {
                FTP = new configurationServer()
            };

            if (f.ShowDialog(this) == DialogResult.OK)
            {
                var l = Servers.ToList();
                l.Add(f.FTP);
                Servers = l.ToArray();
                f.Dispose();
                RenderServerList();
            }
        }
示例#4
0
        private void CDirectoryEntryEdit(object sender, EventArgs e)
        {
            var oe = ((ServerEventRow)sender);
            var c  = new FTPConfig {
                FTP = oe.Server
            };

            if (c.ShowDialog(this) == DialogResult.OK)
            {
                Servers[oe.Index] = c.FTP;
            }
            c.Dispose();


            RenderServerList();
        }