Example #1
0
        private void BtGetList_Click(object sender, EventArgs e)
        {
            EnterValueForm evf = new EnterValueForm("Папка с патчами", Properties.Settings.Default.MainFolderToTest);

            if (evf.ShowDialog() == DialogResult.OK)
            {
                string dir = evf.Value;
                Properties.Settings.Default.MainFolderToTest = evf.Value;
                Properties.Settings.Default.Save();

                VSSUtils      vss     = new VSSUtils(Properties.Settings.Default.BaseLocation, Environment.UserName);
                List <string> subdirs = vss.GetSubdirs(dir);

                if (TbPatchList.Text != "")
                {
                    if (MessageBox.Show("Список патчей непустой. Очистить?", "Предупреждение", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
                    {
                        TbPatchList.Clear();
                    }
                }

                foreach (string subdir in subdirs)
                {
                    TbPatchList.AppendText(subdir + Environment.NewLine);
                }
            }
        }
Example #2
0
        private void BtGetList_Click(object sender, EventArgs e)
        {
            EnterValueForm evf = new EnterValueForm("Папка с патчами");

            if (evf.ShowDialog() == DialogResult.OK)
            {
                string dir = evf.Value;

                VSSUtils      vss     = new VSSUtils(Properties.Settings.Default.BaseLocation, Environment.UserName);
                List <string> subdirs = vss.GetSubdirs(dir);

                foreach (string subdir in subdirs)
                {
                    TbPatchList.AppendText(subdir + Environment.NewLine);
                }
            }
        }