// Set the filter check box states from the FilterFlags private void SetInstallFilterCheckBoxes(FilterFlags flags) { InstallMeshCheckBox.Checked = Convert.ToBoolean(flags & FilterFlags.Mesh); InstallMaterialCheckBox.Checked = Convert.ToBoolean(flags & FilterFlags.Materials); InstallSkeletonCheckBox.Checked = Convert.ToBoolean(flags & FilterFlags.Skeleton); InstallPhysicsCheckBox.Checked = Convert.ToBoolean(flags & FilterFlags.Physics); InstallTexturesCheckBox.Checked = Convert.ToBoolean(flags & FilterFlags.Textures); }
// Flip one bit in the InstallFilter flags private void SetInstallFilterState(bool state, FilterFlags flag) { if (state) { Settings.InstallFilter = (Settings.InstallFilter | Convert.ToUInt32(flag)); } else { Settings.InstallFilter = (Settings.InstallFilter & ~Convert.ToUInt32(flag)); } }