void ShowSelection() { WebView wv = FindViewById <WebView>(Resource.Id.conditionView); if (SelectedCondition == null) { wv.LoadUrl("about:blank"); } else { wv.LoadDataWithBaseURL(null, ConditionHtmlCreator.CreateHtml(SelectedCondition), "text/html", "utf-8", null); } }
void ShowSelection() { WebView wv = FindViewById <WebView>(Resource.Id.conditionView); if (SelectedCondition == null) { wv.LoadUrl("about:blank"); } else { wv.LoadDataWithBaseURL(null, ConditionHtmlCreator.CreateHtml(SelectedCondition), "text/html", "utf-8", null); } deleteButton.Visibility = SelectedCondition.Custom ? ViewStates.Visible : ViewStates.Gone; }