Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MainWindowViewModel"/> class.
        /// </summary>
        public MainWindowViewModel()
        {
            //Menu Files
            b_ConfigurationFolder = new DelegateCommand(ProcessOpenFileInExecutingAssemblyLocation);
            b_HelpDocumentation   = new DelegateCommand(() => ProcessStart(Resources.HelpDocumentationUrl));
            //Menu Actions
            b_OpenConsumerConfiguration = new ConfigurationEditorOpenCommand(Properties.Resources.ConfigurationDataConsumerFileName, SaveResponse);
            b_OpenProducerConfiguration = new ConfigurationEditorOpenCommand(Properties.Resources.ConfigurationDataProducerFileName, SaveResponse);
            //Menu Help
            b_ReadMe         = new DelegateCommand(() => ProcessStart(Resources.ReadMeFileName));
            b_TermsOfService = new DelegateCommand(() => ProcessStart(Resources.TermsOfServiceUrl));
            b_ViewLicense    = new DelegateCommand(() => ProcessStart(Resources.ViewLicenseUrl));
            string _version = Assembly.GetExecutingAssembly().GetName().Version.ToString();

            b_WindowTitle = $"OPC UA Reactive Networking Example Application Rel. {_version} supporting PubSup protocol 1.10";
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MainWindowViewModel"/> class.
        /// </summary>
        public MainWindowViewModel()
        {
            b_ConsumerLog = new ObservableCollection <string>();
            //Menu Files
            b_ConfigurationFolder = new ConfigurationFolderCommand();
            b_HelpDocumentation   = new WebDocumentationCommand(Properties.Resources.HelpDocumentationUrl);
            //Menu Actions
            b_OpenConsumerConfiguration = new ConfigurationEditorOpenCommand(Properties.Resources.ConfigurationDataConsumerFileName, SaveResponse);
            b_OpenProducerConfiguration = new ConfigurationEditorOpenCommand(Properties.Resources.ConfigurationDataProducerFileName, SaveResponse);
            //Menu Help
            b_ReadMe         = new OpenFileCommand(Properties.Resources.ReadMeFileName);
            b_TermsOfService = new WebDocumentationCommand(Properties.Resources.TermsOfServiceUrl);
            b_ViewLicense    = new WebDocumentationCommand(Properties.Resources.ViewLicenseUrl);
            String _version = Assembly.GetExecutingAssembly().GetName().Version.ToString();

            b_WindowTitle = $"OPC UA Example Application Rel. {_version} supporting PubSup protocol 1.10";
        }