Ejemplo n.º 1
0
        private void UpdateCallBind(object NewCallCount)
        {
            string AccountStr = (string)NewCallCount;

            //RefreshPrimeNotifyIcon("Bind:" + AccountStr);//发通知
            RefreshPrimeNotifyIcon2("Bind", AccountStr);

            string AccountID = AccountStr.Substring(0, 12);
            string mDeviceID = AccountStr.Substring(13, 12);
            string mCarID    = AccountStr.Substring(26);

            VisAccount mVisAccount = MyListVisAccount.Find(
                delegate(VisAccount VisAccountUser)
            {
                return(VisAccountUser.AccountID.Equals(AccountID));
            });

            if (mVisAccount != null)
            {
                mVisAccount.DeviceID = mDeviceID;
                mVisAccount.CarID    = mCarID;
                MFuncDataGridAccountInit();

                MyDataGridViewAccountForm.SetDataGridView();
            }
        }
Ejemplo n.º 2
0
        private int MFuncDataGridAccountFill(string AccountList)
        {
            if (AccountList != null)
            {
                if (AccountList.Length > 5)
                {
                    string OneVisAccount;
                    int    InnerVisAccountIndex;
                    OneVisAccount = AccountList;


                    VisAccount NewVisAccount = new VisAccount();
                    NewVisAccount.AccountID = OneVisAccount.Substring(0, 12);

                    OneVisAccount           = OneVisAccount.Substring(13);
                    InnerVisAccountIndex    = OneVisAccount.IndexOf(",");
                    NewVisAccount.LoginName = OneVisAccount.Substring(0, InnerVisAccountIndex);

                    OneVisAccount          = OneVisAccount.Substring(InnerVisAccountIndex + 1);
                    InnerVisAccountIndex   = OneVisAccount.IndexOf(",");
                    NewVisAccount.PassWord = OneVisAccount.Substring(0, InnerVisAccountIndex);

                    OneVisAccount          = OneVisAccount.Substring(InnerVisAccountIndex + 1);
                    NewVisAccount.MobileID = OneVisAccount;


                    MyListVisAccount.Add(NewVisAccount);



                    MFuncDataGridAccountInit();

                    return(100);
                }
                else
                {
                    return(200);
                }
            }
            else
            {
                return(200);
            }
        }
Ejemplo n.º 3
0
        private void UpdateCallLogin(object NewCallCount)
        {
            string mAccountID = (string)NewCallCount;

            //RefreshPrimeNotifyIcon("Login:"******"Login", mAccountID);

            VisAccount mVisAccount = MyListVisAccount.Find(
                delegate(VisAccount VisAccountUser)
            {
                return(VisAccountUser.AccountID.Equals(mAccountID));
            });

            if (mVisAccount != null)
            {
                mVisAccount.Login = mVisAccount.Login + 1;
                MFuncDataGridAccountInit();

                MyDataGridViewAccountForm.SetDataGridView();
            }
        }