예제 #1
0
        private void Init()
        {
            AccountUC Uc = new AccountUC(m_user, m_pass, m_socket, this);

            m_UC = Uc;
            this.Controls.Add(Uc);
            Uc.Show();

            // Show the form
            this.Show();

            // Not in a group
            Uc.IsMaster = false;
            Uc.IsSlave  = false;

            // Fill the account form
            Uc.Dock = DockStyle.Fill;

            // Call socket/mitm init
            if (m_socket)
            {
                Uc.Init();
            }
            else
            {
                Uc.InitMITM();
            }
        }
예제 #2
0
        public AccountFrm(string username, string password, bool socket)
        {
            InitializeComponent();
            // Add the UC
            AccountUC Uc = new AccountUC(username, password, socket);

            this.Controls.Add(Uc);
            Uc.Show();

            // Show the form
            this.Show();

            // Not in a group
            Uc.IsMaster = false;
            Uc.IsSlave  = false;

            // Fill the account form
            Uc.Dock = DockStyle.Fill;

            // Call socket/mitm init
            if (socket)
            {
                Uc.Init();
            }
            else
            {
                Uc.InitMITM();
            }
        }