示例#1
0
文件: Rg.cs 项目: JIAMing12/Ragnarok
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Login_Form f1 = new Login_Form();

            f1.Show();
            Application.Run();
        }
示例#2
0
        //public byte[] AES_Key = new byte[32];
        //public byte[] AES_IV = new byte[16];


        public Chat_Form(Login_Form tf1)
        {
            InitializeComponent();
            f1 = tf1;
            TargetID_Lable.Text = "正在与 " + CFG.TargetID + " 聊天:";
            RSA_module.RSA_pair(out pubkey, out privkey);
            Thread Sh = new Thread(new ThreadStart(ShakeHand));

            Sh.Start();
            Sh.Join();
            Thread ChT = new Thread(new ThreadStart(OpenChat_tunnel));

            ChT.Start();
        }