예제 #1
0
        private void СopyToGacBtn_Click(object sender, EventArgs e)
        {
            GACManager gacManager   = new GACManager();
            dynamic    selectedItem = gacPathsBox.SelectedItem;
            string     output       = gacManager.CopyToGAC(projectsBox.Text, selectedItem.Value);

            logBox.AppendText(output);
        }
예제 #2
0
        public string CopyToGAC(string project, string gacPath)
        {
            List <string> paths = new SQLiteManager().PathsRepository.GetByTitle(project)
                                  .Select((item) => item.Path).ToList();
            var gacManager = new GACManager();

            var dynOutput = paths.Select((path) => gacManager.RunProcess(gacPath, path));

            return(string.Join("\n", dynOutput));
        }
예제 #3
0
        static string GetGacUtil(int num)
        {
            GACManager manager = new GACManager();

            string[] paths = manager.GetGacUtilValidPaths();
            if (paths.Length < num)
            {
                throw new Exception("Gacutil под таким номером не существует.");
            }
            return(paths[num]);
        }
예제 #4
0
        private void Main_Load(object sender, EventArgs e)
        {
            SetProjectBoxItems();
            GACManager gacManager = new GACManager();

            string[] gacPaths = gacManager.GetGacUtilValidPaths();
            gacPathsBox.Items.AddRange(GetPathsItems(gacPaths));
            if (gacPathsBox.Items.Count > 0)
            {
                gacPathsBox.SelectedIndex = 0;
            }
        }