public void OnSelection(MaterialDialog p0, View p1, int p2, ICharSequence itemString) { try { if (itemString.ToString() == GetText(Resource.String.image)) { ContextActivity.OnImage_Button_Click(); } else if (itemString.ToString() == GetText(Resource.String.video)) { ContextActivity.OnVideo_Button_Click(); } } catch (Exception e) { Console.WriteLine(e); } }