/*整理组函数(绑定BlankConform事件) * 类函数:整理本组成员 * 参数:标准事件函数 * 返回值:void */ public void SettleGroup(object sender, Suduku_EventArgs e) { switch (this.GrpType) { case GroupType.Row: this.Unsolved_Blank.Remove(this.Blank[Index_Parser.Row_index(e.ConformIndex)]); for (int i = 0; i < this.Unsolved_Blank.Count; i++) { this.Unsolved_Blank[i].iValues.Remove(this.Blank[Index_Parser.Row_index(e.ConformIndex)].Value); } break; case GroupType.Column: this.Unsolved_Blank.Remove(this.Blank[Index_Parser.Column_index(e.ConformIndex)]); for (int i = 0; i < this.Unsolved_Blank.Count; i++) { this.Unsolved_Blank[i].iValues.Remove(Blank[Index_Parser.Column_index(e.ConformIndex)].Value); } break; case GroupType.Mix: this.Unsolved_Blank.Remove(this.Blank[Index_Parser.Mix_index(e.ConformIndex)]); for (int i = 0; i < this.Unsolved_Blank.Count; i++) { this.Unsolved_Blank[i].iValues.Remove(Blank[Index_Parser.Mix_index(e.ConformIndex)].Value); } break; } }
//数字确认事件触发器 public void OnBlankConform() { if (BlankConform != null) { Suduku_EventArgs e = new Suduku_EventArgs(this.Index); BlankConform(this, e); } }