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; }
public CookData(List <Cook> CList, List <Stuff> SList, Cook cook) { this.CookList = CList; this.StuffList = SList; this.ChkKeyword = cook.getName(); this.CookIndex = this.CookList.FindIndex(FindCookName); this.SelectedCook = this.CookList[CookIndex]; CheckStuff(); }
private bool FindCookName(Cook o) { if (o.getName() == ChkKeyword) { return(true); } else { return(false); } }
override public bool Equals(Object o) { Cook buffer = (Cook)o; if (this.cName.Equals(buffer.getName())) { return(true); } else { return(false); } }
private bool FindCookName(Cook o) { if (o.getName() == ChkKeyword) return true; else return false; }
public CookData(List<Cook> CList, List<Stuff> SList, Cook cook) { this.CookList = CList; this.StuffList = SList; this.ChkKeyword = cook.getName(); this.CookIndex = this.CookList.FindIndex(FindCookName); this.SelectedCook = this.CookList[CookIndex]; CheckStuff(); }