예제 #1
0
파일: Form1.cs 프로젝트: sLevet/projetImage
        private int widthPBox1; // fix picture box size

        #endregion Fields

        #region Constructors

        // constructor
        public Form1()
        {
            InitializeComponent();
            currentIdPicture = -1;  // -1 --> not selected
            currentIdSketch = -1;   // -1 --> not selected
            dBMode = 1;             // by default 1 --> insert image in db , my  choice
            fFile = new FunctionsFile(this);
            fDb = new FunctionsDb(this);
            widthPBox1 = pictureBox1.Width;
            heightPBox1 = pictureBox1.Height;
        }
예제 #2
0
파일: Form2.cs 프로젝트: sLevet/projetImage
        FunctionsDb fDb; // save / load to db

        #endregion Fields

        #region Constructors

        public Form2(FunctionsDb fDb)
        {
            InitializeComponent();
            this.fDb = fDb;
        }