private void GenerateLink()
        {
            if (formMainWindow.loggedinUserAWB == null)
            {
                formMainWindow.loggedinUserAWB = new LoginForm(formMainWindow.SessionsManager);
            }

            if (this.urlTextBox.Text.ToLower().Contains("wikipedia"))
            {
                try
                {
                    this.Hide();
                    var address = urlTextBox.Text.ToLower().IndexOf("wiki");

                    //MessageBox.Show(address.ToString());

                    var startindex = urlTextBox.Text.ToLower().IndexOf("wikipedia.org/wiki/") + ("wikipedia.org/wiki/").Length;

                    var length      = urlTextBox.Text.Length - startindex;
                    var articleName = urlTextBox.Text.Substring(startindex, length);

                    // var articleContent = formMainWindow.editor.Open(articleName);
                    formMainWindow.editor = formMainWindow.SessionsManager.LoginData.editor;
                    formMainWindow.LoadWikiArticle(articleName);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.ToString(), ex.Source);
                    formMainWindow.loggedinUserAWB = null;
                }
            }
            this.Close();
        }
        private void EditArticle()
        {
            if (this.adrBarTextBox.Text.ToLower().Contains("wikipedia"))
            {
                try
                {
                    var address = adrBarTextBox.Text.ToLower().IndexOf("wiki");

                    //MessageBox.Show(address.ToString());

                    var startindex = adrBarTextBox.Text.ToLower().IndexOf("wikipedia.org/wiki/") + ("wikipedia.org/wiki/").Length;

                    var length      = adrBarTextBox.Text.Length - startindex;
                    var articleName = adrBarTextBox.Text.Substring(startindex, length);
                    this.Hide();
                    mainWindow.LoadWikiArticle(articleName);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.ToString(), ex.Source);
                }
            }
        }