コード例 #1
0
        private kindOfNeed whichKind()
        {
            kindOfNeed kind = 0;;

            if (checkdrugs && checkfood)
            {
                kind = kindOfNeed.Both;
            }
            else if (checkdrugs && !checkfood)
            {
                kind = kindOfNeed.Drugs;
            }
            else if (!checkdrugs && checkfood)
            {
                kind = kindOfNeed.Food;
            }
            return(kind);
        }
コード例 #2
0
 public Client(string name, string mail, string telephone, Address address2, int ID2, kindOfNeed mykind1)
 {
     this.ID           = ID2;
     this.name         = name;
     this.mail         = mail;
     this.telephone    = telephone;
     address           = address2;
     this.location     = new Location();
     this.Check_Status = false;
 }