Exemplo n.º 1
0
 protected void newConditionClicked(object sender, EventArgs e)
 {
     Tables.Conditions condition = new Tables.Conditions
     {
     };
     condition.Users = new List <User>
     {
         user
     };
     Navigation.PushModalAsync(new ConditionForum(condition));
 }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
 public ConditionForum(Tables.Conditions cond)
 {
     InitializeComponent();
     condition = cond;
 }