protected virtual void OnTestComboBoxChanged(object sender, System.EventArgs e) { if (testDrawingArea != null) { testFrame.Remove(testDrawingArea); testDrawingArea = null; dumpTextView.Buffer.Text = ""; } String testSuiteName = testComboBox.ActiveText; if (testSuiteName.StartsWith("BitBlt")) testDrawingArea = bitBltDrawingArea; else if (testSuiteName.StartsWith("Ellipse")) testDrawingArea = ellipseDrawingArea; else if (testSuiteName.StartsWith("Polygon")) testDrawingArea = polygonDrawingArea; else if (testSuiteName.StartsWith("LineTo")) testDrawingArea = lineToDrawingArea; else if (testSuiteName.StartsWith("PolylineTo")) testDrawingArea = polylineToDrawingArea; if (testDrawingArea != null) { testFrame.Add(testDrawingArea); testFrame.ShowAll(); } }
public MainWindow() : base(Gtk.WindowType.Toplevel) { Build(); bitBltDrawingArea = new BitBltDrawingArea(); ellipseDrawingArea = new EllipseDrawingArea(); polygonDrawingArea = new PolygonDrawingArea(); lineToDrawingArea = new LineToDrawingArea(); polylineToDrawingArea = new PolylineToDrawingArea(); FillTestComboBox(testComboBox); }
public MainWindow() : base(Gtk.WindowType.Toplevel) { Build(); bitBltDrawingArea = new BitBltDrawingArea(); ellipseDrawingArea = new EllipseDrawingArea(); polygonDrawingArea = new PolygonDrawingArea(); lineToDrawingArea = new LineToDrawingArea(); polylineToDrawingArea = new PolylineToDrawingArea(); testDrawingArea = bitBltDrawingArea; testFrame.Add(testDrawingArea); testFrame.ShowAll(); }