コード例 #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;
        }
    }
コード例 #2
0
        void ReleaseDesignerOutlets()
        {
            if (AlertButton != null)
            {
                AlertButton.Dispose();
                AlertButton = null;
            }

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

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

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

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

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