コード例 #1
0
ファイル: CookDetailView.cs プロジェクト: logue/MabiCooker
 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
ファイル: CookImplement.cs プロジェクト: logue/CookImplement
 private bool FindCookName(Cook o)
 {
     if (o.getName() == ChkKeyword) return true;
     else return false;
 }
コード例 #6
0
ファイル: CookImplement.cs プロジェクト: logue/CookImplement
 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();
 }