public override void ViewDidLoad() { base.ViewDidLoad(); ShowAlertButton.SetCommand(ViewModel.OpenAlertCommand); ShowConfirmButton.SetCommand(ViewModel.OpenConfirmCommand); ShowActionSheetButton.SetCommand(ViewModel.OpenActionSheetCommand); ShowDialogUntilDismissButton.SetCommand(ViewModel.OpenDialogUntilDismissCommand); ShowDialogUntilResultButton.SetCommand(ViewModel.OpenDialogUntilResultCommand); OpenTwoDialogsButton.SetCommand(ViewModel.OpenTwoDialogsCommand); }
void ReleaseDesignerOutlets() { if (AlertResultLabel != null) { AlertResultLabel.Dispose(); AlertResultLabel = null; } if (DialogUntilDismissResultLabel != null) { DialogUntilDismissResultLabel.Dispose(); DialogUntilDismissResultLabel = null; } if (OpenTwoDialogsButton != null) { OpenTwoDialogsButton.Dispose(); OpenTwoDialogsButton = null; } if (ShowAlertButton != null) { ShowAlertButton.Dispose(); ShowAlertButton = null; } if (ShowDialogUntilDismissButton != null) { ShowDialogUntilDismissButton.Dispose(); ShowDialogUntilDismissButton = null; } if (ShowDialogUntilResultButton != null) { ShowDialogUntilResultButton.Dispose(); ShowDialogUntilResultButton = null; } if (ShowDialogUntilResultLabel != null) { ShowDialogUntilResultLabel.Dispose(); ShowDialogUntilResultLabel = null; } if (ShowConfirmButton != null) { ShowConfirmButton.Dispose(); ShowConfirmButton = null; } if (ShowActionSheetButton != null) { ShowActionSheetButton.Dispose(); ShowActionSheetButton = null; } if (ConfirmResultLabel != null) { ConfirmResultLabel.Dispose(); ConfirmResultLabel = null; } if (ActionSheetResultLabel != null) { ActionSheetResultLabel.Dispose(); ActionSheetResultLabel = null; } }