├── .gitmodules
├── src
├── Desktop.UnitTest
│ ├── Plugins
│ │ └── ReadMe.txt
│ ├── packages.config
│ ├── app.config
│ ├── ShellHarness.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── ViewModels
│ │ ├── TestViewModel.cs
│ │ ├── ASecondViewModel.cs
│ │ └── AThirdViewModel.cs
├── Desktop
│ ├── WitsmlStudio.ico
│ ├── Images
│ │ └── SplashScreen.png
│ ├── packages.config
│ ├── Samples
│ │ └── ChannelMetadataRecords.json
│ ├── log4net.config
│ ├── App.xaml.cs
│ ├── Plugins
│ │ └── Witsml.Studio.Plugins.ObjectInspector.dll.config
│ └── App.config
├── Desktop.Core
│ ├── Images
│ │ ├── Eye32.png
│ │ ├── EyeRevealed32.png
│ │ ├── StatusOK_16x.png
│ │ ├── WitsmlStudio.ico
│ │ ├── WitsmlStudio.png
│ │ └── StatusInvalid_16x.png
│ ├── Views
│ │ ├── DiscoveryView.xaml.cs
│ │ ├── PropertyGridView.xaml
│ │ ├── SelectChannelsView.xaml.cs
│ │ ├── RevealablePasswordBoxView.xaml.cs
│ │ ├── AboutView.xaml.cs
│ │ ├── ConnectionView.xaml.cs
│ │ ├── DataGridView.xaml.cs
│ │ ├── TextEditorView.xaml.cs
│ │ ├── WitsmlTreeView.xaml.cs
│ │ ├── PropertyGridView.xaml.cs
│ │ ├── ConnectionPickerView.xaml.cs
│ │ ├── DataGridView.xaml
│ │ ├── ShellView.xaml
│ │ ├── ShellView.xaml.cs
│ │ └── AboutView.xaml
│ ├── SaveWindowState
│ │ ├── LICENSE.txt
│ │ ├── WindowSettings.cs
│ │ ├── Point.cs
│ │ ├── WindowPlacement.cs
│ │ └── Rect.cs
│ ├── packages.config
│ ├── Connections
│ │ ├── IConnectionTest.cs
│ │ └── JwtConnectionTest.cs
│ ├── ViewModels
│ │ ├── IPluginViewModel.cs
│ │ ├── ITreeViewContextMenuManipulator.cs
│ │ └── IShellViewModel.cs
│ ├── Properties
│ │ ├── Settings.settings
│ │ └── AssemblyInfo.cs
│ ├── Adapters
│ │ └── GraphScopes.cs
│ ├── Runtime
│ │ ├── DesktopRuntimeService.cs
│ │ └── Win32WindowHandle.cs
│ ├── Providers
│ │ └── ISoapMessageHandler.cs
│ ├── Models
│ │ └── FocusExtension.cs
│ ├── app.config
│ └── Converters
│ │ └── ExpandableListConverter.cs
├── Desktop.Plugins.ObjectInspector
│ ├── packages.config
│ ├── Properties
│ │ ├── Settings.settings
│ │ ├── AssemblyInfo.cs
│ │ └── Settings.Designer.cs
│ ├── Views
│ │ ├── FamilyVersionObjectsView.xaml
│ │ ├── MainView.xaml.cs
│ │ ├── DataObjectView.xaml.cs
│ │ ├── FamilyVersionView.xaml.cs
│ │ ├── DataPropertiesView.xaml.cs
│ │ ├── FamilyVersionView.xaml
│ │ ├── FamilyVersionObjectsView.xaml.cs
│ │ ├── MainView.xaml
│ │ └── DataObjectView.xaml
│ └── app.config
├── External
│ ├── nuget.config
│ ├── test.runsettings
│ ├── UpdateAssemblyInfo.ps1
│ ├── UpdatePackageHintPaths.ps1
│ └── GlobalAssemblyInfo.cs
├── PDS.WITSMLstudio.Desktop.sln.DotSettings
├── Desktop.Plugins.DataReplay
│ ├── Properties
│ │ ├── Settings.settings
│ │ └── Settings.Designer.cs
│ ├── Views
│ │ ├── DataReplayView.xaml
│ │ ├── Simulation
│ │ │ ├── SimulationView.xaml
│ │ │ ├── ChannelsView.xaml.cs
│ │ │ ├── GeneralView.xaml.cs
│ │ │ └── SimulationView.xaml.cs
│ │ ├── MainView.xaml.cs
│ │ └── DataReplayView.xaml.cs
│ ├── packages.config
│ ├── ViewModels
│ │ ├── DataReplayViewModel.cs
│ │ ├── Proxies
│ │ │ ├── WitsmlProxyViewModel.cs
│ │ │ └── EtpProxyViewModel.cs
│ │ └── Simulation
│ │ │ └── GeneralViewModel.cs
│ ├── app.config
│ └── Providers
│ │ └── IEtpSimulator.cs
├── Desktop.Plugins.WitsmlBrowser
│ ├── Views
│ │ ├── Request
│ │ │ ├── TemplatesView.xaml
│ │ │ ├── RequestView.xaml
│ │ │ ├── QueryView.xaml.cs
│ │ │ ├── RequestView.xaml.cs
│ │ │ ├── SettingsView.xaml.cs
│ │ │ ├── TreeViewView.xaml.cs
│ │ │ ├── TemplatesView.xaml.cs
│ │ │ └── TreeViewView.xaml
│ │ ├── MainView.xaml
│ │ ├── MainView.xaml.cs
│ │ └── Result
│ │ │ ├── ResultView.xaml
│ │ │ └── ResultView.xaml.cs
│ ├── Properties
│ │ ├── Settings.settings
│ │ └── Settings.Designer.cs
│ ├── packages.config
│ ├── ViewModels
│ │ ├── IConnectionAware.cs
│ │ └── Request
│ │ │ └── TemplatesViewModel.cs
│ └── app.config
├── Desktop.IntegrationTest
│ ├── packages.config
│ ├── log4net.config
│ ├── app.config
│ ├── AssemblyInitializer.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── ViewModels
│ │ └── ConnectionViewModelTests.cs
│ └── Plugins
│ │ └── WitsmlBrowser
│ │ └── SettingsViewModelTests.cs
└── Desktop.Plugins.EtpBrowser
│ ├── Views
│ ├── DataLoadView.xaml.cs
│ ├── Streaming12View.xaml.cs
│ ├── Streaming12View.xaml
│ ├── JsonMessageView.xaml.cs
│ ├── MainView.xaml.cs
│ ├── SettingsView.xaml.cs
│ ├── SubscribeView.xaml.cs
│ ├── Hierarchy11View.xaml.cs
│ ├── Hierarchy12View.xaml.cs
│ ├── Streaming11View.xaml.cs
│ ├── GrowingObject11View.xaml.cs
│ ├── StoreNotificationView.xaml.cs
│ ├── MainView.xaml
│ └── StoreView.xaml.cs
│ ├── packages.config
│ ├── Properties
│ ├── Settings.settings
│ └── Settings.Designer.cs
│ ├── Models
│ └── EtpSocketServerHandler.cs
│ ├── app.config
│ └── ViewModels
│ ├── ISessionAware.cs
│ └── Streaming12ViewModel.cs
└── .gitattributes
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "ext/witsml"]
2 | path = ext/witsml
3 | url = ../witsml
4 | branch = master
5 |
--------------------------------------------------------------------------------
/src/Desktop.UnitTest/Plugins/ReadMe.txt:
--------------------------------------------------------------------------------
1 | Do not remove!
2 |
3 | Test plug-ins will be loaded from this directory.
4 |
--------------------------------------------------------------------------------
/src/Desktop/WitsmlStudio.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pds-technology/witsml-studio/HEAD/src/Desktop/WitsmlStudio.ico
--------------------------------------------------------------------------------
/src/Desktop.Core/Images/Eye32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pds-technology/witsml-studio/HEAD/src/Desktop.Core/Images/Eye32.png
--------------------------------------------------------------------------------
/src/Desktop/Images/SplashScreen.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pds-technology/witsml-studio/HEAD/src/Desktop/Images/SplashScreen.png
--------------------------------------------------------------------------------
/src/Desktop.Core/Images/EyeRevealed32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pds-technology/witsml-studio/HEAD/src/Desktop.Core/Images/EyeRevealed32.png
--------------------------------------------------------------------------------
/src/Desktop.Core/Images/StatusOK_16x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pds-technology/witsml-studio/HEAD/src/Desktop.Core/Images/StatusOK_16x.png
--------------------------------------------------------------------------------
/src/Desktop.Core/Images/WitsmlStudio.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pds-technology/witsml-studio/HEAD/src/Desktop.Core/Images/WitsmlStudio.ico
--------------------------------------------------------------------------------
/src/Desktop.Core/Images/WitsmlStudio.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pds-technology/witsml-studio/HEAD/src/Desktop.Core/Images/WitsmlStudio.png
--------------------------------------------------------------------------------
/src/Desktop.Core/Images/StatusInvalid_16x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/pds-technology/witsml-studio/HEAD/src/Desktop.Core/Images/StatusInvalid_16x.png
--------------------------------------------------------------------------------
/src/Desktop.Plugins.ObjectInspector/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/External/nuget.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/External/test.runsettings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/PDS.WITSMLstudio.Desktop.sln.DotSettings:
--------------------------------------------------------------------------------
1 |
2 | <Policy Inspect="True" Prefix="_" Suffix="" Style="aaBb" />
--------------------------------------------------------------------------------
/src/External/UpdateAssemblyInfo.ps1:
--------------------------------------------------------------------------------
1 | $BuildNumber = $Env:BUILD_BUILDNUMBER
2 | $SourcesPath = $Env:BUILD_SOURCESDIRECTORY
3 |
4 | Get-ChildItem -Path "$SourcesPath" -Filter "GlobalAssemblyInfo.cs" -File -Recurse -ErrorAction SilentlyContinue -Force |
5 | ForEach-Object {
6 | $FilePath = $_.FullName
7 | $Content = Get-Content $FilePath
8 |
9 | Write-Host ""
10 | Write-Host "Replacing assembly version with build number: $BuildNumber"
11 | $Content = $Content -replace "1.0.0.0", "$BuildNumber"
12 |
13 | Write-Host "Saving GlobalAssemblyInfo.cs to $FilePath"
14 | $Content | Out-File -FilePath $FilePath
15 | }
16 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Views/DiscoveryView.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Windows;
6 | using System.Windows.Controls;
7 |
8 | namespace PDS.WITSMLstudio.Desktop.Core.Views
9 | {
10 | ///
11 | /// Interaction logic for DiscoveryView.xaml
12 | ///
13 | public partial class DiscoveryView
14 | {
15 | ///
16 | /// Initializes a new instance of the class.
17 | ///
18 | public DiscoveryView()
19 | {
20 | InitializeComponent();
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.DataReplay/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 300
7 |
8 |
9 | Data Producer
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.DataReplay/Views/DataReplayView.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.ObjectInspector/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 400
7 |
8 |
9 | Object Inspector
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/Desktop.UnitTest/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.WitsmlBrowser/Views/Request/TemplatesView.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.DataReplay/Views/Simulation/SimulationView.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.WitsmlBrowser/Views/Request/RequestView.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/src/Desktop/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/Desktop.IntegrationTest/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.DataReplay/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/Views/DataLoadView.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Windows;
7 | using System.Windows.Controls;
8 | using System.Windows.Data;
9 | using System.Windows.Documents;
10 | using System.Windows.Input;
11 | using System.Windows.Media;
12 | using System.Windows.Media.Imaging;
13 | using System.Windows.Navigation;
14 | using System.Windows.Shapes;
15 |
16 | namespace PDS.WITSMLstudio.Desktop.Plugins.EtpBrowser.Views
17 | {
18 | ///
19 | /// Interaction logic for DataLoadView.xaml
20 | ///
21 | public partial class DataLoadView : UserControl
22 | {
23 | public DataLoadView()
24 | {
25 | InitializeComponent();
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/Views/Streaming12View.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Windows;
7 | using System.Windows.Controls;
8 | using System.Windows.Data;
9 | using System.Windows.Documents;
10 | using System.Windows.Input;
11 | using System.Windows.Media;
12 | using System.Windows.Media.Imaging;
13 | using System.Windows.Navigation;
14 | using System.Windows.Shapes;
15 |
16 | namespace PDS.WITSMLstudio.Desktop.Plugins.EtpBrowser.Views
17 | {
18 | ///
19 | /// Interaction logic for Streaming12View.xaml
20 | ///
21 | public partial class Streaming12View : UserControl
22 | {
23 | public Streaming12View()
24 | {
25 | InitializeComponent();
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.WitsmlBrowser/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 100
7 |
8 |
9 | WITSML Browser
10 |
11 |
12 | False
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Views/PropertyGridView.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.WitsmlBrowser/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Views/SelectChannelsView.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Windows;
7 | using System.Windows.Controls;
8 | using System.Windows.Data;
9 | using System.Windows.Documents;
10 | using System.Windows.Input;
11 | using System.Windows.Media;
12 | using System.Windows.Media.Imaging;
13 | using System.Windows.Navigation;
14 | using System.Windows.Shapes;
15 |
16 | namespace PDS.WITSMLstudio.Desktop.Core.Views
17 | {
18 | ///
19 | /// Interaction logic for SelectChannelsView.xaml
20 | ///
21 | public partial class SelectChannelsView : Window
22 | {
23 | ///
24 | /// Initializes a new instance of the class.
25 | ///
26 | public SelectChannelsView()
27 | {
28 | InitializeComponent();
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Views/RevealablePasswordBoxView.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using System.Windows;
7 | using System.Windows.Controls;
8 | using System.Windows.Data;
9 | using System.Windows.Documents;
10 | using System.Windows.Input;
11 | using System.Windows.Media;
12 | using System.Windows.Media.Imaging;
13 | using System.Windows.Navigation;
14 | using System.Windows.Shapes;
15 |
16 | namespace PDS.WITSMLstudio.Desktop.Core.Views
17 | {
18 | ///
19 | /// Interaction logic for RevealablePasswordBoxView.xaml
20 | ///
21 | public partial class RevealablePasswordBoxView : UserControl
22 | {
23 | ///
24 | /// Initializes a new instance of the class.
25 | ///
26 | public RevealablePasswordBoxView()
27 | {
28 | InitializeComponent();
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 200
7 |
8 |
9 | ETP Browser
10 |
11 |
12 | 10000
13 |
14 |
15 | 1000
16 |
17 |
18 |
--------------------------------------------------------------------------------
/src/Desktop/Samples/ChannelMetadataRecords.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "uuid": "6caf92e8-a55e-40be-8344-3bc549621d94",
4 | "channelId": 1,
5 | "channelUri": "",
6 | "description": "Measured Depth",
7 | "channelName": "MD",
8 | "dataType": "double",
9 | "uom": "m",
10 | "measureClass": "Length",
11 | "source": "MWD",
12 | "indexes": [ ]
13 | },
14 | {
15 | "uuid": "2e92d912-3976-4963-9a1e-1704ae7a5ad9",
16 | "channelId": 2,
17 | "channelUri": "",
18 | "description": "Rate of Penetration",
19 | "channelName": "ROP",
20 | "dataType": "double",
21 | "uom": "m/h",
22 | "measureClass": "Velocity",
23 | "source": "MWD",
24 | "indexes": [ ]
25 | },
26 | {
27 | "uuid": "5c6faa81-3ec6-4b67-ad1c-5ed9a3eeb4f2",
28 | "channelId": 3,
29 | "channelUri": "",
30 | "description": "Hookload",
31 | "channelName": "HKLD",
32 | "dataType": "double",
33 | "uom": "klbf",
34 | "measureClass": "Weight",
35 | "source": "MWD",
36 | "indexes": [ ]
37 | }
38 | ]
39 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/Models/EtpSocketServerHandler.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 | using Energistics;
7 | using Energistics.Common;
8 |
9 | namespace PDS.WITSMLstudio.Desktop.Plugins.EtpBrowser.Models
10 | {
11 | public class EtpSocketServerHandler : EtpSocketServer
12 | {
13 | public delegate void NewSessionCreatedCallback(EtpSession session);
14 |
15 | public event NewSessionCreatedCallback NewSessionCreated;
16 |
17 | public EtpSocketServerHandler(int port, string application, string version) : base(port, application, version)
18 | {
19 | }
20 |
21 | protected override void RegisterAll(EtpBase etpBase)
22 | {
23 | base.RegisterAll(etpBase);
24 |
25 | var session = etpBase as EtpSession;
26 |
27 | if (session != null)
28 | {
29 | NewSessionCreated?.Invoke(session);
30 | }
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/Desktop.IntegrationTest/log4net.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/Desktop/log4net.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/src/Desktop.UnitTest/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/Desktop.IntegrationTest/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.DataReplay/ViewModels/DataReplayViewModel.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using Caliburn.Micro;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Plugins.DataReplay.ViewModels
22 | {
23 | public class DataReplayViewModel : Screen
24 | {
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/Desktop.Core/SaveWindowState/LICENSE.txt:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2015 Microsoft
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
--------------------------------------------------------------------------------
/src/Desktop.Plugins.WitsmlBrowser/Views/MainView.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.WitsmlBrowser/Views/MainView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Windows.Controls;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Plugins.WitsmlBrowser.Views
22 | {
23 | ///
24 | /// Interaction logic for MainView.xaml
25 | ///
26 | public partial class MainView : UserControl
27 | {
28 | public MainView()
29 | {
30 | InitializeComponent();
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/Views/Streaming12View.xaml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.WitsmlBrowser/Views/Result/ResultView.xaml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/src/External/UpdatePackageHintPaths.ps1:
--------------------------------------------------------------------------------
1 | $hintPathPattern = @"
2 | (\d|\w|\s|\.|\\)*packages
3 | "@
4 |
5 | $importPathPattern = @"
6 | `$(SolutionDir)\packages"
27 | $content = $content -replace $importPathPattern, "
24 | /// Interaction logic for JsonMessageView.xaml
25 | ///
26 | public partial class JsonMessageView : UserControl
27 | {
28 | public JsonMessageView()
29 | {
30 | InitializeComponent();
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.DataReplay/Views/Simulation/ChannelsView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Windows.Controls;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Plugins.DataReplay.Views.Simulation
22 | {
23 | ///
24 | /// Interaction logic for DataChannelsView.xaml
25 | ///
26 | public partial class ChannelsView : UserControl
27 | {
28 | public ChannelsView()
29 | {
30 | InitializeComponent();
31 | }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/src/Desktop/App.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Windows;
20 | using Microsoft.Windows.Themes;
21 |
22 | namespace PDS.WITSMLstudio.Desktop
23 | {
24 | ///
25 | /// Interaction logic for App.xaml
26 | ///
27 | public partial class App : Application
28 | {
29 | // Static reference to PresentationFramework.Aero to force assembly to be loaded.
30 | public static readonly FlowDirection FlowDirection = PlatformCulture.FlowDirection;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/Desktop.IntegrationTest/AssemblyInitializer.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.IO;
20 | using log4net.Config;
21 | using Microsoft.VisualStudio.TestTools.UnitTesting;
22 |
23 | namespace PDS.WITSMLstudio.Desktop
24 | {
25 | [TestClass]
26 | public class AssemblyInitializer
27 | {
28 | [AssemblyInitialize]
29 | public static void Initialize(TestContext context)
30 | {
31 | XmlConfigurator.Configure(new FileInfo("log4net.config"));
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/src/External/GlobalAssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Reflection;
20 |
21 | [assembly: AssemblyProduct("PDS WITSMLstudio Desktop")]
22 | [assembly: AssemblyCopyright("Copyright © 2018")]
23 | [assembly: AssemblyCompany("PDS Americas LLC")]
24 | [assembly: AssemblyConfiguration("")]
25 | [assembly: AssemblyTrademark("")]
26 | [assembly: AssemblyCulture("")]
27 |
28 | [assembly: AssemblyVersion("1.0.0.0")]
29 | [assembly: AssemblyFileVersion("1.0.0.0")]
30 | [assembly: AssemblyInformationalVersion("1.0.0.0")]
31 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Views/AboutView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Windows;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Core.Views
22 | {
23 | ///
24 | /// Interaction logic for AboutView.xaml
25 | ///
26 | public partial class AboutView : Window
27 | {
28 | ///
29 | /// Initializes a new instance of the class.
30 | ///
31 | public AboutView()
32 | {
33 | InitializeComponent();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Views/ConnectionView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Windows;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Core.Views
22 | {
23 | ///
24 | /// Interaction logic for EditConnectionView.xaml
25 | ///
26 | public partial class ConnectionView : Window
27 | {
28 | ///
29 | /// Initializes a new instance of the class.
30 | ///
31 | public ConnectionView()
32 | {
33 | InitializeComponent();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Views/DataGridView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Windows.Controls;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Core.Views
22 | {
23 | ///
24 | /// Interaction logic for DataGridView.xaml
25 | ///
26 | public partial class DataGridView : UserControl
27 | {
28 | ///
29 | /// Initializes a new instance of the class.
30 | ///
31 | public DataGridView()
32 | {
33 | InitializeComponent();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/Views/MainView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Windows.Controls;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Plugins.EtpBrowser.Views
22 | {
23 | ///
24 | /// Interaction logic for MainView.xaml
25 | ///
26 | public partial class MainView : UserControl
27 | {
28 | ///
29 | /// Initializes a new instance of the class.
30 | ///
31 | public MainView()
32 | {
33 | InitializeComponent();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Views/TextEditorView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Windows.Controls;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Core.Views
22 | {
23 | ///
24 | /// Interaction logic for TextEditorView.xaml
25 | ///
26 | public partial class TextEditorView : UserControl
27 | {
28 | ///
29 | /// Initializes a new instance of the class.
30 | ///
31 | public TextEditorView()
32 | {
33 | InitializeComponent();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Views/WitsmlTreeView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Windows.Controls;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Core.Views
22 | {
23 | ///
24 | /// Interaction logic for WitsmlTreeView.xaml
25 | ///
26 | public partial class WitsmlTreeView : UserControl
27 | {
28 | ///
29 | /// Initializes a new instance of the class.
30 | ///
31 | public WitsmlTreeView()
32 | {
33 | InitializeComponent();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.ObjectInspector/Views/FamilyVersionObjectsView.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Views/PropertyGridView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Windows.Controls;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Core.Views
22 | {
23 | ///
24 | /// Interaction logic for PropertyGridView.xaml
25 | ///
26 | public partial class PropertyGridView : UserControl
27 | {
28 | ///
29 | /// Initializes a new instance of the class.
30 | ///
31 | public PropertyGridView()
32 | {
33 | InitializeComponent();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/Views/SettingsView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Windows.Controls;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Plugins.EtpBrowser.Views
22 | {
23 | ///
24 | /// Interaction logic for SettingsView.xaml
25 | ///
26 | public partial class SettingsView : UserControl
27 | {
28 | ///
29 | /// Initializes a new instance of the class.
30 | ///
31 | public SettingsView()
32 | {
33 | InitializeComponent();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/Views/SubscribeView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Windows.Controls;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Plugins.EtpBrowser.Views
22 | {
23 | ///
24 | /// Interaction logic for StreamingView.xaml
25 | ///
26 | public partial class SubscribeView : UserControl
27 | {
28 | ///
29 | /// Initializes a new instance of the class.
30 | ///
31 | public SubscribeView()
32 | {
33 | InitializeComponent();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Views/ConnectionPickerView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Windows.Controls;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Core.Views
22 | {
23 | ///
24 | /// Interaction logic for ConnectionPickerView.xaml
25 | ///
26 | public partial class ConnectionPickerView : UserControl
27 | {
28 | ///
29 | /// Initializes a new instance of the class.
30 | ///
31 | public ConnectionPickerView()
32 | {
33 | InitializeComponent();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/Views/Hierarchy11View.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Windows.Controls;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Plugins.EtpBrowser.Views
22 | {
23 | ///
24 | /// Interaction logic for Hierarchy11View.xaml
25 | ///
26 | public partial class Hierarchy11View : UserControl
27 | {
28 | ///
29 | /// Initializes a new instance of the class.
30 | ///
31 | public Hierarchy11View()
32 | {
33 | InitializeComponent();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/Views/Hierarchy12View.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Windows.Controls;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Plugins.EtpBrowser.Views
22 | {
23 | ///
24 | /// Interaction logic for Hierarchy12View.xaml
25 | ///
26 | public partial class Hierarchy12View : UserControl
27 | {
28 | ///
29 | /// Initializes a new instance of the class.
30 | ///
31 | public Hierarchy12View()
32 | {
33 | InitializeComponent();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/Views/Streaming11View.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Windows.Controls;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Plugins.EtpBrowser.Views
22 | {
23 | ///
24 | /// Interaction logic for StreamingView.xaml
25 | ///
26 | public partial class Streaming11View : UserControl
27 | {
28 | ///
29 | /// Initializes a new instance of the class.
30 | ///
31 | public Streaming11View()
32 | {
33 | InitializeComponent();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/Views/GrowingObject11View.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Windows.Controls;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Plugins.EtpBrowser.Views
22 | {
23 | ///
24 | /// Interaction logic for GrowingObjectView.xaml
25 | ///
26 | public partial class GrowingObject11View : UserControl
27 | {
28 | ///
29 | /// Initializes a new instance of the class.
30 | ///
31 | public GrowingObject11View()
32 | {
33 | InitializeComponent();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/Views/StoreNotificationView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Windows.Controls;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Plugins.EtpBrowser.Views
22 | {
23 | ///
24 | /// Interaction logic for StoreNotificationView.xaml
25 | ///
26 | public partial class StoreNotificationView : UserControl
27 | {
28 | ///
29 | /// Initializes a new instance of the class.
30 | ///
31 | public StoreNotificationView()
32 | {
33 | InitializeComponent();
34 | }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Desktop.UnitTest/ShellHarness.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Collections.Generic;
21 | using System.Linq;
22 | using System.Text;
23 | using System.Threading.Tasks;
24 | using Caliburn.Micro;
25 | using PDS.WITSMLstudio.Desktop.ViewModels;
26 |
27 | namespace PDS.WITSMLstudio.Desktop
28 | {
29 | public class ShellHarness : ShellViewModel
30 | {
31 | private IShellViewModel _testShell;
32 |
33 | public ShellHarness(IShellViewModel newShell)
34 | {
35 | //this = newShell;
36 | }
37 |
38 | public IObservableCollection GetItems()
39 | {
40 |
41 | return this.Items;
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/Desktop.Core/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Connections/IConnectionTest.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Threading.Tasks;
20 | using PDS.WITSMLstudio.Connections;
21 |
22 | namespace PDS.WITSMLstudio.Desktop.Core.Connections
23 | {
24 | ///
25 | /// Interface for a connection test against a Connection instance.
26 | ///
27 | public interface IConnectionTest
28 | {
29 | ///
30 | /// Determines whether this Connection instance can connect to the specified connection Uri.
31 | ///
32 | /// The connection instance being tested.
33 | /// The boolean result from the asynchronous operation.
34 | Task CanConnect(Connection connection);
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Desktop.Core/ViewModels/IPluginViewModel.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.ComponentModel.Composition;
20 | using Caliburn.Micro;
21 |
22 | namespace PDS.WITSMLstudio.Desktop.Core.ViewModels
23 | {
24 | ///
25 | /// Provides access to the main user interface for a plug-in
26 | ///
27 | [InheritedExport]
28 | public interface IPluginViewModel : IScreen
29 | {
30 | ///
31 | /// Gets the display order of the plug-in when loaded by the main application shell
32 | ///
33 | int DisplayOrder { get; }
34 |
35 | ///
36 | /// Gets the sub title to display in the main application title bar.
37 | ///
38 | string SubTitle { get; }
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/Views/MainView.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Data
7 |
8 |
9 | ConnectionData.json
10 |
11 |
12 | ConnectionList.json
13 |
14 |
15 | https://witsml.pds.technology/docs/user-guide/
16 |
17 |
18 | WindowSettings.json
19 |
20 |
21 | 10000
22 |
23 |
24 | PDS WITSMLstudio Desktop
25 |
26 |
27 | PDS WITSMLstudio
28 |
29 |
30 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Adapters/GraphScopes.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.ComponentModel;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Core.Adapters
22 | {
23 | ///
24 | /// An enumeration of graph scopes.
25 | ///
26 | public enum GraphScopes
27 | {
28 | /// Self
29 | [Description("Self")]
30 | Self,
31 | /// Sources
32 | [Description("Sources")]
33 | Sources,
34 | /// Targets
35 | [Description("Targets")]
36 | Targets,
37 | /// SourcesOrSelf
38 | [Description("Sources or Self")]
39 | SourcesOrSelf,
40 | /// TargetsOrSelf
41 | [Description("Targets or Self")]
42 | TargetsOrSelf,
43 | }
44 | }
--------------------------------------------------------------------------------
/src/Desktop.Core/Runtime/DesktopRuntimeService.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using PDS.WITSMLstudio.Framework;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Core.Runtime
22 | {
23 | ///
24 | /// Provides an implementation of that can be used from within desktop applications.
25 | ///
26 | ///
27 | public class DesktopRuntimeService : RuntimeServiceBase
28 | {
29 | ///
30 | /// Initializes a new instance of the class.
31 | ///
32 | /// The container.
33 | public DesktopRuntimeService(IContainer container)
34 | : base(container)
35 | {
36 | }
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.DataReplay/Views/MainView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Collections.Generic;
21 | using System.Linq;
22 | using System.Text;
23 | using System.Threading.Tasks;
24 | using System.Windows;
25 | using System.Windows.Controls;
26 | using System.Windows.Data;
27 | using System.Windows.Documents;
28 | using System.Windows.Input;
29 | using System.Windows.Media;
30 | using System.Windows.Media.Imaging;
31 | using System.Windows.Navigation;
32 | using System.Windows.Shapes;
33 |
34 | namespace PDS.WITSMLstudio.Desktop.Plugins.DataReplay.Views
35 | {
36 | ///
37 | /// Interaction logic for MainView.xaml
38 | ///
39 | public partial class MainView : UserControl
40 | {
41 | public MainView()
42 | {
43 | InitializeComponent();
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/Views/StoreView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Collections.Generic;
21 | using System.Linq;
22 | using System.Text;
23 | using System.Threading.Tasks;
24 | using System.Windows;
25 | using System.Windows.Controls;
26 | using System.Windows.Data;
27 | using System.Windows.Documents;
28 | using System.Windows.Input;
29 | using System.Windows.Media;
30 | using System.Windows.Media.Imaging;
31 | using System.Windows.Navigation;
32 | using System.Windows.Shapes;
33 |
34 | namespace PDS.WITSMLstudio.Desktop.Plugins.EtpBrowser.Views
35 | {
36 | ///
37 | /// Interaction logic for StoreView.xaml
38 | ///
39 | public partial class StoreView : UserControl
40 | {
41 | public StoreView()
42 | {
43 | InitializeComponent();
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.ObjectInspector/Views/MainView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Collections.Generic;
21 | using System.Linq;
22 | using System.Text;
23 | using System.Threading.Tasks;
24 | using System.Windows;
25 | using System.Windows.Controls;
26 | using System.Windows.Data;
27 | using System.Windows.Documents;
28 | using System.Windows.Input;
29 | using System.Windows.Media;
30 | using System.Windows.Media.Imaging;
31 | using System.Windows.Navigation;
32 | using System.Windows.Shapes;
33 |
34 | namespace PDS.WITSMLstudio.Desktop.Plugins.ObjectInspector.Views
35 | {
36 | ///
37 | /// Interaction logic for MainView.xaml
38 | ///
39 | public partial class MainView : UserControl
40 | {
41 | public MainView()
42 | {
43 | InitializeComponent();
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.DataReplay/Views/DataReplayView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Collections.Generic;
21 | using System.Linq;
22 | using System.Text;
23 | using System.Threading.Tasks;
24 | using System.Windows;
25 | using System.Windows.Controls;
26 | using System.Windows.Data;
27 | using System.Windows.Documents;
28 | using System.Windows.Input;
29 | using System.Windows.Media;
30 | using System.Windows.Media.Imaging;
31 | using System.Windows.Navigation;
32 | using System.Windows.Shapes;
33 |
34 | namespace PDS.WITSMLstudio.Desktop.Plugins.DataReplay.Views
35 | {
36 | ///
37 | /// Interaction logic for DataReplayView.xaml
38 | ///
39 | public partial class DataReplayView : UserControl
40 | {
41 | public DataReplayView()
42 | {
43 | InitializeComponent();
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.WitsmlBrowser/Views/Request/QueryView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Collections.Generic;
21 | using System.Linq;
22 | using System.Text;
23 | using System.Threading.Tasks;
24 | using System.Windows;
25 | using System.Windows.Controls;
26 | using System.Windows.Data;
27 | using System.Windows.Documents;
28 | using System.Windows.Input;
29 | using System.Windows.Media;
30 | using System.Windows.Media.Imaging;
31 | using System.Windows.Navigation;
32 | using System.Windows.Shapes;
33 |
34 | namespace PDS.WITSMLstudio.Desktop.Plugins.WitsmlBrowser.Views.Request
35 | {
36 | ///
37 | /// Interaction logic for QueryView.xaml
38 | ///
39 | public partial class QueryView : UserControl
40 | {
41 | public QueryView()
42 | {
43 | InitializeComponent();
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.WitsmlBrowser/Views/Result/ResultView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Collections.Generic;
21 | using System.Linq;
22 | using System.Text;
23 | using System.Threading.Tasks;
24 | using System.Windows;
25 | using System.Windows.Controls;
26 | using System.Windows.Data;
27 | using System.Windows.Documents;
28 | using System.Windows.Input;
29 | using System.Windows.Media;
30 | using System.Windows.Media.Imaging;
31 | using System.Windows.Navigation;
32 | using System.Windows.Shapes;
33 |
34 | namespace PDS.WITSMLstudio.Desktop.Plugins.WitsmlBrowser.Views.Result
35 | {
36 | ///
37 | /// Interaction logic for ResultView.xaml
38 | ///
39 | public partial class ResultView : UserControl
40 | {
41 | public ResultView()
42 | {
43 | InitializeComponent();
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.DataReplay/Views/Simulation/GeneralView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Collections.Generic;
21 | using System.Linq;
22 | using System.Text;
23 | using System.Threading.Tasks;
24 | using System.Windows;
25 | using System.Windows.Controls;
26 | using System.Windows.Data;
27 | using System.Windows.Documents;
28 | using System.Windows.Input;
29 | using System.Windows.Media;
30 | using System.Windows.Media.Imaging;
31 | using System.Windows.Navigation;
32 | using System.Windows.Shapes;
33 |
34 | namespace PDS.WITSMLstudio.Desktop.Plugins.DataReplay.Views.Simulation
35 | {
36 | ///
37 | /// Interaction logic for GeneralView.xaml
38 | ///
39 | public partial class GeneralView : UserControl
40 | {
41 | public GeneralView()
42 | {
43 | InitializeComponent();
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.ObjectInspector/Views/DataObjectView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Collections.Generic;
21 | using System.Linq;
22 | using System.Text;
23 | using System.Threading.Tasks;
24 | using System.Windows;
25 | using System.Windows.Controls;
26 | using System.Windows.Data;
27 | using System.Windows.Documents;
28 | using System.Windows.Input;
29 | using System.Windows.Media;
30 | using System.Windows.Media.Imaging;
31 | using System.Windows.Navigation;
32 | using System.Windows.Shapes;
33 |
34 | namespace PDS.WITSMLstudio.Desktop.Plugins.ObjectInspector.Views
35 | {
36 | ///
37 | /// Interaction logic for DataObjectView.xaml
38 | ///
39 | public partial class DataObjectView : UserControl
40 | {
41 | public DataObjectView()
42 | {
43 | InitializeComponent();
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.WitsmlBrowser/Views/Request/RequestView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Collections.Generic;
21 | using System.Linq;
22 | using System.Text;
23 | using System.Threading.Tasks;
24 | using System.Windows;
25 | using System.Windows.Controls;
26 | using System.Windows.Data;
27 | using System.Windows.Documents;
28 | using System.Windows.Input;
29 | using System.Windows.Media;
30 | using System.Windows.Media.Imaging;
31 | using System.Windows.Navigation;
32 | using System.Windows.Shapes;
33 |
34 | namespace PDS.WITSMLstudio.Desktop.Plugins.WitsmlBrowser.Views.Request
35 | {
36 | ///
37 | /// Interaction logic for RequestView.xaml
38 | ///
39 | public partial class RequestView : UserControl
40 | {
41 | public RequestView()
42 | {
43 | InitializeComponent();
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Desktop.UnitTest/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Reflection;
20 | using System.Runtime.InteropServices;
21 |
22 | // General Information about an assembly is controlled through the following
23 | // set of attributes. Change these attribute values to modify the information
24 | // associated with an assembly.
25 | [assembly: AssemblyTitle("PDS.WITSMLstudio.Desktop.UnitTest")]
26 | [assembly: AssemblyDescription("PDS WITSMLstudio Desktop Unit Tests")]
27 |
28 | // Setting ComVisible to false makes the types in this assembly not visible
29 | // to COM components. If you need to access a type in this assembly from
30 | // COM, set the ComVisible attribute to true on that type.
31 | [assembly: ComVisible(false)]
32 |
33 | // The following GUID is for the ID of the typelib if this project is exposed to COM
34 | [assembly: Guid("f3143ad1-3139-4449-b07c-68d834e4ee36")]
35 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.WitsmlBrowser/Views/Request/SettingsView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Collections.Generic;
21 | using System.Linq;
22 | using System.Text;
23 | using System.Threading.Tasks;
24 | using System.Windows;
25 | using System.Windows.Controls;
26 | using System.Windows.Data;
27 | using System.Windows.Documents;
28 | using System.Windows.Input;
29 | using System.Windows.Media;
30 | using System.Windows.Media.Imaging;
31 | using System.Windows.Navigation;
32 | using System.Windows.Shapes;
33 |
34 | namespace PDS.WITSMLstudio.Desktop.Plugins.WitsmlBrowser.Views.Request
35 | {
36 | ///
37 | /// Interaction logic for SettingsView.xaml
38 | ///
39 | public partial class SettingsView : UserControl
40 | {
41 | public SettingsView()
42 | {
43 | InitializeComponent();
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.WitsmlBrowser/Views/Request/TreeViewView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Collections.Generic;
21 | using System.Linq;
22 | using System.Text;
23 | using System.Threading.Tasks;
24 | using System.Windows;
25 | using System.Windows.Controls;
26 | using System.Windows.Data;
27 | using System.Windows.Documents;
28 | using System.Windows.Input;
29 | using System.Windows.Media;
30 | using System.Windows.Media.Imaging;
31 | using System.Windows.Navigation;
32 | using System.Windows.Shapes;
33 |
34 | namespace PDS.WITSMLstudio.Desktop.Plugins.WitsmlBrowser.Views.Request
35 | {
36 | ///
37 | /// Interaction logic for TreeViewView.xaml
38 | ///
39 | public partial class TreeViewView : UserControl
40 | {
41 | public TreeViewView()
42 | {
43 | InitializeComponent();
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.DataReplay/Views/Simulation/SimulationView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Collections.Generic;
21 | using System.Linq;
22 | using System.Text;
23 | using System.Threading.Tasks;
24 | using System.Windows;
25 | using System.Windows.Controls;
26 | using System.Windows.Data;
27 | using System.Windows.Documents;
28 | using System.Windows.Input;
29 | using System.Windows.Media;
30 | using System.Windows.Media.Imaging;
31 | using System.Windows.Navigation;
32 | using System.Windows.Shapes;
33 |
34 | namespace PDS.WITSMLstudio.Desktop.Plugins.DataReplay.Views.Simulation
35 | {
36 | ///
37 | /// Interaction logic for SimulationView.xaml
38 | ///
39 | public partial class SimulationView : UserControl
40 | {
41 | public SimulationView()
42 | {
43 | InitializeComponent();
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.ObjectInspector/Views/FamilyVersionView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Collections.Generic;
21 | using System.Linq;
22 | using System.Text;
23 | using System.Threading.Tasks;
24 | using System.Windows;
25 | using System.Windows.Controls;
26 | using System.Windows.Data;
27 | using System.Windows.Documents;
28 | using System.Windows.Input;
29 | using System.Windows.Media;
30 | using System.Windows.Media.Imaging;
31 | using System.Windows.Navigation;
32 | using System.Windows.Shapes;
33 |
34 | namespace PDS.WITSMLstudio.Desktop.Plugins.ObjectInspector.Views
35 | {
36 | ///
37 | /// Interaction logic for FamilyVersionView.xaml
38 | ///
39 | public partial class FamilyVersionView : UserControl
40 | {
41 | public FamilyVersionView()
42 | {
43 | InitializeComponent();
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.WitsmlBrowser/Views/Request/TemplatesView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Collections.Generic;
21 | using System.Linq;
22 | using System.Text;
23 | using System.Threading.Tasks;
24 | using System.Windows;
25 | using System.Windows.Controls;
26 | using System.Windows.Data;
27 | using System.Windows.Documents;
28 | using System.Windows.Input;
29 | using System.Windows.Media;
30 | using System.Windows.Media.Imaging;
31 | using System.Windows.Navigation;
32 | using System.Windows.Shapes;
33 |
34 | namespace PDS.WITSMLstudio.Desktop.Plugins.WitsmlBrowser.Views.Request
35 | {
36 | ///
37 | /// Interaction logic for TemplatesView.xaml
38 | ///
39 | public partial class TemplatesView : UserControl
40 | {
41 | public TemplatesView()
42 | {
43 | InitializeComponent();
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.ObjectInspector/Views/DataPropertiesView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Collections.Generic;
21 | using System.Linq;
22 | using System.Text;
23 | using System.Threading.Tasks;
24 | using System.Windows;
25 | using System.Windows.Controls;
26 | using System.Windows.Data;
27 | using System.Windows.Documents;
28 | using System.Windows.Input;
29 | using System.Windows.Media;
30 | using System.Windows.Media.Imaging;
31 | using System.Windows.Navigation;
32 | using System.Windows.Shapes;
33 |
34 | namespace PDS.WITSMLstudio.Desktop.Plugins.ObjectInspector.Views
35 | {
36 | ///
37 | /// Interaction logic for DataPropertiesView.xaml
38 | ///
39 | public partial class DataPropertiesView : UserControl
40 | {
41 | public DataPropertiesView()
42 | {
43 | InitializeComponent();
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.WitsmlBrowser/ViewModels/IConnectionAware.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Collections.Generic;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Plugins.WitsmlBrowser.ViewModels
22 | {
23 | ///
24 | /// Defines methods that can be used to receive notifications of connection/version changes.
25 | ///
26 | public interface IConnectionAware
27 | {
28 | ///
29 | /// Called when the selected WITSML version has changed.
30 | ///
31 | /// The WITSML version.
32 | void OnWitsmlVersionChanged(string version);
33 |
34 | ///
35 | /// Called when data objects changed.
36 | ///
37 | /// The data objects.
38 | void OnDataObjectsChanged(IEnumerable dataObjects);
39 | }
40 | }
41 |
--------------------------------------------------------------------------------
/src/Desktop.IntegrationTest/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Reflection;
20 | using System.Runtime.InteropServices;
21 |
22 | // General Information about an assembly is controlled through the following
23 | // set of attributes. Change these attribute values to modify the information
24 | // associated with an assembly.
25 | [assembly: AssemblyTitle("PDS.WITSMLstudio.Desktop.IntegrationTest")]
26 | [assembly: AssemblyDescription("PDS WITSMLstudio Desktop Integration Tests")]
27 |
28 | // Setting ComVisible to false makes the types in this assembly not visible
29 | // to COM components. If you need to access a type in this assembly from
30 | // COM, set the ComVisible attribute to true on that type.
31 | [assembly: ComVisible(false)]
32 |
33 | // The following GUID is for the ID of the typelib if this project is exposed to COM
34 | [assembly: Guid("84c06b18-c1d6-4ad1-aa4d-7b08872b8d8f")]
35 |
--------------------------------------------------------------------------------
/src/Desktop.Core/SaveWindowState/WindowSettings.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Runtime.Serialization;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Core.SaveWindowState
22 | {
23 | ///
24 | /// Defines properties that can be used to persist the current application environment settings.
25 | ///
26 | [DataContract]
27 | public class WindowSettings
28 | {
29 | ///
30 | /// Gets or sets the window placement XML.
31 | ///
32 | /// The window placement XML.
33 | [DataMember]
34 | public string WindowPlacement { get; set; }
35 |
36 | ///
37 | /// Gets or sets the index of the current plugin.
38 | ///
39 | /// The index of the current plugin.
40 | [DataMember]
41 | public int CurrentPluginIndex { get; set; }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.ObjectInspector/Views/FamilyVersionView.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.ObjectInspector/Views/FamilyVersionObjectsView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Collections.Generic;
21 | using System.Linq;
22 | using System.Text;
23 | using System.Threading.Tasks;
24 | using System.Windows;
25 | using System.Windows.Controls;
26 | using System.Windows.Data;
27 | using System.Windows.Documents;
28 | using System.Windows.Input;
29 | using System.Windows.Media;
30 | using System.Windows.Media.Imaging;
31 | using System.Windows.Navigation;
32 | using System.Windows.Shapes;
33 |
34 | namespace PDS.WITSMLstudio.Desktop.Plugins.ObjectInspector.Views
35 | {
36 | ///
37 | /// Interaction logic for FamilyVersionObjectsView.xaml
38 | ///
39 | public partial class FamilyVersionObjectsView : UserControl
40 | {
41 | public FamilyVersionObjectsView()
42 | {
43 | InitializeComponent();
44 | }
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Views/DataGridView.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/src/Desktop/Plugins/Witsml.Studio.Plugins.ObjectInspector.dll.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | 0
12 |
13 |
14 | Object Inspector
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Providers/ISoapMessageHandler.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.ComponentModel.Composition;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Core.Providers
22 | {
23 | ///
24 | /// Defines methods that can be used to process SOAP messages.
25 | ///
26 | [InheritedExport]
27 | public interface ISoapMessageHandler
28 | {
29 | ///
30 | /// Logs the SOAP request message.
31 | ///
32 | /// The SOAP action.
33 | /// The SOAP message.
34 | void LogRequest(string action, string message);
35 |
36 | ///
37 | /// Logs the SOAP response message.
38 | ///
39 | /// The SOAP action.
40 | /// The SOAP message.
41 | void LogResponse(string action, string message);
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.DataReplay/ViewModels/Proxies/WitsmlProxyViewModel.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Threading;
20 | using System.Threading.Tasks;
21 | using Energistics.DataAccess;
22 | using PDS.WITSMLstudio.Connections;
23 | using PDS.WITSMLstudio.Desktop.Core.ViewModels;
24 |
25 | namespace PDS.WITSMLstudio.Desktop.Plugins.DataReplay.ViewModels.Proxies
26 | {
27 | public abstract class WitsmlProxyViewModel
28 | {
29 | public WitsmlProxyViewModel(Connection connection, WMLSVersion version)
30 | {
31 | Connection = connection.CreateProxy(version);
32 | Version = version;
33 | }
34 |
35 | public WITSMLWebServiceConnection Connection { get; private set; }
36 |
37 | public WMLSVersion Version { get; private set; }
38 |
39 | public abstract Task Start(Models.Simulation model, CancellationToken token, TextEditorViewModel messages, int interval = 5000, double? increment = null);
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.ObjectInspector/Views/MainView.xaml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
--------------------------------------------------------------------------------
/src/Desktop.Core/ViewModels/ITreeViewContextMenuManipulator.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2019 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 | using System.Windows.Controls;
19 | using PDS.WITSMLstudio.Linq;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Core.ViewModels
22 | {
23 | ///
24 | /// Interface describing a part that is capable of modifying/intercepting/hooking into a treeview context menu OnSelectedItemChanged
25 | ///
26 | public interface ITreeViewContextMenuManipulator
27 | {
28 | ///
29 | /// Allows the implementor to process the data context of the request and the menu itself
30 | ///
31 | /// the menu to manipulate
32 | ///
33 | /// the resource/data context for the menu
34 | void Process(ContextMenu contextMenu, IWitsmlContext context, ResourceViewModel selectedResource);
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/Desktop.IntegrationTest/ViewModels/ConnectionViewModelTests.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using Microsoft.VisualStudio.TestTools.UnitTesting;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.ViewModels
22 | {
23 | [TestClass]
24 | public class ConnectionViewModelTests : ConnectionViewModelTestBase
25 | {
26 | [TestMethod]
27 | public void ConnectionViewModel_Witsml_Can_Accept_Connection_Changes_With_DataItem()
28 | {
29 | var newName = "xxx";
30 |
31 | // Initialze the Edit Item by setting the DataItem
32 | _witsmlConnectionVm.DataItem = _witsmlConnection;
33 | _witsmlConnectionVm.InitializeEditItem();
34 |
35 | // Make a change to the edit item
36 | _witsmlConnectionVm.EditItem.Name = newName;
37 |
38 | // Accept the changes
39 | _witsmlConnectionVm.AcceptConnectionChanges();
40 |
41 | Assert.AreEqual(newName, _witsmlConnectionVm.DataItem.Name);
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Models/FocusExtension.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio StoreSync, 2018.2
3 | // Copyright 2018 PDS Americas LLC
4 | //-----------------------------------------------------------------------
5 |
6 | using System.Windows;
7 |
8 | namespace PDS.WITSMLstudio.Desktop.Core.Models
9 | {
10 | ///
11 | /// Extension method on to determine if a control is focused
12 | ///
13 | public static class FocusExtension
14 | {
15 | ///
16 | /// IsFocused Property
17 | ///
18 | public static readonly DependencyProperty IsFocusedProperty =
19 | DependencyProperty.RegisterAttached(
20 | "IsFocused", typeof(bool), typeof(FocusExtension),
21 | new UIPropertyMetadata(false, OnIsFocusedPropertyChanged));
22 |
23 | ///
24 | /// Gets the is focused.
25 | ///
26 | /// The object.
27 | /// IsFocusedProperty
28 | public static bool GetIsFocused(DependencyObject obj)
29 | {
30 | return (bool)obj.GetValue(IsFocusedProperty);
31 | }
32 |
33 | ///
34 | /// Sets the is focused.
35 | ///
36 | /// The object.
37 | /// if set to true [value].
38 | public static void SetIsFocused(DependencyObject obj, bool value)
39 | {
40 | obj.SetValue(IsFocusedProperty, value);
41 | }
42 |
43 | private static void OnIsFocusedPropertyChanged(
44 | DependencyObject d,
45 | DependencyPropertyChangedEventArgs e)
46 | {
47 | var uie = (UIElement)d;
48 | if ((bool)e.NewValue)
49 | {
50 | uie.Focus();
51 | }
52 | }
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/src/Desktop.UnitTest/ViewModels/TestViewModel.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using Caliburn.Micro;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Core.ViewModels
22 | {
23 | ///
24 | /// An IPluginViewModel for testing
25 | ///
26 | ///
27 | ///
28 | public sealed class TestViewModel : Screen, IPluginViewModel
29 | {
30 | ///
31 | /// Initializes a new instance of the class.
32 | ///
33 | public TestViewModel()
34 | {
35 | DisplayName = DisplayOrder.ToString();
36 | }
37 |
38 | ///
39 | /// Gets the display order of the plug-in when loaded by the main application shell
40 | ///
41 | public int DisplayOrder => 100;
42 |
43 | ///
44 | /// Gets the sub title to display in the main application title bar.
45 | ///
46 | public string SubTitle => DisplayName;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.ObjectInspector/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Reflection;
20 | using System.Runtime.CompilerServices;
21 | using System.Runtime.InteropServices;
22 |
23 | // General Information about an assembly is controlled through the following
24 | // set of attributes. Change these attribute values to modify the information
25 | // associated with an assembly.
26 | [assembly: AssemblyTitle("PDS.WITSMLstudio.Desktop.Plugins.ObjectInspector")]
27 | [assembly: AssemblyDescription("PDS WITSMLstudio Desktop Object Inspector Plug-in")]
28 |
29 | // Setting ComVisible to false makes the types in this assembly not visible
30 | // to COM components. If you need to access a type in this assembly from
31 | // COM, set the ComVisible attribute to true on that type.
32 | [assembly: ComVisible(false)]
33 |
34 | // The following GUID is for the ID of the typelib if this project is exposed to COM
35 | [assembly: Guid("c17bf64b-b129-4cbc-91df-69f1ebd4365e")]
36 |
37 | [assembly: InternalsVisibleTo("PDS.WITSMLstudio.Desktop.UnitTest")]
38 | [assembly: InternalsVisibleTo("PDS.WITSMLstudio.Desktop.IntegrationTest")]
39 |
--------------------------------------------------------------------------------
/src/Desktop.UnitTest/ViewModels/ASecondViewModel.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using Caliburn.Micro;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Core.ViewModels
22 | {
23 | ///
24 | /// An IPluginViewModel for testing.
25 | ///
26 | ///
27 | ///
28 | public sealed class ASecondViewModel : Screen, IPluginViewModel
29 | {
30 | ///
31 | /// Initializes a new instance of the class.
32 | ///
33 | public ASecondViewModel()
34 | {
35 | DisplayName = DisplayOrder.ToString();
36 | }
37 |
38 | ///
39 | /// Gets the display order of the plug-in when loaded by the main application shell
40 | ///
41 | public int DisplayOrder => 200;
42 |
43 | ///
44 | /// Gets the sub title to display in the main application title bar.
45 | ///
46 | public string SubTitle => DisplayName;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/Desktop.UnitTest/ViewModels/AThirdViewModel.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using Caliburn.Micro;
20 |
21 | namespace PDS.WITSMLstudio.Desktop.Core.ViewModels
22 | {
23 | ///
24 | /// An IPluginViewModel for testing.
25 | ///
26 | ///
27 | ///
28 | public sealed class AThirdViewModel : Screen, IPluginViewModel
29 | {
30 | ///
31 | /// Initializes a new instance of the class.
32 | ///
33 | public AThirdViewModel()
34 | {
35 | DisplayName = DisplayOrder.ToString();
36 | }
37 |
38 | ///
39 | /// Gets the display order of the plug-in when loaded by the main application shell
40 | ///
41 | public int DisplayOrder => 300;
42 |
43 | ///
44 | /// Gets the sub title to display in the main application title bar.
45 | ///
46 | public string SubTitle => DisplayName;
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Reflection;
20 | using System.Runtime.CompilerServices;
21 | using System.Runtime.InteropServices;
22 |
23 | // General Information about an assembly is controlled through the following
24 | // set of attributes. Change these attribute values to modify the information
25 | // associated with an assembly.
26 | [assembly: AssemblyTitle("PDS.WITSMLstudio.Desktop.Core")]
27 | [assembly: AssemblyDescription("PDS WITSMLstudio Desktop Core Library")]
28 |
29 | // Setting ComVisible to false makes the types in this assembly not visible
30 | // to COM components. If you need to access a type in this assembly from
31 | // COM, set the ComVisible attribute to true on that type.
32 | [assembly: ComVisible(false)]
33 |
34 | // The following GUID is for the ID of the typelib if this project is exposed to COM
35 | [assembly: Guid("5f8f5ac8-680a-4097-9cf2-ab5a97b3bfdf")]
36 |
37 | [assembly: InternalsVisibleTo("PDS.WITSMLstudio.Desktop.UnitTest")]
38 | [assembly: InternalsVisibleTo("PDS.WITSMLstudio.Desktop.IntegrationTest")]
39 | [assembly: InternalsVisibleTo("PDS.WITSMLstudio.StoreLink")]
40 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.DataReplay/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | 300
12 |
13 |
14 | Data Producer
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.ObjectInspector/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | 400
12 |
13 |
14 | Object Inspector
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.DataReplay/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace PDS.WITSMLstudio.Desktop.Plugins.DataReplay.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 |
26 | [global::System.Configuration.ApplicationScopedSettingAttribute()]
27 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
28 | [global::System.Configuration.DefaultSettingValueAttribute("300")]
29 | public int PluginDisplayOrder {
30 | get {
31 | return ((int)(this["PluginDisplayOrder"]));
32 | }
33 | }
34 |
35 | [global::System.Configuration.ApplicationScopedSettingAttribute()]
36 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
37 | [global::System.Configuration.DefaultSettingValueAttribute("Data Producer")]
38 | public string PluginDisplayName {
39 | get {
40 | return ((string)(this["PluginDisplayName"]));
41 | }
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.ObjectInspector/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace PDS.WITSMLstudio.Desktop.Plugins.ObjectInspector.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 |
26 | [global::System.Configuration.ApplicationScopedSettingAttribute()]
27 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
28 | [global::System.Configuration.DefaultSettingValueAttribute("400")]
29 | public int PluginDisplayOrder {
30 | get {
31 | return ((int)(this["PluginDisplayOrder"]));
32 | }
33 | }
34 |
35 | [global::System.Configuration.ApplicationScopedSettingAttribute()]
36 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
37 | [global::System.Configuration.DefaultSettingValueAttribute("Object Inspector")]
38 | public string PluginDisplayName {
39 | get {
40 | return ((string)(this["PluginDisplayName"]));
41 | }
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.DataReplay/Providers/IEtpSimulator.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Collections.Generic;
20 | using Energistics.Etp.Common;
21 | using Energistics.Etp.Common.Datatypes;
22 | using Energistics.Etp.Common.Datatypes.ChannelData;
23 |
24 | namespace PDS.WITSMLstudio.Desktop.Plugins.DataReplay.Providers
25 | {
26 | ///
27 | /// Defines the method that can be used to initialize an ETP simulation.
28 | ///
29 | public interface IEtpSimulator
30 | {
31 | ///
32 | /// Gets the simulation model.
33 | ///
34 | Models.Simulation Model { get; }
35 |
36 | ///
37 | /// Registers the ETP simulator with the specified ETP web server.
38 | ///
39 | /// The web server.
40 | void Register(IEtpWebServer webServer);
41 |
42 | ///
43 | /// Gets the channel metadata.
44 | ///
45 | /// The message header.
46 | /// A collection of channel metadata records.
47 | IList GetChannelMetadata(IMessageHeader header);
48 | }
49 | }
--------------------------------------------------------------------------------
/src/Desktop.Plugins.DataReplay/ViewModels/Proxies/EtpProxyViewModel.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Threading;
21 | using System.Threading.Tasks;
22 | using Energistics.Etp.Common;
23 | using PDS.WITSMLstudio.Framework;
24 | using PDS.WITSMLstudio.Desktop.Core.Runtime;
25 |
26 | namespace PDS.WITSMLstudio.Desktop.Plugins.DataReplay.ViewModels.Proxies
27 | {
28 | public abstract class EtpProxyViewModel
29 | {
30 | public EtpProxyViewModel(IRuntimeService runtime, string dataSchemaVersion, Action log)
31 | {
32 | TaskRunner = new TaskRunner();
33 | Runtime = runtime;
34 | DataSchemaVersion = dataSchemaVersion;
35 | Log = log;
36 | }
37 |
38 | public IRuntimeService Runtime { get; private set; }
39 |
40 | public string DataSchemaVersion { get; private set; }
41 |
42 | public Action Log { get; private set; }
43 |
44 | public Models.Simulation Model { get; protected set; }
45 |
46 | public IEtpClient Client { get; protected set; }
47 |
48 | public TaskRunner TaskRunner { get; protected set; }
49 |
50 | public abstract Task Start(Models.Simulation model, CancellationToken token, int interval = 5000);
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.WitsmlBrowser/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | 100
12 |
13 |
14 | WITSML Browser
15 |
16 |
17 | False
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
--------------------------------------------------------------------------------
/src/Desktop.Core/SaveWindowState/Point.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | //-----------------------------------------------------------------------
20 | // Copyright (c) Microsoft. All rights reserved.
21 | // Licensed under the MIT license. See LICENSE file in the project root for full license information.
22 | // https://github.com/Microsoft/WPF-Samples/tree/master/Windows/SaveWindowState
23 | //-----------------------------------------------------------------------
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace PDS.WITSMLstudio.Desktop.Core.SaveWindowState
29 | {
30 | ///
31 | /// POINT structure required by WINDOWPLACEMENT structure.
32 | ///
33 | [Serializable]
34 | [StructLayout(LayoutKind.Sequential)]
35 | public struct Point
36 | {
37 | /// The x.
38 | public int X;
39 | /// The y.
40 | public int Y;
41 |
42 | ///
43 | /// Initializes a new instance of the struct.
44 | ///
45 | /// The x.
46 | /// The y.
47 | public Point(int x, int y)
48 | {
49 | X = x;
50 | Y = y;
51 | }
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.WitsmlBrowser/Views/Request/TreeViewView.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/src/Desktop.Core/SaveWindowState/WindowPlacement.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | //-----------------------------------------------------------------------
20 | // Copyright (c) Microsoft. All rights reserved.
21 | // Licensed under the MIT license. See LICENSE file in the project root for full license information.
22 | // https://github.com/Microsoft/WPF-Samples/tree/master/Windows/SaveWindowState
23 | //-----------------------------------------------------------------------
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace PDS.WITSMLstudio.Desktop.Core.SaveWindowState
29 | {
30 | ///
31 | /// WINDOWPLACEMENT stores the position, size, and state of a window
32 | ///
33 | [Serializable]
34 | [StructLayout(LayoutKind.Sequential)]
35 | public struct WindowPlacement
36 | {
37 | /// The length.
38 | public int length;
39 | /// The flags.
40 | public int flags;
41 | /// The showCmd.
42 | public int showCmd;
43 | /// The minPosition.
44 | public Point minPosition;
45 | /// The maxPosition.
46 | public Point maxPosition;
47 | /// The normalPosition.
48 | public Rect normalPosition;
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | 200
12 |
13 |
14 | ETP Browser
15 |
16 |
17 | 10000
18 |
19 |
20 | 1000
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/ViewModels/ISessionAware.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.Collections.Generic;
20 | using Caliburn.Micro;
21 | using Energistics.Etp.Common.Datatypes;
22 | using PDS.WITSMLstudio.Connections;
23 |
24 | namespace PDS.WITSMLstudio.Desktop.Plugins.EtpBrowser.ViewModels
25 | {
26 | ///
27 | /// Defines methods that can be implemented to receive status notifications.
28 | ///
29 | public interface ISessionAware : IScreen
30 | {
31 | ///
32 | /// Gets a collection of supported ETP versions.
33 | ///
34 | string[] SupportedVersions { get; }
35 |
36 | ///
37 | /// Called when the selected connection has changed.
38 | ///
39 | /// The connection.
40 | void OnConnectionChanged(Connection connection);
41 |
42 | ///
43 | /// Called when the OpenSession message is recieved.
44 | ///
45 | /// The supported protocols.
46 | void OnSessionOpened(IList supportedProtocols);
47 |
48 | ///
49 | /// Called when the web socket is closed.
50 | ///
51 | void OnSocketClosed();
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Runtime/Win32WindowHandle.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Windows;
21 | using System.Windows.Interop;
22 |
23 | namespace PDS.WITSMLstudio.Desktop.Core.Runtime
24 | {
25 | ///
26 | /// Provides a handle for a WPF that can be used along with Win32 windows and dialogs.
27 | ///
28 | ///
29 | public class Win32WindowHandle : System.Windows.Forms.IWin32Window
30 | {
31 | private IntPtr _handle;
32 |
33 | ///
34 | /// Initializes a new instance of the class.
35 | ///
36 | /// The window.
37 | public Win32WindowHandle(Window window)
38 | {
39 | var helper = new WindowInteropHelper(window);
40 | _handle = helper.Handle;
41 | }
42 |
43 | ///
44 | /// Initializes a new instance of the class.
45 | ///
46 | /// The handle.
47 | public Win32WindowHandle(IntPtr handle)
48 | {
49 | _handle = handle;
50 | }
51 |
52 | ///
53 | /// Gets the handle to the window represented by the implementer.
54 | ///
55 | public IntPtr Handle
56 | {
57 | get { return _handle; }
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.DataReplay/ViewModels/Simulation/GeneralViewModel.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Linq;
21 | using Caliburn.Micro;
22 | using Energistics.DataAccess.WITSML141.ReferenceData;
23 |
24 | namespace PDS.WITSMLstudio.Desktop.Plugins.DataReplay.ViewModels.Simulation
25 | {
26 | public sealed class GeneralViewModel : Screen
27 | {
28 | public GeneralViewModel()
29 | {
30 | DisplayName = "General";
31 | LogIndexTypes = new BindableCollection();
32 | LogIndexTypes.AddRange(Enum.GetValues(typeof(LogIndexType)).OfType());
33 | }
34 |
35 | public Models.Simulation Model
36 | {
37 | get { return ((SimulationViewModel)Parent).Model; }
38 | }
39 |
40 | public BindableCollection LogIndexTypes { get; }
41 |
42 | public void NewWellUid()
43 | {
44 | Model.WellUid = Guid.NewGuid().ToString();
45 | }
46 |
47 | public void NewWellboreUid()
48 | {
49 | Model.WellboreUid = Guid.NewGuid().ToString();
50 | }
51 |
52 | public void NewLogUid()
53 | {
54 | Model.LogUid = Guid.NewGuid().ToString();
55 | }
56 |
57 | public void NewChannelSetUid()
58 | {
59 | Model.ChannelSetUid = Guid.NewGuid().ToString();
60 | }
61 |
62 | public void Save()
63 | {
64 | ((SimulationViewModel)Parent).Save();
65 | }
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.WitsmlBrowser/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace PDS.WITSMLstudio.Desktop.Plugins.WitsmlBrowser.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 |
26 | [global::System.Configuration.ApplicationScopedSettingAttribute()]
27 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
28 | [global::System.Configuration.DefaultSettingValueAttribute("100")]
29 | public int PluginDisplayOrder {
30 | get {
31 | return ((int)(this["PluginDisplayOrder"]));
32 | }
33 | }
34 |
35 | [global::System.Configuration.ApplicationScopedSettingAttribute()]
36 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
37 | [global::System.Configuration.DefaultSettingValueAttribute("WITSML Browser")]
38 | public string PluginDisplayName {
39 | get {
40 | return ((string)(this["PluginDisplayName"]));
41 | }
42 | }
43 |
44 | [global::System.Configuration.ApplicationScopedSettingAttribute()]
45 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
46 | [global::System.Configuration.DefaultSettingValueAttribute("False")]
47 | public bool DisableIndicatorQueries {
48 | get {
49 | return ((bool)(this["DisableIndicatorQueries"]));
50 | }
51 | }
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/ViewModels/Streaming12ViewModel.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using Energistics.Etp.Common;
20 | using PDS.WITSMLstudio.Desktop.Core.Runtime;
21 |
22 | namespace PDS.WITSMLstudio.Desktop.Plugins.EtpBrowser.ViewModels
23 | {
24 | ///
25 | /// Manages the behavior of the Streaming user interface elements.
26 | ///
27 | public sealed class Streaming12ViewModel : StreamingViewModelBase
28 | {
29 | ///
30 | /// Initializes a new instance of the class.
31 | ///
32 | /// The runtime service.
33 | public Streaming12ViewModel(IRuntimeService runtime) : base(runtime)
34 | {
35 | SupportedVersions = new[] { EtpSettings.Etp12SubProtocol };
36 | }
37 |
38 | ///
39 | /// Starts the streaming of channel data.
40 | ///
41 | public void StartStreaming()
42 | {
43 | if (Parent.Session == null)
44 | {
45 | LogSessionClientError();
46 | return;
47 | }
48 |
49 | Parent.EtpExtender.StartStreaming();
50 | }
51 |
52 | ///
53 | /// Stops the streaming of channel data.
54 | ///
55 | public void StopStreaming()
56 | {
57 | if (Parent.Session == null)
58 | {
59 | LogSessionClientError();
60 | return;
61 | }
62 |
63 | Parent.EtpExtender.StopStreaming();
64 | }
65 | }
66 | }
--------------------------------------------------------------------------------
/src/Desktop.Plugins.ObjectInspector/Views/DataObjectView.xaml:
--------------------------------------------------------------------------------
1 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/src/Desktop.Core/SaveWindowState/Rect.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | //-----------------------------------------------------------------------
20 | // Copyright (c) Microsoft. All rights reserved.
21 | // Licensed under the MIT license. See LICENSE file in the project root for full license information.
22 | // https://github.com/Microsoft/WPF-Samples/tree/master/Windows/SaveWindowState
23 | //-----------------------------------------------------------------------
24 |
25 | using System;
26 | using System.Runtime.InteropServices;
27 |
28 | namespace PDS.WITSMLstudio.Desktop.Core.SaveWindowState
29 | {
30 | ///
31 | /// RECT structure required by WINDOWPLACEMENT structure.
32 | ///
33 | [Serializable]
34 | [StructLayout(LayoutKind.Sequential)]
35 | public struct Rect
36 | {
37 | /// The left.
38 | public int Left;
39 | /// The top.
40 | public int Top;
41 | /// The right.
42 | public int Right;
43 | /// The bottom.
44 | public int Bottom;
45 |
46 | ///
47 | /// Initializes a new instance of the struct.
48 | ///
49 | /// The left.
50 | /// The top.
51 | /// The right.
52 | /// The bottom.
53 | public Rect(int left, int top, int right, int bottom)
54 | {
55 | Left = left;
56 | Top = top;
57 | Right = right;
58 | Bottom = bottom;
59 | }
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Views/ShellView.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
46 |
47 |
48 |
49 |
50 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Views/ShellView.xaml.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.ComponentModel;
21 | using System.Windows;
22 | using PDS.WITSMLstudio.Desktop.Core.ViewModels;
23 |
24 | namespace PDS.WITSMLstudio.Desktop.Core.Views
25 | {
26 | ///
27 | /// Interaction logic for ShellView.xaml
28 | ///
29 | public partial class ShellView : Window
30 | {
31 | ///
32 | /// Initializes a new instance of the class.
33 | ///
34 | public ShellView()
35 | {
36 | InitializeComponent();
37 | }
38 |
39 | ///
40 | /// Raises the event.
41 | ///
42 | /// An that contains the event data.
43 | protected override void OnSourceInitialized(EventArgs e)
44 | {
45 | base.OnSourceInitialized(e);
46 |
47 | var shellViewModel = DataContext as IShellViewModel;
48 | shellViewModel?.RestoreWindowPlacement(this);
49 | }
50 |
51 | ///
52 | /// Handles the OnClosing event of the ShellView window.
53 | ///
54 | /// The source of the event.
55 | /// The instance containing the event data.
56 | private void ShellView_OnClosing(object sender, CancelEventArgs e)
57 | {
58 | var shellViewModel = DataContext as IShellViewModel;
59 | shellViewModel?.SaveWindowPlacement(this);
60 | }
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Connections/JwtConnectionTest.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.ComponentModel.Composition;
21 | using System.Threading.Tasks;
22 | using Energistics.Etp;
23 | using PDS.WITSMLstudio.Connections;
24 |
25 | namespace PDS.WITSMLstudio.Desktop.Core.Connections
26 | {
27 | ///
28 | /// Provides a connection test for a JWT Connection instance.
29 | ///
30 | ///
31 | [Export("Jwt", typeof(IConnectionTest))]
32 | public class JwtConnectionTest : IConnectionTest
33 | {
34 | private static readonly log4net.ILog _log = log4net.LogManager.GetLogger(typeof(JwtConnectionTest));
35 |
36 | ///
37 | /// Determines whether this Connection instance can connect to the specified connection Uri.
38 | ///
39 | /// The connection instanace being tested.
40 | /// The boolean result from the asynchronous operation.
41 | public async Task CanConnect(Connection connection)
42 | {
43 | try
44 | {
45 | _log.Debug($"Token connection test for {connection}");
46 |
47 | var client = new JsonClient(connection.Username, connection.Password);
48 | connection.JsonWebToken = client.GetJsonWebToken(connection.Uri);
49 |
50 | _log.Debug("Token connection test passed");
51 | return await Task.FromResult(true);
52 | }
53 | catch (Exception ex)
54 | {
55 | _log.Error("Token connection test failed: {0}", ex);
56 | return await Task.FromResult(false);
57 | }
58 | }
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.WitsmlBrowser/ViewModels/Request/TemplatesViewModel.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using Caliburn.Micro;
20 | using PDS.WITSMLstudio.Desktop.Core.Runtime;
21 |
22 | namespace PDS.WITSMLstudio.Desktop.Plugins.WitsmlBrowser.ViewModels.Request
23 | {
24 | ///
25 | /// Manages the behavior for the Templates view UI elements.
26 | ///
27 | ///
28 | public sealed class TemplatesViewModel : Screen
29 | {
30 | private static readonly log4net.ILog _log = log4net.LogManager.GetLogger(typeof(TemplatesViewModel));
31 |
32 | ///
33 | /// Initializes a new instance of the class.
34 | ///
35 | /// The runtime.
36 | public TemplatesViewModel(IRuntimeService runtime)
37 | {
38 | _log.Debug("Creating view model instance");
39 | Runtime = runtime;
40 | DisplayName = "Templates";
41 | }
42 |
43 | ///
44 | /// Gets the Parent for this view model
45 | ///
46 | public new RequestViewModel Parent
47 | {
48 | get { return (RequestViewModel)base.Parent; }
49 | }
50 |
51 | ///
52 | /// Gets or sets the data model.
53 | ///
54 | ///
55 | /// The WitsmlSettings data model.
56 | ///
57 | public Models.WitsmlSettings Model
58 | {
59 | get { return Parent.Model; }
60 | }
61 |
62 | ///
63 | /// Gets the runtime service.
64 | ///
65 | /// The runtime.
66 | public IRuntimeService Runtime { get; private set; }
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/src/Desktop/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | WebSocket4Net
13 |
14 |
15 |
16 |
17 | False
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | #* text=auto
5 | * text=eol=crlf
6 |
7 | ###############################################################################
8 | # Set default behavior for command prompt diff.
9 | #
10 | # This is need for earlier builds of msysgit that does not have it on by
11 | # default for csharp files.
12 | # Note: This is only used by command line
13 | ###############################################################################
14 | #*.cs diff=csharp
15 |
16 | ###############################################################################
17 | # Set the merge driver for project and solution files
18 | #
19 | # Merging from the command prompt will add diff markers to the files if there
20 | # are conflicts (Merging from VS is not affected by the settings below, in VS
21 | # the diff markers are never inserted). Diff markers may cause the following
22 | # file extensions to fail to load in VS. An alternative would be to treat
23 | # these files as binary and thus will always conflict and require user
24 | # intervention with every merge. To do so, just uncomment the entries below
25 | ###############################################################################
26 | #*.sln merge=binary
27 | #*.csproj merge=binary
28 | #*.vbproj merge=binary
29 | #*.vcxproj merge=binary
30 | #*.vcproj merge=binary
31 | #*.dbproj merge=binary
32 | #*.fsproj merge=binary
33 | #*.lsproj merge=binary
34 | #*.wixproj merge=binary
35 | #*.modelproj merge=binary
36 | #*.sqlproj merge=binary
37 | #*.wwaproj merge=binary
38 |
39 | ###############################################################################
40 | # behavior for image files
41 | #
42 | # image files are treated as binary by default.
43 | ###############################################################################
44 | #*.jpg binary
45 | #*.png binary
46 | #*.gif binary
47 |
48 | ###############################################################################
49 | # diff behavior for common document formats
50 | #
51 | # Convert binary document formats to text before diffing them. This feature
52 | # is only available from the command line. Turn it on by uncommenting the
53 | # entries below.
54 | ###############################################################################
55 | #*.doc diff=astextplain
56 | #*.DOC diff=astextplain
57 | #*.docx diff=astextplain
58 | #*.DOCX diff=astextplain
59 | #*.dot diff=astextplain
60 | #*.DOT diff=astextplain
61 | #*.pdf diff=astextplain
62 | #*.PDF diff=astextplain
63 | #*.rtf diff=astextplain
64 | #*.RTF diff=astextplain
65 |
--------------------------------------------------------------------------------
/src/Desktop.IntegrationTest/Plugins/WitsmlBrowser/SettingsViewModelTests.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using Energistics.DataAccess;
20 | using Microsoft.VisualStudio.TestTools.UnitTesting;
21 | using PDS.WITSMLstudio.Connections;
22 | using PDS.WITSMLstudio.Desktop.Plugins.WitsmlBrowser.ViewModels.Request;
23 | using PDS.WITSMLstudio.Desktop.Core.Runtime;
24 | using PDS.WITSMLstudio.Desktop.Core.ViewModels;
25 |
26 | namespace PDS.WITSMLstudio.Desktop.Plugins.WitsmlBrowser
27 | {
28 | [TestClass]
29 | public class SettingsViewModelTests
30 | {
31 | private static string _validWitsmlUri = "http://localhost/Witsml.Web/WitsmlStore.svc";
32 |
33 | private BootstrapperHarness _bootstrapper;
34 | private TestRuntimeService _runtime;
35 | private SettingsViewModel _settingsViewModel;
36 |
37 | public TestContext TestContext { get; set; }
38 |
39 | [TestInitialize]
40 | public void TestSetUp()
41 | {
42 | _bootstrapper = new BootstrapperHarness();
43 | _runtime = new TestRuntimeService(_bootstrapper.Container);
44 | _runtime.Shell = new ShellViewModel(_runtime);
45 | _settingsViewModel = new SettingsViewModel(_runtime);
46 |
47 | if (TestContext.Properties.Contains("WitsmlStoreUrl"))
48 | _validWitsmlUri = TestContext.Properties["WitsmlStoreUrl"].ToString();
49 | }
50 |
51 | [TestMethod]
52 | public void SettingsViewModel_GetVersions_Can_Get_Supported_Versions()
53 | {
54 | WITSMLWebServiceConnection proxy = new WITSMLWebServiceConnection(_validWitsmlUri, WMLSVersion.WITSML141);
55 | Connection connection = new Connection { Uri = _validWitsmlUri };
56 |
57 | var versions = _settingsViewModel.GetVersions(proxy, connection);
58 | Assert.IsTrue(!string.IsNullOrEmpty(versions));
59 | }
60 | }
61 | }
62 |
--------------------------------------------------------------------------------
/src/Desktop.Core/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | Data
28 |
29 |
30 | ConnectionData.json
31 |
32 |
33 | ConnectionList.json
34 |
35 |
36 | https://witsml.pds.technology/docs/user-guide/
37 |
38 |
39 | WindowSettings.json
40 |
41 |
42 | 10000
43 |
44 |
45 | PDS WITSMLstudio Desktop
46 |
47 |
48 | PDS WITSMLstudio
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/src/Desktop.Core/ViewModels/IShellViewModel.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System.ComponentModel.Composition;
20 | using System.Windows;
21 | using Caliburn.Micro;
22 | using PDS.WITSMLstudio.Desktop.Core.Runtime;
23 |
24 | namespace PDS.WITSMLstudio.Desktop.Core.ViewModels
25 | {
26 | ///
27 | /// Provides access to the main application user interface
28 | ///
29 | [InheritedExport]
30 | public interface IShellViewModel
31 | {
32 | ///
33 | /// Gets the runtime service.
34 | ///
35 | /// The runtime service instance.
36 | IRuntimeService Runtime { get; }
37 |
38 | ///
39 | /// Gets or sets the status bar text for the application shell
40 | ///
41 | string StatusBarText { get; set; }
42 |
43 | ///
44 | /// Gets or sets the breadcrumb path for the application shell
45 | ///
46 | string BreadcrumbText { get; set; }
47 |
48 | ///
49 | /// Sets the breadcrumb text.
50 | ///
51 | /// The values.
52 | void SetBreadcrumb(params object[] values);
53 |
54 | ///
55 | /// Sets the application title.
56 | ///
57 | /// The screen.
58 | void SetApplicationTitle(IScreen screen);
59 |
60 | ///
61 | /// Restores the main application window placement.
62 | ///
63 | /// The main window.
64 | void RestoreWindowPlacement(Window window);
65 |
66 | ///
67 | /// Saves the main application window placement.
68 | ///
69 | /// The main window.
70 | void SaveWindowPlacement(Window window);
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Views/AboutView.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/src/Desktop.Plugins.EtpBrowser/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace PDS.WITSMLstudio.Desktop.Plugins.EtpBrowser.Properties {
12 |
13 |
14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
17 |
18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
19 |
20 | public static Settings Default {
21 | get {
22 | return defaultInstance;
23 | }
24 | }
25 |
26 | [global::System.Configuration.ApplicationScopedSettingAttribute()]
27 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
28 | [global::System.Configuration.DefaultSettingValueAttribute("200")]
29 | public int PluginDisplayOrder {
30 | get {
31 | return ((int)(this["PluginDisplayOrder"]));
32 | }
33 | }
34 |
35 | [global::System.Configuration.ApplicationScopedSettingAttribute()]
36 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
37 | [global::System.Configuration.DefaultSettingValueAttribute("ETP Browser")]
38 | public string PluginDisplayName {
39 | get {
40 | return ((string)(this["PluginDisplayName"]));
41 | }
42 | }
43 |
44 | [global::System.Configuration.ApplicationScopedSettingAttribute()]
45 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
46 | [global::System.Configuration.DefaultSettingValueAttribute("10000")]
47 | public int ChannelStreamingDefaultMaxDataItems {
48 | get {
49 | return ((int)(this["ChannelStreamingDefaultMaxDataItems"]));
50 | }
51 | }
52 |
53 | [global::System.Configuration.ApplicationScopedSettingAttribute()]
54 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
55 | [global::System.Configuration.DefaultSettingValueAttribute("1000")]
56 | public int ChannelStreamingDefaultMaxMessageRate {
57 | get {
58 | return ((int)(this["ChannelStreamingDefaultMaxMessageRate"]));
59 | }
60 | }
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/src/Desktop.Core/Converters/ExpandableListConverter.cs:
--------------------------------------------------------------------------------
1 | //-----------------------------------------------------------------------
2 | // PDS WITSMLstudio Desktop, 2018.1
3 | //
4 | // Copyright 2018 PDS Americas LLC
5 | //
6 | // Licensed under the PDS Open Source WITSML Product License Agreement (the
7 | // "License"); you may not use this file except in compliance with the License.
8 | // You may obtain a copy of the License at
9 | //
10 | // http://www.pds.group/WITSMLstudio/OpenSource/ProductLicenseAgreement
11 | //
12 | // Unless required by applicable law or agreed to in writing, software
13 | // distributed under the License is distributed on an "AS IS" BASIS,
14 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | // See the License for the specific language governing permissions and
16 | // limitations under the License.
17 | //-----------------------------------------------------------------------
18 |
19 | using System;
20 | using System.Collections;
21 | using System.ComponentModel;
22 | using PDS.WITSMLstudio.Desktop.Core.Models;
23 |
24 | namespace PDS.WITSMLstudio.Desktop.Core.Converters
25 | {
26 | ///
27 | /// Provides a type converter to convert list properties.
28 | ///
29 | ///
30 | public class ExpandableListConverter : ExpandableObjectConverter
31 | {
32 | ///
33 | /// Gets a collection of properties for the type of object specified by the value parameter.
34 | ///
35 | /// An that provides a format context.
36 | /// An that specifies the type of object to get the properties for.
37 | /// An array of type that will be used as a filter.
38 | ///
39 | /// A with the properties that are exposed for the component, or null if there are no properties.
40 | ///
41 | public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
42 | {
43 | var list = value as IList;
44 |
45 | if (list == null)
46 | {
47 | return base.GetProperties(context, value, attributes);
48 | }
49 |
50 | var descriptors = new PropertyDescriptorCollection(null);
51 | var enumerator = list.GetEnumerator();
52 | var counter = 0;
53 |
54 | while (enumerator.MoveNext())
55 | {
56 | descriptors.Add(new ListItemPropertyDescriptor(list, counter++));
57 | }
58 |
59 | return descriptors;
60 | }
61 | }
62 | }
63 |
--------------------------------------------------------------------------------