예제 #1
0
        private void goHome(string keyword, string country, string sources)
        {
            UI.NavigationBar.Instance.Connexion();
            FormHome Home = new FormHome(keyword, country, sources);

            Home.MdiParent = this.MdiParent;
            Home.Show();
            Home.WindowState = FormWindowState.Maximized;
            this.Hide();
        }
예제 #2
0
 private void LoginResearch(string favoriteCountry, string favoriteKeyword)
 {
     if ((favoriteCountry == " " || favoriteKeyword == " ") || (favoriteCountry == "" && favoriteKeyword == ""))
     {
         FormHome mainform = new FormHome("", "us", "");
         InitializeForm(mainform);
     }
     else
     {
         FormHome mainform = new FormHome(favoriteKeyword, favoriteCountry, "");
         InitializeForm(mainform);
     }
 }
예제 #3
0
        public void button_make_search_Click(object sender, EventArgs e)
        {
            keyword = textBox_keyword_search.Text;
            country = textBox_country_search.Text;
            source  = textBox_source_search.Text;

            if (FormSearch.keyword != "" || FormSearch.country != "" || FormSearch.source != "")
            {
                UI.NavigationBar.Instance.Connexion();
                FormHome mainform = new FormHome(keyword, country, source);
                mainform.MdiParent = this.MdiParent;
                mainform.Show();
                mainform.WindowState = FormWindowState.Maximized;
                this.Hide();
            }
            else
            {
                label_error.Visible = true;
            }
        }