Ejemplo n.º 1
0
        public GraphicRepartition()
        {
            InitializeComponent();

            _element = new ElementGraphic(pictureBox1);

            pictureBox1.MouseWheel += pictureBox1_MouseWheel;
        }
Ejemplo n.º 2
0
        public RoundedCheckbox()
        {
            InitializeComponent();

            _element = new ElementGraphic(pictureBox);

            InitialiseCadre();
            InitialiseCercle();
            TexteOff();
            PositionFinale(_state, true);

            ResizeControl(null, null);
        }
Ejemplo n.º 3
0
        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 }
            };
        }
Ejemplo n.º 4
0
 /// <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);
 }
			/// <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);
			}