public static bool Toggle_Selection(object sender) { try { RepoCellOld tempCell = Find_Repo_Cell(sender); if (tempCell != null) { if (tempCell.Checked) { tempCell.Checked = false; TagRepoData.Selected_Repos_Count--; } else { tempCell.Checked = true; TagRepoData.Selected_Repos_Count++; } return(true); } return(false); } catch { return(false); } }
public static bool Checked(object sender) { RepoCellOld tempCell = Find_Repo_Cell(sender); if (tempCell != null) { if (tempCell.Checked) { return(true); } else { return(false); } } return(false); }