Example #1
0
 private void ChangeInformationText(string text)
 {
     if (InformationLabel.InvokeRequired)
     {
         var del = new ThreadSafeDelegate(ChangeInformationText);
         InformationLabel.Invoke(del, new object[] { text });
     }
     else
     {
         InformationLabel.Text = text;
     }
 }
        private void Drop_Drop(object sender, System.Windows.DragEventArgs e)
        {
            if (e.Data.GetDataPresent(DataFormats.FileDrop))
            {
                InformationLabel.Content = "Processing The File...";

                string[] docPath = (string[])e.Data.GetData(DataFormats.FileDrop);

                this.UpdateLayout();
                InformationLabel.UpdateLayout();

                ReadFile(docPath[0]);
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (AcceptButton != null)
            {
                AcceptButton.Dispose();
                AcceptButton = null;
            }

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

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

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

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

            if (MessageTextView != null)
            {
                MessageTextView.Dispose();
                MessageTextView = null;
            }
        }
Example #4
0
        void ReleaseDesignerOutlets()
        {
            if (ClearButton != null)
            {
                ClearButton.Dispose();
                ClearButton = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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