public static bool GetCardUseInfo(long card, ushort RestCode, byte UnitNo)
        {
            ushort restCode = Convert.ToUInt16(RestCode);
            byte   unitNo   = Convert.ToByte(UnitNo);

            return(RKeeperApi.getCardUseInfo(card, restCode, unitNo, ref CardUseInfo));
        }
 public static void GetAllAccounts()
 {
     if (ListAllAccountInfo == null)
     {
         ListAllAccountInfo = new List <TAccountInfo>();
     }
     ListAllAccountInfo.Clear();
     RKeeperApi.GetAllAccounts(ref ListAllAccountInfo);
 }
 public static void GetFindAccounts(string mask)
 {
     if (ListFindAccounts == null)
     {
         ListFindAccounts = new List <TFindAccounts>();
     }
     ListFindAccounts.Clear();
     RKeeperApi.getFindAccounts(mask, ref ListFindAccounts);
 }
        public static bool InitDialog(string userName, string password)
        {
            RKeeper.UserName = userName;
            RKeeper.Password = password;

            IsOpen = RKeeperApi.setLogin(UserName, Password);

            return(IsOpen);
        }
 public static void GetAllTransactions(DateTime dtBegin, DateTime dtEnd)
 {
     if (ListAllTransactions == null)
     {
         ListAllTransactions = new List <ETransactionInfo>();
     }
     ListAllTransactions.Clear();
     RKeeperApi.GetAllTransactions(dtBegin, dtEnd, ref ListAllTransactions);
 }
 public static bool GetAccountInfo(int Account)
 {
     return(RKeeperApi.getAccountInfo(Account, ref AccountInfo));
 }
 public static void GetVersionProtocol()
 {
     RKeeperApi.GetVersionProtocolCS(ref Protocol);
 }
 public static bool GetAccount(long card)
 {
     return(RKeeperApi.GetAccount(card, ref AccountID));
 }
 public static void GetVersion()
 {
     RKeeperApi.GetVersion(ref Version);
 }
 public static bool SendTransaction(int Account, TTransactionInfo info)
 {
     return(RKeeperApi.CashTransaction(Account, info));
 }