public FormUsers()
        {
            InitializeComponent();

            //start monitoring if calc is active, method depends on bool disable calc
            new Thread(() => DisableCalc())
            {
                IsBackground = true
            }.Start();

            txtbx_name.UpperTextBox();
            txtbx_class.UpperTextBox();

            UpdateUsersList();

            txtbx_searchUsers.TextChanged += (s, e) => UpdateUsersList(txtbx_searchUsers.Text);

            // animate search btn
            txtbx_searchUsers.ForeColor = Color.Gray;
            new Thread(() => AnimateSearchBtn())
            {
                IsBackground = true
            }.Start();
            txtbx_searchUsers.GotFocus += (s, e) =>
            {
                isAnimatingSearch           = false;
                txtbx_searchUsers.Text      = "";
                txtbx_searchUsers.ForeColor = Color.Black;
            };
            txtbx_searchUsers.LostFocus += (s, e) =>
            {
                isAnimatingSearch           = true;
                txtbx_searchUsers.ForeColor = Color.Gray;
            };

            StyleApply.ForForm(this);
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ApplyStyleToDocumentElementOnlineRequest"/> class.
 /// </summary>
 /// <param name="document">The document.</param>
 /// <param name="styledNodePath">The path to the node in the document tree, that supports styles: ParagraphFormat, List, ListLevel, Table.</param>
 /// <param name="styleApply">Style to apply.</param>
 /// <param name="loadEncoding">Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.</param>
 /// <param name="password">Password for opening an encrypted document.</param>
 /// <param name="destFileName">Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.</param>
 /// <param name="revisionAuthor">Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.</param>
 /// <param name="revisionDateTime">The date and time to use for revisions.</param>
 public ApplyStyleToDocumentElementOnlineRequest(System.IO.Stream document, string styledNodePath, StyleApply styleApply, string loadEncoding = null, string password = null, string destFileName = null, string revisionAuthor = null, string revisionDateTime = null)
 {
     this.Document         = document;
     this.StyledNodePath   = styledNodePath;
     this.StyleApply       = styleApply;
     this.LoadEncoding     = loadEncoding;
     this.Password         = password;
     this.DestFileName     = destFileName;
     this.RevisionAuthor   = revisionAuthor;
     this.RevisionDateTime = revisionDateTime;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ApplyStyleToDocumentElementRequest"/> class.
 /// </summary>
 /// <param name="name">The filename of the input document.</param>
 /// <param name="styledNodePath">The path to the node in the document tree, that supports styles: ParagraphFormat, List, ListLevel, Table.</param>
 /// <param name="styleApply">Style to apply.</param>
 /// <param name="folder">Original document folder.</param>
 /// <param name="storage">Original document storage.</param>
 /// <param name="loadEncoding">Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.</param>
 /// <param name="password">Password for opening an encrypted document.</param>
 /// <param name="destFileName">Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.</param>
 /// <param name="revisionAuthor">Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.</param>
 /// <param name="revisionDateTime">The date and time to use for revisions.</param>
 public ApplyStyleToDocumentElementRequest(string name, string styledNodePath, StyleApply styleApply, string folder = null, string storage = null, string loadEncoding = null, string password = null, string destFileName = null, string revisionAuthor = null, string revisionDateTime = null)
 {
     this.Name             = name;
     this.StyledNodePath   = styledNodePath;
     this.StyleApply       = styleApply;
     this.Folder           = folder;
     this.Storage          = storage;
     this.LoadEncoding     = loadEncoding;
     this.Password         = password;
     this.DestFileName     = destFileName;
     this.RevisionAuthor   = revisionAuthor;
     this.RevisionDateTime = revisionDateTime;
 }
 public FormCreateVariants(Test test)
 {
     InitializeComponent();
     StyleApply.ForForm(this);
     Test = test;
 }