示例#1
0
        // FIX ME
        private void HandleRealTimeModelLocationChanged(object sender, EventArgs args)
        {
            MainScreen.UpdateRealTimeModelLocationTextBox(this._realTimeModelProperties.RealTimeModelFilePath);
            if (RealTimeModelProperties.RealTimeModelFilePath != null)
            {
                if (RealTimeModelProperties.RealTimeModelFilePath.Contains(ModelConstants.REAL_TIME_MODEL_FILE_EXTENSION) == true)
                {
                    MainScreen.ChangeBuildModelButtonState(false);
                }
                else if (RealTimeModelProperties.RealTimeModelFilePath.Contains(ModelConstants.SIMULINK_FILE_EXTENSION) == true)
                {
                    MainScreen.ChangeBuildModelButtonState(true);
                }
                else
                {
                    MainScreen.ChangeBuildModelButtonState(false);
                }
            }

            ChangeLoadApplicationControls();
        }