public ViewModel_BR1()
 {
     repos   = ModelVariableRepository.Instance;
     Otkaz12 = repos.BitValues[2].ValState[7];
     Otkaz13 = repos.BitValues[2].ValState[9];
     Norm    = repos.BitValues[2].ValState[8];
 }
        public ViewModel_Main()
        {
            var dr = new DataReader();

            ValvesLocate = dr.GetValvesShowCommand(FormatName);
            repos        = ModelVariableRepository.Instance;
        }
 public ViewModel_EPK_PSA()
 {
     repos       = ModelVariableRepository.Instance;
     OtkrEPKPSA  = repos.BitValues[0].ValState[5];
     MalyiRashod = repos.BitValues[0].ValState[4];
     ZakrEPKPSA  = repos.BitValues[0].ValState[3];
 }
 public ViewModel_KSDBO()
 {
     repos = ModelVariableRepository.Instance;
     EUPR  = repos.BitValues[0].ValState[2];
     OTKR  = repos.BitValues[0].ValState[1];
     ZAKR  = repos.BitValues[0].ValState[0];
 }
示例#5
0
 public ViewModel_EPKRD()
 {
     repos      = ModelVariableRepository.Instance;
     RDOpen     = repos.BitValues[0].ValState[12];
     RDClose    = repos.BitValues[0].ValState[13];
     RDProduvka = repos.BitValues[0].ValState[14];
 }
 public ViewModel_ValvesfA()
 {
     repos = ModelVariableRepository.Instance;
     BOSU  = repos.BitValues[0].ValState[16];
     OBSU  = repos.BitValues[0].ValState[17];
     KSDSU = repos.BitValues[1].ValState[19];
 }
 public ViewModel_Lyk()
 {
     repos  = ModelVariableRepository.Instance;
     Stopor = repos.BitValues[0].ValState[30];
     Klapan = repos.BitValues[0].ValState[23];
     Lyk    = repos.BitValues[0].ValState[15];
 }
 public ViewModel_RPV()
 {
     repos  = ModelVariableRepository.Instance;
     RPV1_1 = repos.BitValues[0].ValState[6];
     RPV1_2 = repos.BitValues[0].ValState[7];
     RPV2_1 = repos.BitValues[0].ValState[8];
     RPV2_2 = repos.BitValues[0].ValState[9];
 }
 public ViewModel_KVDBO()
 {
     repos   = ModelVariableRepository.Instance;
     Otkr    = repos.BitValues[0].ValState[18];
     Zakr    = repos.BitValues[0].ValState[19];
     KKCOtkr = repos.BitValues[0].ValState[20];
     KKTOtkr = repos.BitValues[0].ValState[22];
     KKZakr  = repos.BitValues[0].ValState[21];
 }
 public ViewModel_BRUB()
 {
     repos = ModelVariableRepository.Instance;
     Osn   = repos.BitValues[0].ValState[24];
     Rez   = repos.BitValues[0].ValState[25];
     Vbo   = repos.BitValues[0].ValState[26];
     Asu   = repos.BitValues[0].ValState[27];
     Sro   = repos.BitValues[0].ValState[28];
     VV    = repos.BitValues[0].ValState[29];
 }
        public ViewModel_NeptunP2()
        {
            repos = ModelVariableRepository.Instance;
            Bi    = repos.BitValues[1].ValState[14];
            Kk    = repos.BitValues[1].ValState[15];
            Ki    = repos.BitValues[1].ValState[16];


            PPit = WagoIO.Instance.cLapmPult;//repos.BoolValues[0].ValState;
        }
 public ViewModel_Main()
 {
     var dr = new DataReader();
     ValvesLocate = dr.GetValvesShowCommand(FormatName);
     repos = ModelVariableRepository.Instance;
     Inpu1ModelSelect = repos.BoolFMSValues[0].ValState;
     Inpu2ModelSelect = repos.BoolFMSValues[1].ValState;
     Inpu1ModelSelect.PropertyChanged += Inpu1ModelSelect_PropertyChanged;
     Inpu2ModelSelect.PropertyChanged += Inpu1ModelSelect_PropertyChanged;
 }
示例#13
0
 public ViewModel_InPU()
 {
     repos = ModelVariableRepository.Instance;
     // DejRegim1 = new BoolValue();
     //  DejRegim2 = new BoolValue();
     //RMNum = 1;
     CentOgon      = WagoIO.Instance.CentOgon;//repos.BoolValues[1].ValState;
     COTransparant = repos.IntValues[3].ValState;
     clInpu        = new BoolValue();
     clInpu        = WagoIO.Instance.clInpu_1;
 }
示例#14
0
 public ViewModel_BRUS()
 {
     repos       = ModelVariableRepository.Instance;
     Podsvet     = repos.BitValues[1].ValState[0];
     Vent        = repos.BitValues[1].ValState[1];
     Ilym        = repos.BitValues[1].ValState[2];
     BoaSaOsn    = repos.BitValues[1].ValState[3];
     BoaSaRez    = repos.BitValues[1].ValState[4];
     Vsa         = repos.BitValues[1].ValState[5];
     PitEpkrdOsn = repos.BitValues[1].ValState[6];
     PitEpkrdRez = repos.BitValues[1].ValState[7];
     RazreshRrst = repos.BitValues[1].ValState[8];
     Pvk         = repos.BitValues[1].ValState[9];
     Pbk         = repos.BitValues[1].ValState[10];
     Vp1         = repos.BitValues[1].ValState[11];
     Vp2         = repos.BitValues[1].ValState[12];
     Sro         = repos.BitValues[1].ValState[13];
 }
        public ViewModel_NeptunP1()
        {
            repos  = ModelVariableRepository.Instance;
            BdusV1 = repos.BitValues[1].ValState[23];
            BdusV2 = repos.BitValues[1].ValState[24];
            Voltag = repos.IntValues[2].ValState;

            if (BdusV1.ValueState && !BdusV2.ValueState)
            {
                CmdBdus1.Execute(0);
            }
            if (!BdusV1.ValueState && BdusV2.ValueState)
            {
                CmdBdus2.Execute(0);
            }
            if (BdusV1.ValueState && BdusV2.ValueState)
            {
                CmdBdus3.Execute(0);
            }
        }
示例#16
0
        /*  public bool Avtomat
         * {
         *    get
         *    {
         *        if (repos == null) return false;
         *        return repos.BitValues[2].ValState[14].ValueState;
         *    }
         * }
         * public bool Osnov
         * {
         *    get
         *    {
         *        if (repos == null) return false;
         *        return repos.BitValues[2].ValState[15].ValueState;
         *    }
         * }
         * public bool Dubl
         * {
         *    get
         *    {
         *        if (repos == null) return false;
         *        return repos.BitValues[2].ValState[16].ValueState;
         *    }
         * }*/

        public ViewModel_BAPD()
        {
            repos   = ModelVariableRepository.Instance;
            Avtomat = repos.BitValues[2].ValState[13];
            Osnov   = repos.BitValues[2].ValState[14];
            Dubl    = repos.BitValues[2].ValState[15];


            repos.BitValues[2].ValState[13].PropertyChanged += delegate
            {
                Debug.WriteLine(Avtomat.ValueState + "-A");
            };
            repos.BitValues[2].ValState[14].PropertyChanged += delegate
            {
                Debug.WriteLine(Osnov.ValueState + "-O");
            };
            repos.BitValues[2].ValState[15].PropertyChanged += delegate
            {
                Debug.WriteLine(Dubl.ValueState + "-D");
            };
        }
 public ViewModel_KR1()
 {
     repos = ModelVariableRepository.Instance;
     Xsa1  = repos.BitValues[2].ValState[4];
     Xsa2  = repos.BitValues[2].ValState[5];
 }
 public ViewModel_Manov()
 {
     repos = ModelVariableRepository.Instance;
     Manov = repos.IntValues[1].ValState;
 }
示例#19
0
 public ViewModel_DSD()
 {
     repos = ModelVariableRepository.Instance;
     Dsd   = repos.IntValues[0].ValState;
     // CmdDsd = repos.KomValues[4].SendCommand;
 }
示例#20
0
        //   public ICommand CmdRus { get; private set; }

        public ViewModel_RUS()
        {
            repos = ModelVariableRepository.Instance;
            // CmdRus = repos.KomValues[5].SendCommand;
        }
 public ViewModel_Voltmetr()
 {
     repos  = ModelVariableRepository.Instance;
     Voltag = repos.IntValues[2].ValState;
 }
示例#22
0
 public ViewModel_KR3()
 {
     repos = ModelVariableRepository.Instance;
     Kr    = repos.BitValues[1].ValState[17];
 }
示例#23
0
 public ViewModel_EPKP()
 {
     repos     = ModelVariableRepository.Instance;
     EPKPOpen  = repos.BitValues[0].ValState[10];
     EPKPClose = repos.BitValues[0].ValState[11];
 }
示例#24
0
 public ViewModelSUOB()
 {
     repos = ModelVariableRepository.Instance;
     SUOB  = repos.BitValues[1].ValState[18];
 }
示例#25
0
 public ViewModel_ZGL()
 {
     repos = ModelVariableRepository.Instance;
     Zgl   = repos.BitValues[1].ValState[20];
 }
示例#26
0
 public ViewModel_ZDV()
 {
     repos = ModelVariableRepository.Instance;
     ZDV1  = repos.BitValues[2].ValState[0];
     ZDV2  = repos.BitValues[2].ValState[1];
 }
示例#27
0
 public ViewModel_XSASA()
 {
     repos  = ModelVariableRepository.Instance;
     XSASA1 = repos.BitValues[2].ValState[2];
     XSASA2 = repos.BitValues[2].ValState[3];
 }
示例#28
0
 public ViewModel_OVK()
 {
     repos = ModelVariableRepository.Instance;
     KO    = repos.BitValues[2].ValState[16];
 }
示例#29
0
 public ViewModel_RAP10()
 {
     repos = ModelVariableRepository.Instance;
     AVT   = repos.BitValues[2].ValState[11];
     VIN   = repos.BitValues[2].ValState[12];
 }
示例#30
0
 public ViewModel_RAP7()
 {
     repos = ModelVariableRepository.Instance;
     Rap   = repos.BitValues[2].ValState[6];
 }