Example #1
0
        /// <summary>
        /// Toogles the view between SendAlert and SentAlert.
        /// </summary>
        void ToogleView()
        {
            if (BtnToogle)
            {
                IBBtnLeadingSpaceConstarint.Constant  = 30;
                IBBtntrailingSpaceConstarint.Constant = 30;
                IBSendAlertLbl.Text = StringConstants.Instance.SendAlert;

                UIView.Animate(0.1, () => { IBBtn1Vw.LayoutIfNeeded(); });

                IBRoundBtnImg.Highlighted = false;
                BtnToogle = false;
            }
            else
            {
                IBBtnLeadingSpaceConstarint.Constant  = 0;
                IBBtntrailingSpaceConstarint.Constant = 0;
                IBSendAlertLbl.Text = StringConstants.Instance.AlertSending;
                UIView.Animate(0.1, () => { IBBtn1Vw.LayoutIfNeeded(); });
                IBRoundBtnImg.Highlighted = true;
                BtnToogle = true;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (IBBgImg != null)
            {
                IBBgImg.Dispose();
                IBBgImg = null;
            }

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

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

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

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

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

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

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

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

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