public styleengine() { myPrefWindow = new Options(); hwndOfPrferencesWindows = (int)myPrefWindow.Handle; myPrefWindow.FormClosed += new System.Windows.Forms.FormClosedEventHandler(Options_FormClosed); Winkle.VersionCheck myUpdateChecker = new Winkle.VersionCheck("Run me", "http://tlhan-ghun.de/files/runMe.xml"); Winkle.UpdateInfo myUpdateResponse = myUpdateChecker.checkForUpdate(System.Reflection.Assembly.GetExecutingAssembly(), false); }
private void Options_FormClosed(Object sender, System.Windows.Forms.FormClosedEventArgs e) { myPrefWindow = new Options(); hwndOfPrferencesWindows = (int)myPrefWindow.Handle; myPrefWindow.FormClosed += new System.Windows.Forms.FormClosedEventHandler(Options_FormClosed); }