示例#1
0
 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;
 }
示例#2
0
 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();
 }
示例#3
0
 private bool FindCookName(Cook o)
 {
     if (o.getName() == ChkKeyword)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
示例#4
0
        override public bool Equals(Object o)
        {
            Cook buffer = (Cook)o;

            if (this.cName.Equals(buffer.getName()))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
示例#5
0
 private bool FindCookName(Cook o)
 {
     if (o.getName() == ChkKeyword) return true;
     else return false;
 }
示例#6
0
 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();
 }