示例#1
0
        private void LblGoogle_Click(object sender, EventArgs e)
        {
            this.Enabled                 = false;
            this.TopMost                 = false;
            PcxUser.Visible              = false;
            LblUserPass.Visible          = false;
            LblGoogle.Visible            = false;
            UIWebView.IntHeight          = 539;
            UIWebView.WebViewLoginGoogle = true;
            Form _UIWebView = new UIWebView();

            _UIWebView.Show();
            _UIWebView.ControlBox = false;
            return;
        }
示例#2
0
 private void weatherToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         Form _UIWebView = new UIWebView();
         UIWebView.WebViewLoginGoogle = false;
         UIWebView.WebViewLoadURL     = "https://weather.com";
         _UIWebView.Size     = new Size(800, 600);
         UIWebView.IntHeight = 600;
         _UIWebView.Show();
         return;
     }
     catch (Exception ex)
     {
         MessageBox.Show("Unable to dispose object." + Environment.NewLine + Environment.NewLine + ex, "UIWeather: Overall error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         return;
     }
 }
        public void InstallModule()
        {
            if (!Directory.Exists(cd + "\\Common\\Modules") || !Directory.Exists(cd + "\\Common\\Modules\\" + Module) || !Directory.Exists(cd + "\\Common\\AppData\\" + ModuleID))
            {
                Directory.CreateDirectory(cd + "\\Common\\Modules");
                Directory.CreateDirectory(cd + "\\Common\\Modules\\" + Module);
                Directory.CreateDirectory(cd + "\\Common\\AppData\\" + ModuleID);
            }

            if (RequireWebView == true)
            {
                Form _UIWebView = new UIWebView();
                _UIWebView.Show();
                return;
            }
            else
            {
            }
        }