Exemple #1
0
        private void updateUserGrid(string[] userPaths)
        {
            _userRows = new BindingList <PathRow>();

            foreach (var userPath in userPaths)
            {
                var newRow = new PathRow {
                    Path = userPath
                };
                _userRows.Add(newRow);
            }

            dgvUser.DataSource = _userRows;
        }
Exemple #2
0
        private void updateSystemGrid(string[] systemPaths)
        {
            _systemRows = new BindingList <PathRow>();

            foreach (var systemPath in systemPaths)
            {
                var newRow = new PathRow {
                    Path = systemPath
                };
                _systemRows.Add(newRow);
            }

            dgvSystem.DataSource = _systemRows;
        }
Exemple #3
0
        private void btnSystemAdd_Click(object sender, EventArgs e)
        {
            if (!Directory.Exists(txtSystem.Text))
            {
                MessageBox.Show("Invalid Directory Path!");
                return;
            }
            var newRow = new PathRow {
                Path = txtSystem.Text
            };

            _systemRows.Add(newRow);

            txtSystem.Text = "";
        }