Ejemplo n.º 1
0
        private async void SaveAs( object sender, RoutedEventArgs e )
        {
            IStorageFile ISF = await AppStorage.SaveFileAsync( "XML", new List<string>() { ".xml" } );
            if ( ISF == null ) return;

            try
            {
                XRegistry XReg = new XRegistry( "<ProcSpider />", null );
                XReg.SetParameter( RootManager.ToXParam() );
                await ISF.WriteString( XReg.ToString() );
                ProcManager.PanelMessage( ID, Res.RSTR( "Saved", ISF.Name ), LogType.INFO );
            }
            catch( Exception ex )
            {
                ProcManager.PanelMessage( ID, ex.Message, LogType.ERROR );
                ProcManager.PanelMessage( ID, () => Res.RSTR( "SaveFailed" ), LogType.ERROR );
            }
        }
Ejemplo n.º 2
0
        public static void StoreParams( ProcConvoy Convoy, XRegistry Settings )
        {
            ProcParameter Defs = ( ProcParameter ) ProcManager.TracePackage( Convoy, ( P, C ) => P is ProcParameter )?.Dispatcher;
            if ( Defs == null ) return;

            XParameter PDefs = new XParameter( "PPValues" );
            Defs.AssignParamDefs( PDefs );

            Settings.SetParameter( PDefs );
        }
Ejemplo n.º 3
0
 private void ExportProcedures( object sender, RoutedEventArgs e )
 {
     XRegistry XReg = new XRegistry( "<ProcSpider />", TargetFile );
     XReg.SetParameter( RootManager.ToXParam() );
     XReg.Save();
     ProcManager.PanelMessage( ID, () => Res.RSTR( "Saved" ), LogType.INFO );
 }