protected void btSystemShut_Click(object sender, System.EventArgs e) { ApiControl admC = Config.GetApIEngine(); try { admC.ChangeClientConnectionsAllowedStatus(4); lbStatus.Text = "Client Connections Allowed Status changed to Shutdown"; lbStatus.ForeColor = Color.Green; } catch { lbStatus.Text = "Client Connections Allowed Status change error"; lbStatus.ForeColor = Color.Red; } finally { admC = null; } }
protected void btEnableCln_Click(object sender, System.EventArgs e) { ApiControl admC = Config.GetApIEngine(); try { admC.ChangeClientConnectionsAllowedStatus(1); lbStatus.Text = "Client Connections Enabled"; lbStatus.ForeColor = Color.Green; } catch { lbStatus.Text = "Error during enable Client Connections"; lbStatus.ForeColor = Color.Red; } finally { admC = null; } }