Exemplo n.º 1
0
        protected virtual void OnFormCloseSerialization(object sender, CancelEventArgs e)
        {
            if (SaveSettings != null)
            {
                SerializationEventArgs ev = new SerializationEventArgs(Storage, this);

                SaveSettings(this, ev);
            }
        }
Exemplo n.º 2
0
        protected virtual void OnFormLoadSerialization(object sender, EventArgs e)
        {
            if (RecoverSettings != null)
            {
                SerializationEventArgs ev = new SerializationEventArgs(Storage, this);

#if RELEASE
                try
                {
#endif
                RecoverSettings(this, ev);
#if RELEASE
            }
            catch (Exception ex) // catch any recovery exception
            {
                Trace.WriteLine(ex.Message + "\r\n" + ex.StackTrace, "Serialization Recovery FATAL");
            }
#endif
            }
        }
Exemplo n.º 3
0
    protected virtual void OnFormLoadSerialization( object sender, EventArgs e )
    {
      if( RecoverSettings != null )
      {
        SerializationEventArgs ev = new SerializationEventArgs( Storage, this );

#if RELEASE
        try
        {
#endif
        RecoverSettings( this, ev );
#if RELEASE
        }
        catch( Exception ex ) // catch any recovery exception
        {
          Trace.WriteLine( ex.Message + "\r\n" + ex.StackTrace, "Serialization Recovery FATAL" );
        }
#endif
      }
    }
Exemplo n.º 4
0
    protected virtual void OnFormCloseSerialization( object sender, CancelEventArgs e )
    {
      if( SaveSettings != null )
      {
        SerializationEventArgs ev = new SerializationEventArgs( Storage, this );

        SaveSettings( this, ev );
      }
    }