Exemplo n.º 1
0
        private void recentServer_Click(object sender, EventArgs e)
        {
            SCConnectionStringBuilder selectedServer = (SCConnectionStringBuilder)(sender as ToolStripMenuItem).Tag;

            ServerConfiguration config = new ServerConfiguration();

            config.CreateNewServerConfig(selectedServer);

            this.GetRecentServers();
            K2Client.Instance.K2Config.HostServerConnectionString = selectedServer.ConnectionString;
            this.ChangeServerStatus();

            SyncFromServer();
        }
        private void btnOK_Click(object sender, EventArgs e)
        {
            if (_changed)
            {
                if (!CheckConnection(false))
                {
                    return;
                }
            }

            ServerConfiguration config = new ServerConfiguration();

            config.CreateNewServerConfig(ConnectionBuilder);

            this.DialogResult = DialogResult.OK;
            this.Close();
        }