static public GoogleAppEngine CreateInstance()
 {
     if (instance == null)
     {
         instance = new GoogleAppEngine();
     }
     return instance;
 }
        void FmMain_Load(object sender, EventArgs e)
        {
            ImageList stImageList = new ImageList();
            stImageList.Images.Add(ApplicationStatus.Off.ToString(), GoogleAppEngineLauncher.Properties.Resources.Off);
            stImageList.Images.Add(ApplicationStatus.On.ToString(), GoogleAppEngineLauncher.Properties.Resources.On);
            this.listApp.FullRowSelect = true;
            this.listApp.SmallImageList = stImageList;
            this.listApp.SelectedIndexChanged += new EventHandler(listApp_SelectedIndexChanged);

            engine = GoogleAppEngine.GoogleAppEngine.CreateInstance();
            string path = System.Windows.Forms.Application.StartupPath + @"\pref.xml";
            pref = new Preferences();
            pref.PreferencesChanged += new Preferences.PreferencesChangedEnventHandler(pref_PreferencesChanged);
            pref.Load(path);
            doAppyPreferences();
            updateApplicationList();            
        }