コード例 #1
0
 public void ClearCanvas()
 {
     // Metoda wywoływana podczas rozpoczęcia egzaminu - czyści wszystko w canvas
     // moze być uzywana do tworzenia nowego pliku
     CanvLines.Clear();
     CanvObj.Clear();
     Clipboard.Clear();
     _rubbers.MyHideRubbers();
     UndoRedo.Clear();//wyczyszczenie historii ctrl z/y
     Invalidate();
 }
コード例 #2
0
ファイル: DetailEditor.cs プロジェクト: lUllLabs/NoteCAD
    public void New()
    {
        if (detail != null)
        {
            detail.Clear();
        }
        selection.Clear();
        undoRedo.Clear();
        activeFeature = null;
        detail        = new Detail();
        var sk = new SketchFeature();

        sk.shouldHoverWhenInactive = true;
        new PointEntity(sk.GetSketch());
        detail.AddFeature(sk);
        sk = new SketchFeature();
        detail.AddFeature(sk);
        UpdateFeatures();
        ActivateFeature(sk);
    }
コード例 #3
0
 public static void Clear()
 {
     undoRedo.Clear();
 }