/// <summary>
        /// Initializes the necessary controls for the <see cref="MainForm"/>.
        /// </summary>
        private void InitControls()
        {
            AddWindowNameForm = new AddWindowNameForm();
            AboutBox          = new AboutBox();

            InitBlockingTimer();
            InitUpdateTimer();
        }
        /// <summary>
        /// Handling the double click event on a cell of the <see cref="dgvAvaliableWindows"/>.
        /// </summary>
        /// <param name="sender">The <see cref="object"/> sender.</param>
        /// <param name="e">The <see cref="DataGridViewCellEventArgs"/> e.</param>
        private void AvaliableWindowsDgvCellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int rowIndex = e.RowIndex;

            if (rowIndex < 0)
            {
                return;
            }

            string windowName = Convert.ToString(this.dgvAvaliableWindows.Rows[rowIndex].Cells[1].Value, CultureInfo.InvariantCulture);

            if (string.IsNullOrEmpty(windowName))
            {
                return;
            }

            AddWindowNameForm.AddRowToDataGridView(windowName);
        }
        /// <summary>
        /// Click event for <see cref="MenuItem"/> for displaying the <see cref="AddWindowNameForm"/> form.
        /// </summary>
        /// <param name="sender">The <see cref="object"/> sender.</param>
        /// <param name="e">The <see cref="EventArgs"/> e.</param>
        private void AddWindowNameMenuItemClick(object sender, EventArgs e)
        {
            if (AddWindowNameForm.Visible)
            {
                AddWindowNameForm.Focus();
                return;
            }

            this.StopBlocking();

            try
            {
                AddWindowNameForm = new AddWindowNameForm();
                AddWindowNameForm.ShowDialog(this);
            }
            catch (ArgumentNullException argumentNullException)
            {
                LogSystem.Instance.AddToLog(argumentNullException, false);
            }

            this.StartBlocking();
        }
        /// <summary>
        /// Handle click event for <see cref="tsmiAddWindowName"/> to add the selected value from the <see cref="dgvAvaliableWindows"/> to the <see cref="AddWindowNameForm"/>.
        /// </summary>
        /// <param name="sender">The <see cref="object"/> sender.</param>
        /// <param name="e">The <see cref="EventArgs"/> e.</param>
        private void AddWindowNameTsmiClick(object sender, EventArgs e)
        {
            string windowName = this.GetSelectedRowValue();

            AddWindowNameForm.AddRowToDataGridView(windowName);
        }