Exemplo n.º 1
0
 public DayForm(Masterplan.Data.DayInfo day)
 {
     this.InitializeComponent();
     this.fDayInfo     = day.Copy();
     this.NameBox.Text = this.fDayInfo.Name;
     this.NameBox.SelectAll();
 }
Exemplo n.º 2
0
        /// <summary>
        /// Creates a copy of the DayInfo.
        /// </summary>
        /// <returns>Returns the copy.</returns>
        public DayInfo Copy()
        {
            DayInfo di = new DayInfo();

            di.ID   = fID;
            di.Name = fName;

            return(di);
        }
Exemplo n.º 3
0
        public DayInfo Copy()
        {
            DayInfo dayInfo = new DayInfo()
            {
                ID   = this.fID,
                Name = this.fName
            };

            return(dayInfo);
        }