예제 #1
0
        public Ritual Copy()
        {
            Ritual ritual = new Ritual()
            {
                ID            = this.fID,
                Name          = this.fName,
                ReadAloud     = this.fReadAloud,
                Level         = this.fLevel,
                Category      = this.fCategory,
                Time          = this.fTime,
                Duration      = this.fDuration,
                ComponentCost = this.fComponentCost,
                MarketPrice   = this.fMarketPrice,
                KeySkill      = this.fKeySkill,
                Details       = this.fDetails
            };

            return(ritual);
        }
예제 #2
0
 public OptionRitualForm(Masterplan.Data.Ritual ritual)
 {
     this.InitializeComponent();
     foreach (RitualCategory value in Enum.GetValues(typeof(RitualCategory)))
     {
         this.CatBox.Items.Add(value);
     }
     this.fRitual             = ritual.Copy();
     this.NameBox.Text        = this.fRitual.Name;
     this.LevelBox.Value      = this.fRitual.Level;
     this.CatBox.SelectedItem = this.fRitual.Category;
     this.TimeBox.Text        = this.fRitual.Time;
     this.DurationBox.Text    = this.fRitual.Duration;
     this.ComponentBox.Text   = this.fRitual.ComponentCost;
     this.MarketBox.Text      = this.fRitual.MarketPrice;
     this.SkillBox.Text       = this.fRitual.KeySkill;
     this.DetailsBox.Text     = this.fRitual.Details;
     this.ReadAloudBox.Text   = this.fRitual.ReadAloud;
 }