//--------------------------------------------------------Constructor:----------------------------------------------------------------\\ #region --Constructors-- public AppxInstaller(string appxBundlePath, string certPath, string dependenciesPath) { APPX_BUNDLE_PATH = appxBundlePath; CERT_PATH = certPath; DEPENDENCIES_PATH = dependenciesPath; state = AppxInstallerState.NOT_STARTED; }
//--------------------------------------------------------Set-, Get- Methods:---------------------------------------------------------\\ #region --Set-, Get- Methods-- private void SetState(AppxInstallerState newState, Exception e = null) { if (newState != state) { state = newState; StateChanged?.Invoke(this, new StateChangedEventArgs(newState, e)); } }