public void PasswordTestAndScan(object obj, EventArgs args) { if (password.Text.ToString() != "") { CheckList.Remove(CheckList.Find(x => x.Equals(false))); CheckList.Add(true); } else { CheckList.Remove(CheckList.Find(x => x.Equals(true))); CheckList.Add(false); } Scan(this.commit); }