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

                SaveSettings(this, ev);
            }
        }
Beispiel #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
            }
        }
Beispiel #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
      }
    }
Beispiel #4
0
    protected virtual void OnFormCloseSerialization( object sender, CancelEventArgs e )
    {
      if( SaveSettings != null )
      {
        SerializationEventArgs ev = new SerializationEventArgs( Storage, this );

        SaveSettings( this, ev );
      }
    }