private void Export_Click(object sender, RoutedEventArgs e) { var alignedPoints = getAlignedPoints(Facet1Pane.CreateFacetShape(), Facet2Pane.CreateFacetShape()); var shape = new ShapeDefinition4D(alignedPoints, _shapeThickness); var dlg = new Microsoft.Win32.SaveFileDialog(); dlg.Filter = "4D Shape|*.4dcor"; if (dlg.ShowDialog() == true) { var formatter = new BinaryFormatter(); using (var stream = new FileStream(dlg.FileName, FileMode.Create, FileAccess.Write, FileShare.None)) formatter.Serialize(stream, shape); } }
private void Binding_Click(object sender, RoutedEventArgs e) { var alignedPoints = getAlignedPoints(Facet1Pane.CreateFacetShape(), Facet2Pane.CreateFacetShape()); drawShape(alignedPoints, _shapeThickness); }