private void saveFile() { TestText = "save File!!"; SaveFileRequest.Raise(new Confirmation { Title = "", Content = new FileMessage() }, (confirmation) => { if (confirmation.Confirmed) { var fileMessage = confirmation.Content as FileMessage; TestText = fileMessage.FileName; } } ); }
private void OnSave() { var notification = new SaveFileDialogNotification(); notification.RestoreDirectory = true; notification.Filter = "DOT files (*.dot)|*.dot|DGML files (*.dgml)|*.dgml|Plainion.GraphViz files (*.pgv)|*.pgv"; notification.FilterIndex = 0; notification.DefaultExt = ".dot"; SaveFileRequest.Raise(notification, n => { if (n.Confirmed) { Save(n.FileName); } }); }