Esempio n. 1
0
        private void btnSendCommand_Click(object sender, EventArgs e)
        {
            // show device command form
            if (dataBox.AgentClient is IAgentClient agentClient)
            {
                if (frmDeviceCommand == null)
                {
                    frmDeviceCommand = new FrmDeviceCommand(adminContext, deviceConfig);
                }

                frmDeviceCommand.AgentClient = agentClient;
                frmDeviceCommand.ShowDialog();
            }
        }