Beispiel #1
0
        private void FormMain_Load(object sender, EventArgs e)
        {
            Size      border = this.SizeFromClientSize(new Size(0, 0));
            Rectangle wa     = Screen.PrimaryScreen.WorkingArea;

            Size   maxInitPicSize = new Size(wa.Width - border.Width, wa.Height - border.Height);
            String configFielPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/picvi.config";

            m_pic = new MyPictureBox(m_path, new Config(configFielPath), maxInitPicSize, this);

            panel.Controls.Add(m_pic);
            m_pic.loadImage();
        }
Beispiel #2
0
        private void FormMain_Load(object sender, EventArgs e)
        {
            Size border = this.SizeFromClientSize(new Size(0, 0));
            Rectangle wa = Screen.PrimaryScreen.WorkingArea;

            Size maxInitPicSize = new Size(wa.Width - border.Width, wa.Height - border.Height);
            String configFielPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/picvi.config";
            m_pic = new MyPictureBox(m_path, new Config(configFielPath), maxInitPicSize, this);

            panel.Controls.Add(m_pic);
            m_pic.loadImage();
        }