Example #1
0
        public override string ToString()
        {
            string str = "";

            str += "VPIP: " + VPIP.ToString() + "\n";
            str += "PFR: " + PFR.ToString() + "\n";
            str += "WTP: " + WTP.ToString() + "\n";
            str += "Aggression: " + AGG.ToString() + "\n\n";

            return(str + paramsToString());
        }
Example #2
0
        public int WTP(WTPModel wTPModel)
        {
            using (var context = new INVENTORYEntities())
            {
                WTP wtp = new WTP();


                wtp.location    = wTPModel.Location;
                wtp.itemname    = wTPModel.ItemName;
                wtp.SubLocation = wTPModel.SubLocation;

                wtp.diameter = wTPModel.Diameter;
                wtp.capacity = wTPModel.Capacity;

                wtp.qty = wTPModel.Quantity;

                wtp.discription = wTPModel.Description;
                wtp.UserName    = UserNameSessionData;

                context.WTP.Add(wtp);
                context.SaveChanges();
                return(wtp.itemcode);
            }
        }
Example #3
0
    public WTPSave(GameObject go) : base(go)
    {
        WTP w = go.GetComponent <WTP>();

        WaterFill = w.WaterFill;
    }