Пример #1
0
    void ReleaseDesignerOutlets()
    {
        if (ActionSheetBottomButton != null)
        {
            ActionSheetBottomButton.Dispose();
            ActionSheetBottomButton = null;
        }

        if (ActionSheetButton != null)
        {
            ActionSheetButton.Dispose();
            ActionSheetButton = null;
        }

        if (AlertButton != null)
        {
            AlertButton.Dispose();
            AlertButton = null;
        }

        if (ConfirmButton != null)
        {
            ConfirmButton.Dispose();
            ConfirmButton = null;
        }

        if (DeleteButton != null)
        {
            DeleteButton.Dispose();
            DeleteButton = null;
        }

        if (LoadingButton != null)
        {
            LoadingButton.Dispose();
            LoadingButton = null;
        }

        if (PromptButton != null)
        {
            PromptButton.Dispose();
            PromptButton = null;
        }

        if (SnackbarButton != null)
        {
            SnackbarButton.Dispose();
            SnackbarButton = null;
        }

        if (ToastButton != null)
        {
            ToastButton.Dispose();
            ToastButton = null;
        }
    }