You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 7, 2022. It is now read-only.
1. Change the app's Chinese name.
2. The app now uses the specified font family instead of the system default.
3. The main window is by default maximised (previously restored down).
4. Redesign the date pickers, due to the bad performance of the previous ones. Now they have a calendar view to make it easier to pick a date.
5. Optimise the appearance of the search button and the outer borders of the display area for the data grid.
6. Add hints for the situation when the search access is denied by the data source.
7. Add a busy indicator to show the indication of data loading.
8. Round each day's volumes to the nearest integer, and keep 1 decimal place for total volumes.
9. Enable row selection of the data grid which can provide a better view especially when the row is long, and clearing row selection is also enabled.
10. Sorting is by default disabled for each day's volumes (previously enabled for all columns). Besides, it is allowed to sort data to its initial order other than ascending or descending order.
11. Columns are auto-sized before becoming visible.
12. Display weekday names for columns whose header text is a date.
13. The columns for Saturday's and Sunday's volumes are not displayed now.
14. Optimise the content style of the exported Excel files and automatically enable filters for the columns.
15. Enable printing the data grid. If the column width is too long, you can just return to adjust it and then click the print button again.
16. Solve a potential crash problem during multiple times of searching.
17. Fix a bug that the tooltips of the title bar's buttons for controlling the window state are not displayed in simplified Chinese.
18. Fix a bug that the font colour of the text box for the symbol does not change to red sometimes when the input is in a wrong format (e.g., SH6010065).
19. Fix a bug that the data grid may not be in the initial status (sorting, column width, etc.) after clicking the search button.
20. Fix a bug that the data grid cannot be correctly exported as an Excel file in XLS format.
21. Fix a bug that UI can get temporarily choppy when the search button is clicked.
@@ -35,49 +35,62 @@ class StrikePrice_VolumeDataProcessor
35
35
/// </summary>
36
36
publicDateTimeEndDate{get;set;}
37
37
38
+
publicStrikePriceVolumeDataProcessor()
39
+
{
40
+
_stylePropertyViewModel=newStylePropertyViewModel();// Initialise the view model class for using the defined style properties.
41
+
}// end constructor StrikePriceVolumeDataProcessor
42
+
38
43
/// <summary>
39
44
/// Get data of strike prices and volumes.
40
45
/// </summary>
41
46
/// <returns>
42
-
/// A 2D array of type decimal of size at least (1, 3) containing the data or of size (1, 1) if the date range is too long, or <c>null</c> if the filters are wrong.
43
-
/// The first index of the array represents the index of rows (start from 0).
44
-
/// The second index of the array represents the index of columns (start from 0).
45
-
/// For the second index, Index 0 represents strike prices, while Index 1 represents total volumes. The other indexes represent each day's volumes.
47
+
/// A jagged 2D array of type "decimal?" of size at least (1, 3) containing the data,
48
+
/// or a 2D array of size (1, 1) if access is denied by the specified source providing data of strike prices and volumes,
49
+
/// or a 2D array of size (1, 2) if the date range is too long,
50
+
/// or <c>null</c> if the filters are wrong.
51
+
/// <br /><br />
52
+
/// The first number of the size represents the number of rows.
53
+
/// The second number of the size represents the number of columns.
54
+
/// For columns, Index 0 represents strike prices, while Index 1 represents total volumes. These two columns should not have <c>null</c> data. The other indexes represent each day's volumes.
55
+
/// <br /><br />
56
+
/// Each "row" of the 2D array will have the same number of elements, so it can be seen as a rectangular one.
57
+
/// The 2D array containing the data is sorted by strike prices in descending order.
intdayTotalCount=EndDate.Subtract(StartDate).Days+1;// Calculate the number of days (>= 1) from the start date to the end date.
58
-
decimal?[,]strikePrice_VolumeRows=newdecimal?[strikePrice_TotalVolumeNodes.Count,2+dayTotalCount];// The table of strike prices and volumes should have at least 3 columns (strike price, total volume, and each day's volume).
70
+
decimal?[][]strikePriceVolumeRowCollection=newdecimal?[strikePriceTotalVolumeNodes.Count][];// The table of strike prices and volumes should have at least 3 columns (strike price, total volume, and each day's volume).
71
+
decimal?[]strikePriceVolumeRow;
59
72
intnodeIndex=0;// Represent the index of rows (start from 0).
60
73
intelementIndex;// Represent the index of columns (start from 0).
0 commit comments