예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.winBrowser = ((WPF_WebBrowser.MyWebBroswerWindow)(target));
                return;

            case 2:
                this.webGoogle = ((System.Windows.Controls.WebBrowser)(target));
                return;
            }
            this._contentLoaded = true;
        }
예제 #2
0
        private void btnGo_Click(object sender, RoutedEventArgs e)
        {
            string query = txtQuery.Text;

            //webGoogle.Navigate($"{query}");
            MyWebBroswerWindow google = new MyWebBroswerWindow();

            google.query = query;
            google.Show(); // open multiple windows
            //google.ShowDialog();  (open only 1 window at time)
            google.ShowDialog();

            //look at professors github for better explanation of whats going on
            //video will also be uploaded. talks a lot about homework , participation , midterm
        }