Ejemplo n.º 1
0
        private void InitializePanels()
        {
            PanelDoubleBuffering.Enable(panelCurrentImagesGrid);
            PanelDoubleBuffering.Enable(panelIncorrectImagesGrid);

            panelCurrentImagesGrid.Paint   += OnPanelCurrentImagesGridPaint;
            panelIncorrectImagesGrid.Paint += OnPanelIncorrectImagesGridPaint;
        }
Ejemplo n.º 2
0
        public SlidingWindowView()
        {
            InitializeComponent();

            _bitmap = new Bitmap(panelDrawing.Width, panelDrawing.Height);

            Clear();

            PanelDoubleBuffering.Enable(panelDrawing);

            _pen.SetLineCap(LineCap.Round, LineCap.Round, DashCap.Round);

            panelDrawing.MouseDown += DrawingPanel_MouseDown;

            panelDrawing.MouseMove += DrawingPanel_MouseMove;

            panelDrawing.Paint += DrawingPanel_Paint;

            btnClassifyDrawing.Click += BtnClassifyDrawing_Click;

            btnClearDrawing.Click += BtnClearDrawing_Click;
        }
Ejemplo n.º 3
0
        public UploadImageView()
        {
            InitializeComponent();

            Clear();

            _openFileDialog = new OpenFileDialog
            {
                InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
                Filter           = @"Image|*.bmp;*.png;*.jpeg;*.jpg"
            };

            PanelDoubleBuffering.Enable(uploadPanel);

            btnClassifyImg.Click += BtnClassifyImgOnClick;

            btnClearImg.Click += BtnClearImgOnClick;

            btnUploadImg.Click += BtnUploadImgOnClick;

            uploadPanel.Paint += UploadPanelOnPaint;
        }
Ejemplo n.º 4
0
        public DrawingView()
        {
            InitializeComponent();

            _bitmap = new Bitmap(drawingPanel.Width, drawingPanel.Height);

            Clear();

            PanelDoubleBuffering.Enable(drawingPanel);

            _pen.SetLineCap(LineCap.Round, LineCap.Round, DashCap.Round);

            drawingPanel.MouseDown += DrawingPanel_MouseDown;

            drawingPanel.MouseMove += DrawingPanel_MouseMove;

            drawingPanel.Paint += DrawingPanel_Paint;

            btnClassifyDrawing.Click += BtnClassifyDrawing_Click;

            btnClearDrawing.Click += BtnClearDrawing_Click;
        }