public GraphicRepartition() { InitializeComponent(); _element = new ElementGraphic(pictureBox1); pictureBox1.MouseWheel += pictureBox1_MouseWheel; }
public RoundedCheckbox() { InitializeComponent(); _element = new ElementGraphic(pictureBox); InitialiseCadre(); InitialiseCercle(); TexteOff(); PositionFinale(_state, true); ResizeControl(null, null); }
public Graphique(PictureBox pictureBox, Couple position, Couple dimensionsFenetre) // : base(position) { _element = new ElementGraphic(Graphics.FromHwnd(pictureBox.Handle)); _element.Positionne(position); this._dimensionsFenetre = dimensionsFenetre.Copie(); _compteur = 0; _compteurCadre = 0; _ajustementZoom = new Couple(); _maximum = new Dictionary <int, double> { { Gauche, Couple.MinValue }, { Haut, Couple.MinValue }, { Droite, Couple.MaxValue }, { Bas, Couple.MaxValue } }; }
/// <summary> /// Cloning constructor. /// </summary> /// <param name="source">The source object from which to clone.</param> /// <param name="context">The cloning context object.</param> private ElementGraphic(ElementGraphic source, ICloningContext context) : base(source, context) { context.CloneFields(source, this); }