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);
                }
            });
        }
Ejemplo n.º 2
0
        private void SaveMasks()
        {
            var notification = new SaveFileDialogNotification();

            notification.RestoreDirectory = true;
            notification.Filter           = "GraphViz filter files (*.bgf)|*.bgf";
            notification.FilterIndex      = 0;
            notification.DefaultExt       = ".bgf";

            SaveFileRequest.Raise(notification,
                                  n =>
            {
                if (n.Confirmed)
                {
                    var module = myPresentation.GetModule <INodeMaskModule>();
                    myPersistanceService.Save(n.FileName, module.Items);
                }
            });
        }