void Session_popupClosed(Popups.popupBase sender, Popups.popupClosedEventArgs e) { Session.popupClosed -= Session_popupClosed; if(sender.GetType() == typeof(Popups.updateVersionPopup)) { if(!string.IsNullOrEmpty(e.Result[Popups.updateVersionPopup.DCKEY_VERSION].ToString())) _package.releaseInfo.Version = e.Result[Popups.updateVersionPopup.DCKEY_VERSION].ToString(); _package.Published = (bool) e.Result[Popups.updateVersionPopup.DCKEY_PUBLISHED]; _package.isServicePack = (bool) e.Result[Popups.updateVersionPopup.DCKEY_SERVICE_PACK]; base.Node.Text = _package.ToString(); initializeData(); } }
public PopupsWrapper(Popups popups) { this.popups = popups; HidePopupMethodInfo = popups.GetType().GetMethod("HidePopup", BindingFlags.NonPublic | BindingFlags.Instance); CreateGUISkins (); }