protected override void OnStartup(StartupEventArgs e) { var messageBox = new MessageBoxFacade(); try { (string key, string iv) = GetAesConfig(); var viewModel = new EncryptionControlViewModel { KeyString = key, IVString = iv }; var encryptionControl = new EncryptionControl(viewModel); var window = new PageOwner(encryptionControl); window.Show(); } catch (Exception ex) { messageBox.ShowError("Fatal Error..."); messageBox.ShowError(ex); Shutdown(-1); } }
internal void SetOwner(PageOwner owner) { owner_ = owner; }
internal Page(PageOwner owner, PageAddress addr) { addr_ = addr; owner_ = owner; rect_ = PageAddress.RectFor(addr); }