32 lines
617 B
C#
32 lines
617 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SanSystem
|
|
{
|
|
enum AktivierteModule
|
|
{
|
|
SCHLAUCHLINER = 1,
|
|
SCHACHTANBINDUNG = 2,
|
|
KURZLINER = 4,
|
|
HUTPROFIL = 8,
|
|
QUICKLOCK = 16,
|
|
DICHTHEITSPRÜFUNG = 32,
|
|
}
|
|
|
|
class ProgrammModules
|
|
{
|
|
private int mod;
|
|
public ProgrammModules(int mod)
|
|
{
|
|
this.mod = mod;
|
|
}
|
|
public bool ModulActivated(AktivierteModule pm)
|
|
{
|
|
return (mod & (int)pm) == (int)pm;
|
|
}
|
|
}
|
|
}
|