Exemplo n.º 1
0
 void AutoDownloadSettings()
 {
     DownloadHelper download= new DownloadHelper();
     download.Downloadhandle = DownSettingDoneDlg;
     download.CallingActivity = this;
     download.startDownloadCompInfo();
 }
Exemplo n.º 2
0
 void ButdownSetting_Click(object sender, EventArgs e)
 {
     Button butDown =  FindViewById<Button> (Resource.Id.butDownSetting);
     butDown.Enabled = false;
     DownloadHelper download= new DownloadHelper();
     download.Downloadhandle = DownSettingDoneDlg;
     download.CallingActivity = this;
     download.startDownloadCompInfo();
 }
Exemplo n.º 3
0
 void ButdownPrice_Click(object sender, EventArgs e)
 {
     Button butDown =  FindViewById<Button> (Resource.Id.butDownPrice);
     butDown.Enabled = false;
     DownloadHelper download= new DownloadHelper();
     download.Downloadhandle = DownItemPricesDoneDlg;
     download.CallingActivity = this;
     download.NotDownloadAll ();
     download.startDownloadItemPrices();
 }
Exemplo n.º 4
0
 void butDownloadCusts(object sender,EventArgs e)
 {
     Button butDown =  FindViewById<Button> (Resource.Id.butDownCust);
     butDown.Enabled = false;
     DownloadHelper download= new DownloadHelper();
     download.Downloadhandle =  DownCustDoneDlg;
     download.CallingActivity = this;
     download.NotDownloadAll ();
     download.startDownloadCustomer ();
 }
Exemplo n.º 5
0
        void ButdownSetting_Click(object sender, EventArgs e)
        {
            Button butDown = FindViewById <Button> (Resource.Id.butDownSetting);

            butDown.Enabled = false;
            DownloadHelper download = new DownloadHelper();

            download.Downloadhandle  = DownSettingDoneDlg;
            download.CallingActivity = this;
            download.startDownloadCompInfo();
        }
Exemplo n.º 6
0
        void ButdownStock_Click(object sender, EventArgs e)
        {
            Button butDown = FindViewById <Button> (Resource.Id.butDownStock);

            butDown.Enabled = false;
            DownloadHelper download = new DownloadHelper();

            download.Downloadhandle  = DownItemsDoneDlg;
            download.CallingActivity = this;
            download.NotDownloadAll();
            download.startDownloadItemGR();
        }
Exemplo n.º 7
0
        void butDownloadCusts(object sender, EventArgs e)
        {
            Button butDown = FindViewById <Button> (Resource.Id.butDownCust);

            butDown.Enabled = false;
            DownloadHelper download = new DownloadHelper();

            download.Downloadhandle  = DownCustDoneDlg;
            download.CallingActivity = this;
            download.NotDownloadAll();
            download.startDownloadCustomer();
        }
Exemplo n.º 8
0
        private void LoginIntoCloud()
        {
            EditText userid = FindViewById <EditText> (Resource.Id.login_userName);
            EditText passw  = FindViewById <EditText> (Resource.Id.login_password);
            EditText code   = FindViewById <EditText> (Resource.Id.login_code);
            Button   login  = FindViewById <Button>(Resource.Id.login);

            login.Enabled = false;
            login.Text    = Resources.GetString(Resource.String.msg_plswait);          // "Please wait...";
            //_client.LoginAsync (userid.Text, passw.Text, code.Text);
            DownloadHelper download = new DownloadHelper();

            download.Downloadhandle    = LoginDoneDlg;
            download.DownloadAllhandle = LoginDoneDlgEx;
            download.CallingActivity   = this;
            download.startLogin(userid.Text, passw.Text, code.Text);
        }
Exemplo n.º 9
0
 public void PerformEvent(object sender, EventParam e)
 {
     switch (e.EventID) {
     case EventID.LOGIN_DOWNCOMPLETE:
         string comp =((GlobalvarsApp)this.Application).COMPANY_CODE;
         string bran = ((GlobalvarsApp)this.Application).BRANCH_CODE;
         ShowMainActivity (comp,bran);
         break;
     case EventID.LOGIN_SUCCESS:
         if (!_donwloadPro) {
             DownloadHelper download = new DownloadHelper ();
             download.Downloadhandle = LoginDoneDlg;
             download.DownloadAllhandle = LoginDoneDlgEx;
             download.CallingActivity = this;
             download.StartDownloadAll ();
             _donwloadPro = true;
         }
         break;
     }
 }
Exemplo n.º 10
0
        public void PerformEvent(object sender, EventParam e)
        {
            switch (e.EventID)
            {
            case EventID.LOGIN_DOWNCOMPLETE:
                string comp = ((GlobalvarsApp)this.Application).COMPANY_CODE;
                string bran = ((GlobalvarsApp)this.Application).BRANCH_CODE;
                ShowMainActivity(comp, bran);
                break;

            case EventID.LOGIN_SUCCESS:
                if (!_donwloadPro)
                {
                    DownloadHelper download = new DownloadHelper();
                    download.Downloadhandle    = LoginDoneDlg;
                    download.DownloadAllhandle = LoginDoneDlgEx;
                    download.CallingActivity   = this;
                    download.StartDownloadAll();
                    _donwloadPro = true;
                }
                break;
            }
        }
Exemplo n.º 11
0
 private void LoginIntoCloud()
 {
     EditText userid = FindViewById<EditText> (Resource.Id.login_userName);
     EditText passw = FindViewById<EditText> (Resource.Id.login_password);
     EditText code = FindViewById<EditText> (Resource.Id.login_code);
     Button login = FindViewById<Button>(Resource.Id.login);
     login.Enabled = false;
     login.Text = "Please wait...";
     //_client.LoginAsync (userid.Text, passw.Text, code.Text);
     _donwloadPro = false;
     DownloadHelper download= new DownloadHelper();
     download.Downloadhandle = LoginDoneDlg;
     download.DownloadAllhandle =LoginDoneDlgEx;
     download.CallingActivity = this;
     download.startLogin(userid.Text, passw.Text, code.Text);
 }
Exemplo n.º 12
0
 //        void butDownloadCusts(object sender,EventArgs e)
 //        {
 //            Button butDown =  FindViewById<Button> (Resource.Id.butDownCust);
 //            butDown.Enabled = false;
 //            DownloadHelper download= new DownloadHelper();
 //            download.Downloadhandle =  DownCustDoneDlg;
 //            download.CallingActivity = this;
 //            download.startDownloadCustomer ();
 //        }
 private void DownloadCompInfo()
 {
     DownloadHelper download= new DownloadHelper();
     download.Downloadhandle = OnDownProfileDoneDlg;
     download.CallingActivity = this;
     download.startDownloadCompInfo(false);
 }