예제 #1
0
        private void AddThenOperation()
        {
            var list              = new List <TriggerStateThenOperations>();
            var thenopeartionsVM  = new ThenOperationsVM(list);
            var thenopartionsView = new Views.ThenOperationsWindow();

            thenopartionsView.DataContext = thenopeartionsVM;
            thenopartionsView.ShowDialog();
        }
예제 #2
0
        private void AddThenOperation()
        {
            var list              = new List <ThenOperationModel>();
            var thenopeartionsVM  = new ThenOperationsVM(list);
            var thenopartionsView = new Views.ThenOperationsWindow();

            thenopartionsView.DataContext = thenopeartionsVM;
            thenopartionsView.ShowDialog();

            if (thenopeartionsVM.IS_SAVED)
            {
            }
        }
예제 #3
0
        private void AddThenOperation()
        {
            var thenOperationModelList = new List<ThenOperationModel>();
            var thenOperationVm = new ThenOperationsVM(thenOperationModelList);
            var thenOperationView = new Views.ThenOperationsWindow();
            thenOperationView.DataContext = thenOperationVm;
            thenOperationView.ShowDialog();


            var thenOperationList = new List<TriggerStateThenOperations>();
            if (thenOperationVm.IS_SAVED)
            {
                foreach (ThenOperationModel thenoperationmodel in thenOperationModelList)
                {
                    
                }
            
        }
        private void AddThenOperation()
        {
            var thenOperationModelList = new List <ThenOperationModel>();
            var thenOperationVm        = new ThenOperationsVM(thenOperationModelList);
            var thenOperationView      = new Views.ThenOperationsWindow();

            thenOperationView.DataContext = thenOperationVm;
            thenOperationView.ShowDialog();

            if (thenOperationVm.IS_SAVED)
            {
                var thenOperationList   = new List <TriggerStateThenOperations>();
                var thenOperationString = "";
                foreach (ThenOperationModel thenOperartionModel in thenOperationModelList)
                {
                    thenOperationList.Add(thenOperartionModel.ThenOperation);
                    thenOperationString
                }
                _thenOperations = thenOperationList;
            }
        }
 private void AddThenOperation()
 {
     var list = new List<ThenOperationModel>();
     var thenopeartionsVM = new ThenOperationsVM(list);
     var thenopartionsView = new Views.ThenOperationsWindow();
     thenopartionsView.DataContext = thenopeartionsVM;
     thenopartionsView.ShowDialog();
 }
 private void AddThenOperations()
 {
     var list              = new List <TriggerStateThenOperations>();
     var thenopeartionsVM  = new ThenOperationsVM(list);
     var thenopartionsView = new Views.ThenOperationsWindow();
 }
        private void AddThenOperation()
        {
            var thenOperationModelList = new List<ThenOperationModel>();
            var thenOperationVm = new ThenOperationsVM(thenOperationModelList);
            var thenOperationView = new Views.ThenOperationsWindow();
            thenOperationView.DataContext = thenOperationVm;
            thenOperationView.ShowDialog();

            if (thenOperationVm.IS_SAVED)
            {
                var thenOperationList = new List<TriggerStateThenOperations>();
                var thenOperationString = "";
                foreach (ThenOperationModel thenOperartionModel in thenOperationModelList)
                {
                    thenOperationList.Add(thenOperartionModel.ThenOperation);
                    thenOperationString
                }
                _thenOperations = thenOperationList;
            }
        }
        private void AddThenOperation()
        {
            var thenOperationModelList = new List<ThenOperationModel>();
            var thenopeartionsVM = new ThenOperationsVM(thenOperationModelList);
            var thenopartionsView = new Views.ThenOperationsWindow();
            thenopartionsView.DataContext = thenopeartionsVM;
            thenopartionsView.ShowDialog();

            var thenOperationList = new List<TriggerStateThenOperations>();
            if (thenopeartionsVM.IS_SAVED)
            {
                foreach (ThenOperationModel thenoperationmodel in thenOperationModelList)
                {

                }
            }
        }
 private void AddThenOperations()
 {
     var list = new List<TriggerStateThenOperations>();
     var thenopeartionsVM = new ThenOperationsVM(list);
 }
        private void AddThenOperation()
        {
            var thenOperationModelList = new List<ThenOperationModel>();
            var thenOperationVm = new ThenOperationsVM(thenOperationModelList);
            var thenOperationView = new Views.ThenOperationsWindow();
            thenOperationView.DataContext = thenOperationVm;
            thenOperationView.ShowDialog();


            var thenOperationList = new List<TriggerStateThenOperations>();
            if (thenOperationVm.IS_SAVED)
            {
                foreach (ThenOperationModel thenoperationmodel in thenOperationModelList)
                {
                    
                }
            
        }

        private void AddStatement()
        {
            var statementDataList = new List<StatementData>();

            var statementVm = new StatementVm3(statementDataList, _avalibleSignals);
            var statementView = new Views.StatementWindow3();
            statementView.DataContext = statementVm;
            statementView.ShowDialog();

            if (statementVm.VALID_DATA_FLAG)
            {
                if (statementDataList.Count > 1)
                {
                    var statement = new Statement.StatementCollection();
                    foreach (StatementData statementdata in statementDataList)
                    {
                        switch (statementdata.AlgebraOperator)
                        {
                            case "Or":
                                statement.AddStatement(CreateStatement(statementdata), LogialAnalyzerTrigger.Statement.LogicalOperators.Or);
                                break;
                            case "And":
                                statement.AddStatement(CreateStatement(statementdata), LogialAnalyzerTrigger.Statement.LogicalOperators.And);
                                break;
                            default:
                                statement.AddStatement(CreateStatement(statementdata), LogialAnalyzerTrigger.Statement.LogicalOperators.First);
                                break;
                        }

                    }
                    Statement = statement;
                }
                else
                {
                    Statement = CreateStatement(statementDataList.First());
                }
            }
            else
            {
                MessageBoxResult msgBox = MessageBox.Show("Statement creaton canceled");
            }

        }