コード例 #1
0
        private void loadSettings()
        {
            chkImmediateStart.Checked    = Properties.Settings.Default.ImmediateStart;
            chkEnableLog.Checked         = Properties.Settings.Default.EnableLog;
            chkEnablePanelServer.Checked = Properties.Settings.Default.EnablePanelServer;
            txtPanelServerPort.Text      = Properties.Settings.Default.PanelServerPort;

            if (Caller.GetServerState() == State.Started)
            {
                BindingList <ClientInfo> activeClients = new BindingList <ClientInfo>(Caller.GetMatricApi().GetConnectedClients());
                BindingSource            dgvSource     = new BindingSource(activeClients, null);
                dgvActiveClients.DataSource = dgvSource;
            }
        }