Ejemplo n.º 1
0
 public override Boolean add(LogicAssets.frList list)
 {
     using (SQLiteCommand insert = new SQLiteCommand())
     {
         insert.CommandText = "INSERT INTO frList (name,gift_list) Values (@name,@gift_list)";
         insert.Parameters.AddWithValue("name", list.name);
         insert.Parameters.AddWithValue("gift_list", list.giftList);
         return(this.db.addProcedure(insert));
     }
 }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     LogicAssets.frList frList = new LogicAssets.frList();
     frList.name     = frListName.Text;
     frList.giftList = Int32.Parse(this.giftLists.SelectedValue.ToString());
     if (user.add(frList))
     {
         MessageBox.Show("Friend List Was Added");
     }
     else
     {
         MessageBox.Show("Something is wrong");
     }
 }
Ejemplo n.º 3
0
 public virtual Boolean add(LogicAssets.frList list)
 {
     return(false);
 }