Beispiel #1
0
 public void SetHost(HostInfo _host)
 {
     host          = _host;
     tb_title.Text = _host.Name;
     tb_cert.Text  = _host.Cert;
     tb_ip.Text    = _host.Ipa;
     tb_pt.Text    = _host.Port;
     tb_pwd.Text   = Secret.RC4Decrypt(_host.Pwd);
     tb_uin.Text   = _host.Uin;
     tb_cert.Text  = _host.Cert;
 }
Beispiel #2
0
        public Session(HostInfo _host)
        {
            p = new Process();
            InitializeComponent();

            host = _host;

            Dock           = DockStyle.Fill;
            DoubleBuffered = true;
            SetStyle(ControlStyles.DoubleBuffer | ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true);
            UpdateStyles();

            EventBus.On += EventBus_On;
        }
Beispiel #3
0
 private void bt_Ok_Click(object sender, EventArgs e)
 {
     host = new HostInfo()
     {
         Name = tb_title.Text,
         Ipa  = tb_ip.Text,
         Port = tb_pt.Text,
         Uin  = tb_uin.Text,
         Pwd  = Secret.RC4Encrypt(tb_pwd.Text),
         Cert = tb_cert.Text
     };
     DialogResult = DialogResult.OK;
     Close();
 }