private void cb_schedule_types_SelectionChanged(object sender, SelectionChangedEventArgs e) { ComboScheduleType selected = (ComboScheduleType)this.cb_schedule_types.SelectedItem; switch (selected) { case ComboScheduleType.StructuralElementSchedule: this.cb_assembly_marks.IsEnabled = false; break; case ComboScheduleType.SheetList: this.cb_host_marks.IsEnabled = false; this.cb_assembly_marks.IsEnabled = false; break; case ComboScheduleType.MaterialTakeOff: this.cb_host_marks.IsEnabled = false; this.cb_assembly_marks.IsEnabled = false; break; case ComboScheduleType.BarBendingStrElement: this.cb_assembly_marks.IsEnabled = false; break; case ComboScheduleType.AssemblySchedule: this.cb_host_marks.IsEnabled = true; this.cb_assembly_marks.IsEnabled = true; break; case ComboScheduleType.BarBendingAssembly: this.cb_host_marks.IsEnabled = true; this.cb_assembly_marks.IsEnabled = true; break; case ComboScheduleType.LabourSchedule: this.cb_host_marks.IsEnabled = false; this.cb_assembly_marks.IsEnabled = false; break; } }
// Constructors internal RebarEventArgs(IDictionary <string, string> paramsVals, ComboScheduleType scheduleType) { m_scheduleType = scheduleType; m_paramsValues = paramsVals; }