public LinkTypeWizardStep(LinkDescriptor linkDescriptor) { _linkDescriptor = linkDescriptor; _page = new LinkTypePage(HandleLinkTypeSelected); _buttons = new[] { new ButtonDescriptor { CanExecute = true, Exetute = HandleCancel, Text = "Отмена" } }; }
private void ApplicationStartup(object sender, StartupEventArgs e) { var destinationPath = Path.GetDirectoryName(e.Args[0]); var linkDescriptor = new LinkDescriptor {DestinationPath = destinationPath}; var initialStep = new LinkTypeWizardStep(linkDescriptor); var wizardWindow = new WizardWindow("Создание ссылки", initialStep); MainWindow = wizardWindow; MainWindow.Show(); }
public LinkTypeWizardStep(LinkDescriptor linkDescriptor) { _linkDescriptor = linkDescriptor; _page = new LinkTypePage(HandleLinkTypeSelected); _buttons = new[] { new ButtonDescriptor{CanExecute = true, Exetute = HandleCancel, Text = "Отмена"} }; }