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; }
FunctionsDb fDb; // save / load to db #endregion Fields #region Constructors public Form2(FunctionsDb fDb) { InitializeComponent(); this.fDb = fDb; }