public DrawRectangle()
        {
            InitializeComponent();

            DrawRectangle.ratioWidthHeight = -1; // IF -1 => draw normally , without ratio
            this.ShowInTaskbar             = false;
            this.BackgroundImage           = Image.FromFile(@"In App - Images\Transparent Background - DrawRectagle.png");;
            this.okButton             = Image.FromFile(@"In App - Images\OK1.jpg");
            this.isDrawingRectangle   = false;
            this.okButtonRightPressed = false;
            graphics             = this.CreateGraphics();
            smallRectangleDialog = new SmallRectangleDialog();
        }
示例#2
0
        public GuideForm()
        {
            InitializeComponent();
            saveFile             = new SaveFileDialog();
            gf2                  = new GuideForm2();
            gf3                  = new GuideForm3();
            smallRectangleDialog = new SmallRectangleDialog();
            isDownButton         = true;
            optionsButtonDown    = Image.FromFile(@"In App - Images\DOWN.jpg");
            optionsButtonUp      = Image.FromFile(@"In App - Images\UP.jpg");

            PacientData.setMaximImages(2);
            this.updateAllFields();
        }