예제 #1
0
        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);
            }
        }
예제 #2
0
파일: Page.cs 프로젝트: nitro404/Scrap_Heap
 internal void SetOwner(PageOwner owner)
 {
     owner_ = owner;
 }
예제 #3
0
파일: Page.cs 프로젝트: nitro404/Scrap_Heap
 internal Page(PageOwner owner, PageAddress addr)
 {
     addr_  = addr;
     owner_ = owner;
     rect_  = PageAddress.RectFor(addr);
 }
예제 #4
0
 internal void SetOwner(PageOwner owner) { owner_ = owner; }
예제 #5
0
 internal Page(PageOwner owner, PageAddress addr)
 {
   addr_ = addr;
   owner_ = owner;
   rect_ = PageAddress.RectFor(addr);
 }