private void frmMain_Load(object sender, EventArgs e) { this.Top = 0; this.Left = 0; this.Width = Screen.PrimaryScreen.WorkingArea.Width; this.Height = Screen.PrimaryScreen.WorkingArea.Height - 5; this.MaximumSize = new Size(Width, Height); Text = Properties.Settings.Default.ProductName + " " + VersionAdapter.GetVersion(VersionType.ASSEMBLY); }
private void frmMain_Load(object sender, EventArgs e) { lblProductVersionComent.Text = Properties.Settings.Default.ProductVersionComment; lblVer.Text = VersionAdapter.GetVersion(VersionType.FILE); lblTechSupport.Text = Properties.Settings.Default.Company + " 技术支持"; InitForm(); LoadStationInfo(); MonitorICCardReader(); }
private void frmMain12O_Load(object sender, EventArgs e) { Text = Properties.Settings.Default.ProductName + " " + VersionAdapter.GetVersion(VersionType.ASSEMBLY); }
public static void Upgrade() { string updateFolder = AppDomain.CurrentDomain.BaseDirectory + Common.APPLICATION_ID; FileAdapter.EnsurePath(updateFolder); FileAdapter.Copy(Updater.AppName, updateFolder + @"\" + Updater.AppName, true); foreach (var file in Updater.DepandenceFiles) { FileAdapter.Copy(file, AppDomain.CurrentDomain.BaseDirectory + Common.APPLICATION_ID + @"\" + file, true); } string updateEndPoint = INIAdapter.ReadValue(Common.CFG_SECTION_WEB, Common.CFG_KEY_UPDATE_END_POINT, Common.CFG_FILE_PATH); string args = String.Format("-n {0} -v {1} -c {2}", AppAdapter.GetName(), VersionAdapter.GetPureVersion(VersionType.ASSEMBLY), updateEndPoint + "/" + Common.APPLICATION_ID); System.Diagnostics.Process.Start(updateFolder + @"\" + Updater.AppName, args); }
private void frmMain_Load(object sender, EventArgs e) { ReadSettings(); lblVer.Text = Properties.Settings.Default.ProductName + "(" + Properties.Settings.Default.ProductVersionComment + ") " + VersionAdapter.GetVersion(VersionType.ASSEMBLY); wbWorkArea.ObjectForScripting = this; wbProvinceSum.ObjectForScripting = this; if (!PensionAgencyVar.AccessPoint.EndsWith("404.htm")) { wbWorkArea.Url = new Uri(PensionAgencyVar.AccessPoint + _AutoLoginUrl); } else { if (PensionAgencyVar.AccessPoint.StartsWith("http://localhost")) { wbWorkArea.Url = new Uri("http://localhost/SmartLife.CertManage.ManageCMS/404.htm"); } else { wbWorkArea.Url = new Uri(PensionAgencyVar.AccessPoint); } } if (!PensionAgencyVar.AccessOfProvice.EndsWith("404.htm")) { wbProvinceSum.Url = new Uri(PensionAgencyVar.AccessOfProvice + _AutoLoginUrl); } else { if (PensionAgencyVar.AccessOfProvice.StartsWith("http://localhost")) { wbProvinceSum.Url = new Uri("http://localhost/SmartLife.Auth.ManageCMS/404.htm"); } else { wbProvinceSum.Url = new Uri(PensionAgencyVar.AccessOfProvice); } } pnlAssistToolbarContainer.Visible = assistToolbarState == CheckState.Checked; xTabs.DrawMode = TabDrawMode.OwnerDrawFixed; xTabs.Padding = new System.Drawing.Point(CLOSE_SIZE * 2, CLOSE_SIZE / 2); xTabs.DrawItem += new DrawItemEventHandler(xTabs_DrawItem); xTabs.MouseDown += new MouseEventHandler(xTabs_MouseDown); InitActions(); BuildControls(); }
private void btnUpdate_Click(object sender, EventArgs e) { string delegateApplicationId = "PM001";//Common.APPLICATION_ID string updateFolder = AppDomain.CurrentDomain.BaseDirectory + delegateApplicationId; win.core.utils.FileAdapter.EnsurePath(updateFolder); win.core.utils.FileAdapter.Copy(Updater.AppName, updateFolder + @"\" + Updater.AppName, true); foreach (var file in Updater.DepandenceFiles) { win.core.utils.FileAdapter.Copy(file, AppDomain.CurrentDomain.BaseDirectory + delegateApplicationId + @"\" + file, true); } string updateEndPoint = INIAdapter.ReadValue(Common.CFG_SECTION_WEB, Common.CFG_KEY_UPDATE_END_POINT, Common.CFG_FILE_PATH); string args = String.Format("-n {0} -v {1} -c {2}", AppAdapter.GetName(), VersionAdapter.GetPureVersion(VersionType.ASSEMBLY), updateEndPoint + "/" + delegateApplicationId); System.Diagnostics.Process.Start(updateFolder + @"\" + Updater.AppName, args); }