コード例 #1
0
        private void UpdateUserInvestmentData()
        {
            List <UserInvestment> userInvestments = SqlConnector.GetUserInvestemnt_All();

            foreach (UserInvestment ui in userInvestments)
            {
                SqlConnector.UpdateDifference(ui);
            }
        }
コード例 #2
0
        private bool FindInvestment(int id)
        {
            List <UserInvestment> currentInvestments = SqlConnector.GetUserInvestemnt_All();

            foreach (UserInvestment ui in currentInvestments)
            {
                if (ui.IdInvestment == id)
                {
                    return(true);
                }
            }
            return(false);
        }