//模板管理 private void button5_Click(object sender, EventArgs e) { HostTabsViewFrm frm = new HostTabsViewFrm("huawei/template/list.html"); frm.WindowState = FormWindowState.Maximized; frm.Show(); }
//固件升级 - 升级任务管理 private void button8_Click(object sender, EventArgs e) { HostTabsViewFrm frm = new HostTabsViewFrm("huawei/firmware/listFirmwareTask.html"); frm.WindowState = FormWindowState.Maximized; frm.Show(); }
//软件源管理 private void button4_Click(object sender, EventArgs e) { HostTabsViewFrm frm = new HostTabsViewFrm("huawei/softwareManager/softManager.html"); frm.WindowState = FormWindowState.Maximized; frm.Show(); }
//eSight配置 private void button1_Click(object sender, EventArgs e) { HostTabsViewFrm frm = new HostTabsViewFrm("huawei/eSight/eSightConfig.html"); frm.WindowState = FormWindowState.Maximized; frm.Show(); }
// private void button8_Click(object sender, EventArgs e) { HostTabsViewFrm frm = new HostTabsViewFrm("huawei/upgradePackageWarehouse/index.html"); frm.WindowState = FormWindowState.Maximized; frm.Show(); }
//配置管理 private void button7_Click(object sender, EventArgs e) { HostTabsViewFrm frm = new HostTabsViewFrm("huawei/configuration/index.html"); frm.WindowState = FormWindowState.Maximized; frm.Show(); }
private void button11_Click(object sender, EventArgs e) { HostTabsViewFrm frm = new HostTabsViewFrm("huawei/deviceVersionStatus/index.html"); frm.WindowState = FormWindowState.Maximized; frm.Show(); }
/// <summary> /// Initializes CefSharp . /// Need to Initialize and Shutdown Cef on the same thread. /// 在线程中初始化cef,并在应用程序退出时,在该线程shutdown Cef /// </summary> /// <param name="form">The form.</param> public static void Init(HostTabsViewFrm form) { if (cefInitThread == null) { method = new ParamThread(form); cefInitThread = new Thread(new ThreadStart(method.DoInit)); cefInitThread.Start(); } }
//包含参数的构造函数 public ParamThread(HostTabsViewFrm _form) { this.form = _form; }