Пример #1
0
        //FormMain FrmMain;

        public FormOption(Panel _pnBase)
        {
            InitializeComponent();

            this.TopLevel = false;
            this.Parent   = _pnBase;

            //FrmMain = _FrmMain;

            //파일 버전, 수정한날짜 보여줄때 필요한 부분
            string   sExeFolder = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase;
            string   FileName   = Path.GetFileName(sExeFolder);
            FileInfo File       = new FileInfo(FileName);
            //파일 버전 보여주는 부분
            string sFileVersion = System.Windows.Forms.Application.ProductVersion;

            lbVer.Text = "Ver " + sFileVersion;
            //수정한 날짜 보여주는 부분
            double Age  = File.LastWriteTime.ToOADate();
            string Date = DateTime.FromOADate(Age).ToString("''yyyy'_ 'M'_ 'd'_ 'tt' 'h': 'm''");

            lbDate.Text = Date;

            UpdateComOptn(true);
            OM.LoadCmnOptn();
        }
Пример #2
0
        public FormOption(Panel _pnBase)
        {
            InitializeComponent();

            this.TopLevel = false;
            this.Parent   = _pnBase;

            UpdateComOptn(true);
            UpdateEqpOptn(true);

            OM.LoadCmnOptn();

            //Scable Setting
            this.Dock = DockStyle.Fill;
            int _iWidth  = _pnBase.Width;
            int _iHeight = _pnBase.Height;

            const int iWidth  = 1280;
            const int iHeight = 863;

            float widthRatio  = _iWidth / (float)iWidth;   // this.ClientSize.Width;//1280f;
            float heightRatio = _iHeight / (float)iHeight; //.ClientSize.Height; //863f ;

            SizeF scale = new SizeF(widthRatio, heightRatio);

            //this.Scale(scale);

            foreach (Control control in this.Controls)
            {
                control.Scale(scale);
                //control.Font = new Font("Verdana", control.Font.SizeInPoints * heightRatio * widthRatio);
            }
        }
Пример #3
0
        public FormOption(Panel _pnBase)
        {
            InitializeComponent();

            this.TopLevel = false;
            this.Parent   = _pnBase;

            UpdateComOptn(true);
            UpdateEqpOptn(true);

            OM.LoadCmnOptn();
        }