Beispiel #1
0
        private void LoadForm()
        {
            //manger = new IemMainPageManger(m_Host);
            //info = manger.GetIemInfo();
            DeleteMetaFile();
            util = new DrawMainPageUtil(info);

            pictureBox1.Width  = util.m_PageWidth;
            pictureBox1.Height = util.m_PageHeight;
            pictureBox2.Width  = util.m_PageWidth;
            pictureBox2.Height = util.m_PageHeight;

            pictureBox1.BackgroundImage = util.MF1;
            pictureBox2.BackgroundImage = util.MF2;

            ReLocationPicture();
            BindParentFormCloseEvent();

            if (this.Parent != null)
            {
                if (this.Parent.AccessibleName.Trim() != "")//父窗体的AccessibleName不为空则表示没有编辑的权限
                {
                    simpleButton1.Visible = false;
                    simpleButton2.Visible = false;
                    simpleButton3.Visible = false;
                    simpleButton4.Visible = false;
                    simpleButton5.Visible = false;
                    simpleButton6.Visible = false;
                }
            }
        }
Beispiel #2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            manger = new IemMainPageManger(m_Host);
            info   = manger.GetIemInfo();
            util   = new DrawMainPageUtil(info);

            pictureBox1.BackgroundImage       = util.MF1;
            pictureBox1.BackgroundImageLayout = ImageLayout.Stretch;

            pictureBox2.BackgroundImage       = util.MF2;
            pictureBox2.BackgroundImageLayout = ImageLayout.Stretch;
        }
Beispiel #3
0
        private void LoadForm2()
        {
            manger = new IemMainPageManger(m_Host, CurrentInpatient);
            DeleteMetaFile();
            util = new DrawMainPageUtil(info);

            pictureBox1.Width  = util.m_PageWidth;
            pictureBox1.Height = util.m_PageHeight;
            pictureBox2.Width  = util.m_PageWidth;
            pictureBox2.Height = util.m_PageHeight;

            pictureBox1.BackgroundImage = util.MF1;
            pictureBox2.BackgroundImage = util.MF2;

            ReLocationPicture();
            BindParentFormCloseEvent();
        }