Ejemplo n.º 1
0
        public void ShowDialog(Context contxt, int id, DateTime sessionDate, bool isWorkshop)
        {
            AlertDialog.Builder builder = new AlertDialog.Builder(contxt);
            builder.SetTitle("Set Notifications");
            builder.SetMultiChoiceItems(items.Select(x => x.title).ToArray(), items.Select(x => x.selected).ToArray(), new MultiClickListener());
            var clickListener = new ActionClickListener(contxt, id, sessionDate, isWorkshop);

            builder.SetPositiveButton("OK", clickListener);
            builder.SetNegativeButton("Cancel", clickListener);
            builder.Create().Show();
        }
Ejemplo n.º 2
0
 public void ShowDialog(Context contxt, int id, DateTime sessionDate, bool isWorkshop)
 {
     AlertDialog.Builder builder = new AlertDialog.Builder(contxt);
     builder.SetTitle("Set Notifications");
     builder.SetMultiChoiceItems(items.Select(x => x.title).ToArray(), items.Select(x => x.selected).ToArray(), new MultiClickListener());
     var clickListener = new ActionClickListener(contxt, id, sessionDate, isWorkshop);
     builder.SetPositiveButton("OK", clickListener);
     builder.SetNegativeButton("Cancel", clickListener);
     builder.Create().Show();
 }