private bool draw_contour_first = false; // First contour point coordinates private MainView() { instance = this; imageHandler = ImageHandler.Instance; drawHandler = DrawHandler.Instance; contourHandler = ContourHandler.Instance; InitializeComponent(); // Disable all buttons while no image is loaded saveFileButton.Enabled = false; fishlineButton.Enabled = false; zoomInButton.Enabled = false; zoomOutButton.Enabled = false; zoomWidthButton.Enabled = false; contourButton.Enabled = false; contourListButton.Enabled = false; zoomOriginalButton.Enabled = false; openContourListToolStripMenuItem.Enabled = false; saveContourToolStripMenuItem.Enabled = false; loadContourToolStripMenuItem.Enabled = false; boneTypeBox.Visible = false; customFishlineButton.Enabled = false; openFileDialog1 = new OpenFileDialog(); }
public ContourView() { contourHandler = ContourHandler.Instance; InitializeComponent(); toDelete = new List <BaseContour>(); setContours(); }
private void button2_Click(object sender, EventArgs e) { ContourHandler h = ContourHandler.Instance; h.clearCurrent(); MainView.Instance.setDrawing(); this.Close(); }