private void DoSaveCommand(object param) { string path = (string)param; var sglSerializer = new SharpGL.Serialization.SharpGL.SharpGLXmlFormat(); sglSerializer.SaveData(Scene, path); }
void SaveCommand_Executing(object sender, CancelCommandEventArgs args) { var sglSerializer = new SharpGL.Serialization.SharpGL.SharpGLXmlFormat(); // Create an open file dialog. SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Filter = sglSerializer.Filter; // Show the dialog. if (saveFileDialog.ShowDialog() != true) { // Cancel any loading. args.Cancel = true; return; } // Set the args. args.Parameter = saveFileDialog.FileName; }
void SaveCommand_Executing(object sender, CancelCommandEventArgs args) { var sglSerializer = new SharpGL.Serialization.SharpGL.SharpGLXmlFormat(); // Create an open file dialog. SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Filter = sglSerializer.Filter; // Show the dialog. if (saveFileDialog.ShowDialog() != true) { // Cancel any loading. args.Cancel = true; return; } // Set the args. args.Parameter = saveFileDialog.FileName; }
private void DoSaveCommand(object param) { string path = (string)param; var sglSerializer = new SharpGL.Serialization.SharpGL.SharpGLXmlFormat(); sglSerializer.SaveData(Scene, path); }