示例#1
0
 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);
 }
示例#2
0
        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();
        }
示例#3
0
 private void frmMain12O_Load(object sender, EventArgs e)
 {
     Text = Properties.Settings.Default.ProductName + " " + VersionAdapter.GetVersion(VersionType.ASSEMBLY);
 }
示例#4
0
        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();
        }