private void btnAddRemoteComputer_Click(object sender, EventArgs e)
        {
            FrmAddRemoteComputer addRemoteComputer = new FrmAddRemoteComputer
            {
                Password = _password
            };

            if (addRemoteComputer.ShowDialog() == DialogResult.OK)
            {
                AddComputer(new Computer(addRemoteComputer.ComputerName, addRemoteComputer.Username, addRemoteComputer.Password));
                _password = addRemoteComputer.Password;
            }
        }
 private void dgvComputers_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex != -1 && dgvComputers.SelectedRows != null && dgvComputers.SelectedRows.Count == 1)
     {
         Computer selectedComputer = (Computer)dgvComputers.SelectedRows[0].Cells["Computer"].Value;
         if (selectedComputer.ComputerLocation == RemoteMsiManager.Computer.ComputerLocations.Remote)
         {
             FrmAddRemoteComputer frmAddComputer = new FrmAddRemoteComputer(selectedComputer.ComputerName, selectedComputer.Username);
             if (frmAddComputer.ShowDialog() == DialogResult.OK)
             {
                 selectedComputer.Username = frmAddComputer.Username;
                 selectedComputer.Password = frmAddComputer.Password;
             }
         }
     }
 }