示例#1
0
        public string[] GetPaths(Window ownerWindow)
        {
            var        win             = new OpenFromGACDlg();
            const bool syntaxHighlight = true;
            var        vm = new OpenFromGACVM(syntaxHighlight);

            win.DataContext = vm;
            win.Owner       = ownerWindow ?? appWindow.MainWindow;
            if (win.ShowDialog() != true)
            {
                return(Array.Empty <string>());
            }
            return(win.SelectedItems.Select(a => a.Path).ToArray());
        }
示例#2
0
 public GACFileVM(OpenFromGACVM owner, GacFileInfo gacFileInfo)
 {
     this.Owner       = owner;
     this.gacFileInfo = gacFileInfo;
 }