public Item(CreationItemsRecord cir,ComboBox.ObjectCollection cboc) { InitializeComponent(); this.Text = "項目"; inpSchoolYear.Value = int.Parse(School.DefaultSchoolYear); inpSemester.Value = int.Parse(School.DefaultSemester); foreach (string item in cboc) { inpOrganizers.Items.Add(item); } if (cir.UID != null) { _cir = cir; inpRegistStartTime.Value = _cir.RegistStartTime; inpRegistEndTime.Value = _cir.RegistEndTime; inpSchoolYear.Value = _cir.SchoolYear; inpSemester.Value = _cir.Semester; inpOrganizers.Text = _cir.Organizers ; inpOccurDate.Value = _cir.OccurDate; inpLocation.Text = _cir.Location ; inpEpectedHours.Value = double.Parse(""+_cir.ExpectedHours) ; inpParticipateLimit.Value = _cir.ParticipateLimit; inpReason.Text = _cir.Reason ; inpRemark.Text= _cir.Remark; } if (_cir.IsApproved) { inpRegistStartTime.Enabled = false; inpRegistEndTime.Enabled = false; inpSchoolYear.Enabled = false; inpSemester.Enabled = false; inpOrganizers.Enabled = false; inpOccurDate.Enabled = false; inpLocation.Enabled = false; inpEpectedHours.Enabled = false; inpParticipateLimit.Enabled = false; inpReason.Enabled = false; inpRemark.Enabled = false; btnSave.Enabled = false; } }
public Item(CreationItemsRecord cir, ComboBox.ObjectCollection cboc) { InitializeComponent(); this.Text = "項目"; inpSchoolYear.Value = int.Parse(School.DefaultSchoolYear); inpSemester.Value = int.Parse(School.DefaultSemester); foreach (string item in cboc) { inpOrganizers.Items.Add(item); } if (cir.UID != null) { _cir = cir; inpRegistStartTime.Value = _cir.RegistStartTime; inpRegistEndTime.Value = _cir.RegistEndTime; inpSchoolYear.Value = _cir.SchoolYear; inpSemester.Value = _cir.Semester; inpOrganizers.Text = _cir.Organizers; inpOccurDate.Value = _cir.OccurDate; inpLocation.Text = _cir.Location; inpEpectedHours.Value = double.Parse("" + _cir.ExpectedHours); inpParticipateLimit.Value = _cir.ParticipateLimit; inpReason.Text = _cir.Reason; inpRemark.Text = _cir.Remark; } if (_cir.IsApproved) { inpRegistStartTime.Enabled = false; inpRegistEndTime.Enabled = false; inpSchoolYear.Enabled = false; inpSemester.Enabled = false; inpOrganizers.Enabled = false; inpOccurDate.Enabled = false; inpLocation.Enabled = false; inpEpectedHours.Enabled = false; inpParticipateLimit.Enabled = false; inpReason.Enabled = false; inpRemark.Enabled = false; btnSave.Enabled = false; } }
public AuthorizeForm(CreationItemsRecord cir) { InitializeComponent(); _cir = cir; }
public ApprovedForm(CreationItemsRecord cir) { InitializeComponent(); _cir = cir; }