private bool CheckCookEffect(Cook c) { if (c.getEffect().Contains(tbSearchTerm.Text)) return true; else return false; }
public void UpdateData(int DataIndex, Cook Data) { // MabiCooker Form 에서 같이 쓰이는 메소드. public //this.FormBorderStyle = FormBorderStyle.FixedToolWindow; this.Selected = Data; this.DataIndex = DataIndex; if (this.ForTrace.Count == 0) bBack.Enabled = false; this.Text = Data.getName(); lStuffOne.Text = (Data.getStuff())[0]; lStuffTwo.Text = (Data.getStuff())[1]; tiCheckAlert.Enabled = false; if ((Data.getRatio())[0] == 230) { this.Text += Properties.Resources.StrCannotCook; } if (Data.getStuff().Length == 3) { lStuffThree.Text = (Data.getStuff())[2]; lStuffThree.Visible = true; } else { lStuffThree.Text = ""; lStuffThree.Visible = false; } lEffects.Text = Data.getEffect(); lRank.Text = Data.getRank().ToString(); this.message = Data.getRankName(); lMessage.Text = this.message; }