private void preferencesBTN_Click(object sender, EventArgs e)
        {
            var selectedNode = itemsTV.SelectedNode;

            if (selectedNode == null || selectedNode.Tag == null)
            {
                return;
            }
            if (selectedNode.Tag.GetType() == typeof(ServerLog))
            {
                var server = (ServerLog)selectedNode.Tag;
                using (var frm = new IAADL_App.Forms.ServerForm())
                {
                    frm.EditServerDialog(server);
                    selectedNode.Text = server.Name;
                }
            }
            else if (selectedNode.Tag.GetType() == typeof(GroupLog))
            {
                var group         = (GroupLog)selectedNode.Tag;
                var editGroupForm = new GroupForm(group);
                if (editGroupForm.ShowDialog() != DialogResult.OK)
                {
                    return;
                }
                // add node.
                selectedNode.Text = group.Name;
            }
        }
        private async void newServerBTN_Click(object sender, EventArgs e)
        {
            try
            {
                using (var frm = new IAADL_App.Forms.ServerForm())
                {
                    var newServerConf = frm.NewServerDialog(m_configuration, String.Format("Server{0}", itemsTV.Nodes[0].Nodes.Count + 1));

                    if (newServerConf == null)
                    {
                        return;
                    }

                    var newServer = await addServer(newServerConf);
                }
            }
            catch (Exception exception)
            {
                ClientUtils.HandleException(this.Text, exception);
            }
        }