Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void BtnDel_Click(object sender, EventArgs e)
- {
- ShowDialog(DATE_DIALOG);
- }
- protected override Dialog OnCreateDialog(int id)
- {
- switch (id)
- {
- case DATE_DIALOG:
- {
- return new DatePickerDialog(this, this, year, month, day);
- }
- break;
- case DATE_DIALOG2:
- {
- return new DatePickerDialog(this, this, anio, mes, dia);
- }
- break;
- default:
- break;
- }
- return null;
- }
- public void OnDateSet(DatePicker view, int year, int month, int dayOfMonth)
- {
- this.year = year;
- this.month = month;
- this.day = dayOfMonth;
- Toast.MakeText(this, "Seleccionaste :" + (month + 1) + "/" + day + "/" + year, ToastLength.Short).Show();
- string Del = (year + "-" + (month + 1) + "-" + day).ToString();
- btnDel.Text = Del;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement