Initialize() публичный Метод

public Initialize ( ) : void
Результат void
Пример #1
0
        private void ShowAddressBook()
        {
            activeContactController      = contactControllerFactory.CreateExport().Value;
            activeContactController.Root = root;
            activeContactController.Initialize();
            activeContactController.Run();

            var uiNewContactCommand = new ToolBarCommand(activeContactController.NewContactCommand, "_New contact", "Creates a new contact.");
            var uiDeleteCommand     = new ToolBarCommand(activeContactController.DeleteContactCommand, "_Delete", "Deletes the selected contact.");

            shellService.AddToolBarCommands(new[] { uiNewContactCommand, uiDeleteCommand });
        }
Пример #2
0
        private void ShowAddressBook()
        {
            activeContactController = container.GetExportedValue<ContactController>();
            activeContactController.Root = root;
            activeContactController.Initialize();
            activeContactController.Run();

            ToolBarCommand uiNewContactCommand = new ToolBarCommand(activeContactController.NewContactCommand, "_New contact",
                "Creates a new contact.");
            ToolBarCommand uiDeleteCommand = new ToolBarCommand(activeContactController.DeleteContactCommand, "_Delete",
                "Deletes the selected contact.");
            shellService.AddToolBarCommands(new[] { uiNewContactCommand, uiDeleteCommand });
        }