Changeset 78

Show
Ignore:
Timestamp:
07/15/06 18:54:23 (2 years ago)
Author:
mayuki
Message:

#2 シャットダウンにより終了した際に、環境設定の変更内容が保存されない」を修正

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/MacFaceFloat/MacFaceApp.cs

    r77 r78  
    204204                        updateTimer.Start(); 
    205205 
     206                        Microsoft.Win32.SystemEvents.SessionEnded += new Microsoft.Win32.SessionEndedEventHandler(SystemEvents_SessionEnded); 
    206207                        Application.ApplicationExit += new EventHandler(Application_ApplicationExit); 
    207208                        Application.Run(this); 
     
    496497                        } 
    497498                } 
     499 
     500                /// <summary> 
     501                ///  
     502                /// </summary> 
     503                /// <param name="sender"></param> 
     504                /// <param name="e"></param> 
     505                private void SystemEvents_SessionEnded(object sender, Microsoft.Win32.SessionEndedEventArgs e) 
     506                { 
     507                        config.Save(); 
     508                } 
    498509        } 
    499510}