Пример #1
0
        private void ProcessSendInfo(byte[] info)
        {
            string message = DecryptStringFromBytes_Aes(info, myAes.Key, myAes.IV);

            JObject jObject = JObject.Parse(message);
            string  ip      = jObject["ip"].ToString();

            string    connection = jObject["connectionString"].ToString();
            RDPClient client     = new RDPClient(connection, ip);

            HostList.clients.Add(client);
            Distribute.clients.Add(client.ip);
            HostList.Instance().CreateControl();
            if (HostList.Instance().IsHandleCreated)
            {
                HostList.AddClient(client);
            }
            if (InstallApps.Instance().IsHandleCreated)
            {
                InstallApps.AddClient(client);
            }
            if (Distribute.Instance().IsHandleCreated)
            {
                Distribute.AddClient(client);
            }
        }
Пример #2
0
        private void OnInstallClick(object sender, EventArgs e)
        {
            InstallApps main = InstallApps.Instance();

            content.Controls.Clear();
            content.Controls.Add(main);
            main.Show();
        }