예제 #1
0
 // 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);
 }
예제 #2
0
 // 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));
     }
 }