protected void newConditionClicked(object sender, EventArgs e) { Tables.Conditions condition = new Tables.Conditions { }; condition.Users = new List <User> { user }; Navigation.PushModalAsync(new ConditionForum(condition)); }
private void OnDelete(object sender, EventArgs e) { var mi = ((MenuItem)sender); Tables.Conditions condition = new Tables.Conditions { }; using (SQLite.SQLiteConnection conn = new SQLite.SQLiteConnection(App.FilePath)) { condition = conn.GetWithChildren <Conditions>(mi.CommandParameter); user = conn.GetWithChildren <User>(uid); conn.Delete(condition); conn.UpdateWithChildren(user); } OnAppearing(); }
public ConditionForum(Tables.Conditions cond) { InitializeComponent(); condition = cond; }