示例#1
0
        private void PictureBoxPaint_MouseUp(object sender, MouseEventArgs e)
        {
            if (settings.Mode != EFigure.SmoothCurve)
            {
                _isFigureCreated = false;
                drawingEngine.CleanBackground();
            }

            currentProcess.Refresh();
            memoryLabel.Text = "Memory usage: " + ((float)currentProcess.PrivateMemorySize64 / 1024f / 1024f).ToString("F1") + " MB";

            FiguresListBox.Items.Clear();
            FiguresListBox.Items.AddRange(drawingEngine.GetFigureList());
        }