Ejemplo n.º 1
0
        public BrowserForm()
        {
            InitializeComponent();

            // kiem tra dang nhap

            if (!Class_Login.ProcessLogin(Properties.Settings.Default.key, Properties.Settings.Default.UserXen, Properties.Settings.Default.PassXen))
            {
                frmSettings formSetting = new frmSettings();
                formSetting.ShowDialog();
            }



            Text        = "FBtoOther";
            WindowState = FormWindowState.Maximized;

            browser = new ChromiumWebBrowser("www.facebook.com")
            {
                Dock           = DockStyle.Fill,
                RequestHandler = new MyRequestHandler()
            };
            toolStripContainer.ContentPanel.Controls.Add(browser);

            browser.IsBrowserInitializedChanged += OnIsBrowserInitializedChanged;
            browser.LoadingStateChanged         += OnLoadingStateChanged;
            browser.ConsoleMessage += OnBrowserConsoleMessage;
            browser.StatusMessage  += OnBrowserStatusMessage;
            browser.TitleChanged   += OnBrowserTitleChanged;
            browser.AddressChanged += OnBrowserAddressChanged;

            var bitness = Environment.Is64BitProcess ? "x64" : "x86";
            var version = String.Format("Chromium: {0}, CEF: {1}, CefSharp: {2}, Environment: {3}", Cef.ChromiumVersion, Cef.CefVersion, Cef.CefSharpVersion, bitness);

            DisplayOutput(version);
        }
Ejemplo n.º 2
0
        private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmSettings formSettings = new frmSettings();

            formSettings.ShowDialog();
        }