示例#1
0
 /// <summary>
 /// Initializes a new instance of the ConfigurationDataEditorViewModel class.
 /// </summary>
 public ConfigurationDataEditorViewModel()
 {
     b_Title           = $"OPC UA Application Configuration Editor Rel: {Assembly.GetExecutingAssembly().GetName().Version}";
     SaveCommand       = new Prism.Commands.DelegateCommand(() => { });
     HelpDocumentation = new WebDocumentationCommand(Properties.Resources.HelpDocumentationUrl);
     ReadMe            = new  OpenFileCommand(Properties.Resources.ReadMeFileName);
     ViewLicense       = new WebDocumentationCommand(Properties.Resources.ViewLicenseUrl);
 }
示例#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";
        }