public static DataHora NewInstance(Action <DateTime> onDateSelected) { DataHora frag = new DataHora(); frag._dateSelectedHandler = onDateSelected; return(frag); }
void DateSelect_OnClick(object sender, EventArgs eventArgs) { DataHora frag = DataHora.NewInstance(delegate(DateTime time) { //_dateDisplay.Text = time.ToLongDateString(); }); frag.Show(FragmentManager, DataHora.TAG); }