Beispiel #1
0
 private void addMenuItem_Click(object sender, EventArgs e)
 {
     using (ModifyServerForm form = new ModifyServerForm())
     {
         _presenter.AddServer();
     }
 }
        public void AddServer()
        {
            using (ModifyServerForm form = new ModifyServerForm())
            {
                form.ShowDialog();
            }

            LoadServers(false);
        }
        public void ModifyServer(string serverName)
        {
            var server = (from ServerElement element in _config.ServerCollection
                          where element.Name == serverName
                          select element).LastOrDefault();

            using (ModifyServerForm form = new ModifyServerForm())
            {
                form.ServerElement = server;
                form.ShowDialog();
            }

            LoadServers(false);
        }
 public ModifyServerPresenter(ModifyServerForm form)
 {
     _form = form;
 }