protected void ShowMessage(string Msg, EventHandler <DialogClickEventArgs> OkHandler) { FragmentTransaction ft = FragmentManager.BeginTransaction(); CSIMessageDialog AlertDialog = new CSIMessageDialog(GetString(Resource.String.app_name), Msg, DialogTypes.OK, this.BaseActivity); AlertDialog.OkHandler += OkHandler; AlertDialog.Show(ft, ""); }
private void ShowDialog(Exception Ex) { FragmentTransaction ft = FragmentManager.BeginTransaction(); CSIMessageDialog Dialog = (CSIMessageDialog)FragmentManager.FindFragmentByTag("Dialog"); if (Dialog != null) { ft.Show(Dialog); } else { Dialog = new CSIMessageDialog(Application.Context.GetString(Resource.String.app_name), CSIBaseInvoker.TranslateError(Ex), DialogTypes.OK); Dialog.Show(ft, "Dialog"); } }
public void ShowProcessedMessage(EventHandler <DialogClickEventArgs> OkHandler = null) { string msg = string.Empty; if (string.IsNullOrEmpty(BuildKeyString())) { msg = CSISystemContext.ForceAutoPost ? GetString(Resource.String.Posted) : GetString(Resource.String.Processed); } else { msg = string.Format(CSISystemContext.ForceAutoPost ? GetString(Resource.String.Posted) : GetString(Resource.String.Processed1), BuildKeyString()); } FragmentTransaction ft = FragmentManager.BeginTransaction(); CSIMessageDialog AlertDialog = new CSIMessageDialog(GetString(Resource.String.app_name), msg, DialogTypes.OK, this.BaseActivity); AlertDialog.OkHandler += OkHandler; AlertDialog.Show(ft, ""); }