Esempio n. 1
0
        public MainViewModel(IRuntimeService runtime)
        {
            Runtime       = runtime;
            DisplayName   = EtpSettings.EtpSubProtocolName;
            DisplayName   = _pluginDisplayName;
            Resources     = new BindableCollection <ResourceViewModel>();
            _channels     = new ConcurrentDictionary <int, JToken>();
            _protocolTabs = new List <IScreen>();

            Model = new Models.EtpSettings()
            {
                ApplicationName    = Assembly.GetEntryAssembly().GetAssemblyName(),
                ApplicationVersion = _pluginVersion
            };

            Details = new TextEditorViewModel(runtime, "JavaScript", true)
            {
                ShowWriteSettings  = true,
                IsScrollingEnabled = true
            };
            Messages = new TextEditorViewModel(runtime, "JavaScript", true)
            {
                ShowWriteSettings  = true,
                IsScrollingEnabled = true
            };
            DataObject = new TextEditorViewModel(runtime, "XML", true)
            {
                ShowWriteSettings    = true,
                IsPrettyPrintAllowed = true
            };
        }
Esempio n. 2
0
        public MainViewModel(IRuntimeService runtime)
        {
            Runtime     = runtime;
            DisplayName = EtpSettings.EtpSubProtocolName;
            DisplayName = _pluginDisplayName;
            Resources   = new BindableCollection <ResourceViewModel>();
            Model       = new Models.EtpSettings()
            {
                ApplicationName    = Assembly.GetEntryAssembly().GetAssemblyName(),
                ApplicationVersion = _pluginVersion
            };

            Details  = new TextEditorViewModel(runtime, "JavaScript", true);
            Messages = new TextEditorViewModel(runtime, "JavaScript", true)
            {
                IsScrollingEnabled = true
            };
            DataObject = new TextEditorViewModel(runtime, "XML", true)
            {
                IsPrettyPrintAllowed = true
            };
        }