-
Notifications
You must be signed in to change notification settings - Fork 161
/
Dashboard.xaml.cs
67 lines (58 loc) · 2.17 KB
/
Dashboard.xaml.cs
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
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
65
66
67
using System;
using System.Linq;
using System.Windows;
using System.Globalization;
using System.Windows.Markup;
using VisualHFT.ViewModel;
using VisualHFT.UserSettings;
namespace VisualHFT
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class Dashboard : Window
{
public Dashboard()
{
FrameworkElement.LanguageProperty.OverrideMetadata(typeof(FrameworkElement),
new FrameworkPropertyMetadata(XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.Name)));
InitializeComponent();
this.DataContext = new VisualHFT.ViewModel.vmDashboard(Helpers.HelperCommon.GLOBAL_DIALOGS);
}
private void ButtonAnalyticsReport_Click(object sender, RoutedEventArgs e)
{
/*
AnalyticReport.AnalyticReport oReport = new AnalyticReport.AnalyticReport();
try
{
oReport.Signals = VisualHFT.Commons.Helpers.HelperCommon.EXECUTEDORDERS.Positions.Where(x => x.PipsPnLInCurrency.HasValue && cboSelectedSymbol.SelectedValue.ToString() == x.Symbol).OrderBy(x => x.CreationTimeStamp).ToList();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString(), "ERRROR", MessageBoxButton.OK, MessageBoxImage.Error);
}
oReport.Show();
*/
}
private void ButtonAppSettings_Click(object sender, RoutedEventArgs e)
{
var vm = new vmUserSettings();
vm.LoadJson(SettingsManager.Instance.GetAllSettings());
var form = new View.UserSettings();
form.DataContext = vm;
form.ShowDialog();
}
private void ButtonMultiVenuePrices_Click(object sender, RoutedEventArgs e)
{
var form = new View.MultiVenuePrices();
form.DataContext = new vmMultiVenuePrices();
form.Show();
}
private void ButtonPluginManagement_Click(object sender, RoutedEventArgs e)
{
var form = new View.PluginManagerWindow();
form.DataContext = new vmPluginManager();
form.Show();
}
}
}