void ReleaseDesignerOutlets()
        {
            if (WebToolBarRefreshBtn != null)
            {
                WebToolBarRefreshBtn.Dispose();
                WebToolBarRefreshBtn = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (RefreshBtn != null)
            {
                RefreshBtn.Dispose();
                RefreshBtn = null;
            }
        }
예제 #2
0
 public void PostTweet(string tweet)
 {
     TweetBox.SendKeys(tweet);
     TweetBtn.Click();
 }