private void btn_logon_Click(object sender, EventArgs e)
 {
     localhost.Service1 proxy = new localhost.Service1();
     //Set the Cookie Container on the proxy
     if (Cookies == null)
     {
         Cookies = new CookieContainer();
     }
     proxy.CookieContainer = Cookies;
     this.loggedOn         = proxy.PortalLogon(this.tb_username.Text, this.tb_password.Text);
     this.Close();
 }
        private void btn_logon_Click(object sender, EventArgs e)
        {

            localhost.Service1 proxy = new localhost.Service1();
           //Set the Cookie Container on the proxy
           if (Cookies==null)
           {
                Cookies = new CookieContainer();
           }
           proxy.CookieContainer = Cookies;
           this.loggedOn=proxy.PortalLogon(this.tb_username.Text, this.tb_password.Text);
           this.Close();
        }
        public Form1()
        {
            proxy = new localhost.Service1();
            InitializeComponent();
            setwb();

            logon form = new logon();
            form.ShowDialog();
            this.loggedOn = form.loggedOn;
            Cookies = form.Cookies;
            //we must be logged on to get to here
            getPortalData();
        }
Example #4
0
        public Form1()
        {
            proxy = new localhost.Service1();
            InitializeComponent();
            setwb();

            logon form = new logon();

            form.ShowDialog();
            this.loggedOn = form.loggedOn;
            Cookies       = form.Cookies;
            //we must be logged on to get to here
            getPortalData();
        }