예제 #1
0
파일: MainForm.cs 프로젝트: hnlylgj/lgjaps
        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();
            }
        }
예제 #2
0
파일: MainForm.cs 프로젝트: hnlylgj/lgjaps
        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);
            }
        }
예제 #3
0
파일: MainForm.cs 프로젝트: hnlylgj/lgjaps
        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();
            }
        }