private void DialogViewPlan(ORM.Plan plan) { if (plan != null) { FragmentTransaction transaction = Activity.FragmentManager.BeginTransaction(); Helpers.DialogViewPlan dialog = new Helpers.DialogViewPlan(Activity, plan); dialog.Show(transaction, "dialog"); dialog.OnDelete += delegate { Adapter = new Adapters.Plan(mContext, dbr.GetPlans()); listView.Adapter = Adapter; }; dialog.OnSave += delegate { Adapter = new Adapters.Plan(mContext, dbr.GetPlans()); listView.Adapter = Adapter; }; } }
public OnSelectedEventArgs(ORM.Plan plan) { Plan = plan; }