SPARK-266 create synthetic add/remove leg functionality; add
SyntheticSpreadsMangement window; CreateSynthetic add/remove leg functionality
This commit is contained in:
1 parent
a0bfedce82
commit
235e8b397f
40 files changed
+1119
-562
No files matched your search
@@ -68,9 +68,12 @@ namespace mbts.ui
|
||||
public static ImageSource Window { get { return (DrawingImage)_resources["Window"]; } }
|
||||
public static ImageSource ActiveWindow { get { return (DrawingImage)_resources["ActiveWindow"]; } }
|
||||
public static ImageSource Trash { get { return (DrawingImage)_resources["Trash"]; } }
|
||||
public static ImageSource Trash2 { get { return (DrawingImage)_resources["Trash2"]; } }
|
||||
public static ImageSource Crucible { get { return (DrawingImage)_resources["Crucible"]; } }
|
||||
|
||||
public static ImageSource Accounting { get { return (DrawingImage)_resources["Accounting"]; } }
|
||||
public static ImageSource Add { get { return (DrawingImage)_resources["Add"]; } }
|
||||
public static ImageSource AddEncircled { get { return (DrawingImage)_resources["AddEncircled"]; } }
|
||||
public static ImageSource Beaker { get { return (DrawingImage)_resources["Beaker"]; } }
|
||||
public static ImageSource Book { get { return (DrawingImage)_resources["Book"]; } }
|
||||
public static ImageSource CancelOrders { get { return (DrawingImage)_resources["CancelOrders"]; } }
|
||||
|
||||
@@ -2,258 +2,272 @@
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" >
|
||||
<DrawingImage x:Key="FavoritesGold">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Geometry="M1540.22,2082.07L1546.95,2102.78 1568.73,2102.78 1551.11,2115.58 1557.84,2136.29 1540.22,2123.49 1522.6,2136.29 1529.33,2115.58 1511.71,2102.78 1533.49,2102.78 1540.22,2082.07z">
|
||||
<GeometryDrawing.Pen>
|
||||
<Pen Thickness="1" Brush="Black" />
|
||||
</GeometryDrawing.Pen>
|
||||
<GeometryDrawing.Brush>
|
||||
<SolidColorBrush Color="#ffd932" />
|
||||
</GeometryDrawing.Brush>
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="FavoritesWhite">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Geometry="M1540.22,2082.07L1546.95,2102.78 1568.73,2102.78 1551.11,2115.58 1557.84,2136.29 1540.22,2123.49 1522.6,2136.29 1529.33,2115.58 1511.71,2102.78 1533.49,2102.78 1540.22,2082.07z">
|
||||
<GeometryDrawing.Pen>
|
||||
<Pen Thickness="1" Brush="Black" />
|
||||
</GeometryDrawing.Pen>
|
||||
<GeometryDrawing.Brush>
|
||||
<SolidColorBrush Color="#ffd932" />
|
||||
</GeometryDrawing.Brush>
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Window">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Geometry="
|
||||
M 32.868601,3.8869994 C31.026201,3.8869996 29.534,5.3791947 29.534,7.2190399 29.534,9.0588851 31.026201,10.553 32.868601,10.553 34.7085,10.553 36.202,9.0588851 36.202,7.2190399 36.202,5.3791947 34.7085,3.8869996 32.868601,3.8869994z
|
||||
M 42.868601,3.8869994 C41.026201,3.8869996 39.534,5.3791947 39.534,7.2190399 39.534,9.0588851 41.026201,10.553 42.868601,10.553 44.7085,10.553 46.202,9.0588851 46.202,7.2190399 46.202,5.3791947 44.7085,3.8869996 42.868601,3.8869994z
|
||||
M 52.868601,3.8869994 C51.026201,3.8869996 49.534,5.3791947 49.534,7.2190399 49.534,9.0588851 51.026201,10.553 52.868601,10.553 54.7085,10.553 56.202,9.0588851 56.202,7.2190399 56.202,5.3791947 54.7085,3.8869996 52.868601,3.8869994z
|
||||
M5.2010002,14.812L5.2010002,43.573997 56.098,43.573997 56.098,14.812z
|
||||
M0,0L63.999001,0 63.999001,48.792999 0,48.792999z">
|
||||
<GeometryDrawing.Pen>
|
||||
<Pen Thickness="1" Brush="Black" />
|
||||
</GeometryDrawing.Pen>
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="ActiveWindow">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="
|
||||
M 32.868601,3.8869994 C31.026201,3.8869996 29.534,5.3791947 29.534,7.2190399 29.534,9.0588851 31.026201,10.553 32.868601,10.553 34.7085,10.553 36.202,9.0588851 36.202,7.2190399 36.202,5.3791947 34.7085,3.8869996 32.868601,3.8869994z
|
||||
M 42.868601,3.8869994 C41.026201,3.8869996 39.534,5.3791947 39.534,7.2190399 39.534,9.0588851 41.026201,10.553 42.868601,10.553 44.7085,10.553 46.202,9.0588851 46.202,7.2190399 46.202,5.3791947 44.7085,3.8869996 42.868601,3.8869994z
|
||||
M 52.868601,3.8869994 C51.026201,3.8869996 49.534,5.3791947 49.534,7.2190399 49.534,9.0588851 51.026201,10.553 52.868601,10.553 54.7085,10.553 56.202,9.0588851 56.202,7.2190399 56.202,5.3791947 54.7085,3.8869996 52.868601,3.8869994z
|
||||
M5.2010002,14.812L5.2010002,43.573997 56.098,43.573997 56.098,14.812z
|
||||
M0,0L63.999001,0 63.999001,48.792999 0,48.792999z">
|
||||
<GeometryDrawing.Pen>
|
||||
<Pen Thickness="1" Brush="Black" />
|
||||
</GeometryDrawing.Pen>
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Trash">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M33.978,27.679999L33.978,58.098995 41.374,58.098995 41.374,27.679999z M14.841001,27.679999L14.841001,58.098995 22.237,58.098995 22.237,27.679999z M4.0320003,22.430001L52.183002,22.430001 52.183002,63.995998 4.0320003,63.995998z M15.974001,0L40.194999,0 40.194999,7.7200003 56.166999,7.7200003 56.166999,15.995 0,15.995 0,7.7200003 15.974001,7.7200003z">
|
||||
<!--<GeometryDrawing.Pen>
|
||||
<Pen Thickness="1" Brush="Black" />
|
||||
</GeometryDrawing.Pen>-->
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Undo">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="F1M-198.67,4280.19C-197.609,4277.78 -197.035,4275.17 -197.035,4272.46 -197.035,4267.33 -199.032,4262.51 -202.665,4258.88 -206.286,4255.25 -211.107,4253.26 -216.235,4253.26 -221.365,4253.26 -226.186,4255.25 -229.811,4258.88 -232.498,4261.57 -234.282,4264.92 -235.032,4268.56L-225.835,4278.86 -252.503,4278.86 -250.373,4251.38 -241.577,4261.22C-240.214,4258.14 -238.303,4255.3 -235.844,4252.85 -230.61,4247.61 -223.644,4244.72 -216.235,4244.72 -208.822,4244.72 -201.861,4247.61 -196.627,4252.85 -191.39,4258.08 -188.503,4265.05 -188.503,4272.46 -188.503,4275.11 -188.894,4277.71 -189.617,4280.19L-198.67,4280.19z">
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Crucible">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="m 430.4375 225.625 c -1.92352 0.0276 -3.82501 0.82944 -5.1875 2.1875 L 330.0625 323 288 280.9375 c -1.38915 -1.39371 -3.34472 -2.2056 -5.3125 -2.2056 -1.96778 0 -3.92335 0.81189 -5.3125 2.2056 l -23.9375 23.9375 c -1.3844 1.38804 -2.18997 3.33646 -2.18997 5.29687 0 1.96042 0.80557 3.90884 2.18997 5.29688 l 71.3125 71.3125 c 1.38804 1.3844 3.33646 2.18997 5.29687 2.18997 1.96042 0 3.90884 -0.80557 5.29688 -2.18997 l 4.34375 -4.34375 19.59375 -19.59375 100.5 -100.5 c 1.3844 -1.38804 2.18997 -3.33646 2.18997 -5.29688 0 -1.96041 -0.80557 -3.90883 -2.18997 -5.29687 l -23.9375 -23.9375 c -1.41413 -1.40955 -3.40982 -2.21706 -5.40625 -2.1875 z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Cube">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M37.063741,37.405188L33.240929,50.771959 33.345182,50.829412C33.743126,51.061163,34.109612,51.337603,34.437061,51.651468L34.468327,51.682901 44.707291,44.003126 44.641921,43.880777C44.347813,43.295671,44.183001,42.63962,44.183001,41.946699L44.185978,41.833834z M24.591099,31.982382L10.519234,39.24213 10.504738,39.424831C10.479679,39.661278,10.436295,39.892527,10.375957,40.117252L10.337856,40.24584 10.451912,40.307037C10.495525,40.332783,10.538376,40.360497,10.58033,40.390192L26.361021,51.547636 26.448517,51.467699C27.339916,50.69132,28.485014,50.17779,29.750544,50.054647L30.015249,50.035364 34.145618,35.590685 29.192999,32.51112C29.04261,32.417593,28.908485,32.31176,28.79232,32.197899L28.716364,32.117622 28.685419,32.139805C28.132467,32.49791 27.465902,32.706999 26.748449,32.706999 26.030621,32.706999 25.363836,32.49791 24.810755,32.139805z M28.780092,24.040133L28.448082,26.492748 28.685419,26.630915C29.607006,27.227547 30.212999,28.238197 30.212999,29.385599 30.212999,29.614918 30.188759,29.838802 30.142603,30.055031L30.080193,30.287708 30.111809,30.297695C30.268356,30.353413,30.424189,30.42791,30.574446,30.521399L34.837221,33.172018 35.327473,31.457518C35.410911,31.165865,35.525216,30.895145,35.662153,30.652515L35.756067,30.497255 35.710442,30.474535C33.991901,29.570229,32.844,27.933699,32.844,26.065052L32.845716,26.006275z M53.770291,20.119031L44.688253,25.319921 44.720247,25.537884C44.740581,25.711212 44.750998,25.887079 44.750998,26.065052 44.750998,28.912514 42.084275,31.221001 38.797749,31.221001L38.67025,31.218208 38.672958,31.305962C38.671358,31.615515,38.625373,31.944508,38.53014,32.277802L37.755445,34.986586 44.966217,39.470285 44.977812,39.451984C45.814164,38.264851 47.230547,37.483999 48.837201,37.483999 49.078189,37.483999 49.314904,37.501568 49.546028,37.535442L49.656656,37.554392 54.505396,20.597714 54.402527,20.541037C54.290171,20.475618,54.180146,20.40689,54.0726,20.334991z M9.6452522,14.786494L9.5807686,14.857854C9.0475883,15.420187,8.3894768,15.871748,7.6484566,16.172216L7.5149994,16.222663 7.5149994,34.615192 7.5420074,34.625397C8.4930382,35.010883,9.2904701,35.676405,9.8216705,36.51416L9.9140587,36.668142 23.306246,29.758877 23.300888,29.725224C23.289059,29.61356 23.282999,29.500257 23.282999,29.385599 23.282999,27.893976 24.307062,26.633465 25.717823,26.213213L26.001564,26.143343 26.439465,22.908201z M25.594164,6.962996L10.989891,11.757046 10.982574,11.849259C10.963779,12.026639,10.935814,12.201424,10.899147,12.373173L10.896881,12.382581 26.821791,20.083639 28.28179,9.2974239 28.12504,9.2381914C27.074772,8.8124379,26.207533,8.0535914,25.667171,7.0996943z M34.637348,6.8116302L34.599276,6.8923512C33.894737,8.2938632,32.502018,9.3174334,30.841724,9.5606082L30.738474,9.5731842 29.162455,21.21555 33.69524,23.407539 33.705906,23.391473C34.750082,21.903184 36.639784,20.909001 38.797749,20.909001 40.441011,20.909001 41.929324,21.486123 43.006821,22.41919L43.020344,22.431472 51.760321,17.426437 51.737371,17.368303C51.521266,16.762437 51.403998,16.112631 51.403998,15.436536 51.403998,14.921415 51.472072,14.421554 51.600069,13.944759L51.681425,13.670171z M30.077951,0C32.588049,0,34.668222,1.7676992,35.036192,4.0752702L35.064489,4.2886443 52.961684,11.489869 53.021899,11.423252C54.161165,10.222043 55.804663,9.4679997 57.631995,9.4679992 61.070987,9.4680003 63.858998,12.139764 63.858998,15.436536 63.858998,18.733305 61.070987,21.405001 57.631995,21.405001L57.456546,21.40075 52.402265,39.080206 52.428996,39.108406C53.093061,39.879898 53.492,40.868822 53.492,41.946699 53.492,44.410421 51.407745,46.407999 48.837201,46.407999 48.033874,46.407999 47.278115,46.212923 46.618644,45.869505L46.615751,45.867823 35.872695,53.925859 35.950705,54.189234C36.069708,54.632677 36.132998,55.097586 36.132998,55.5767 36.132998,58.641745 33.540598,61.126001 30.342699,61.126001 27.144098,61.126001 24.550999,58.641745 24.550999,55.5767 24.550999,55.193407 24.591516,54.819208 24.668669,54.457815L24.711109,54.281561 8.605793,42.894129C8.5577812,42.860109,8.5120659,42.824305,8.4686737,42.786901L8.4553757,42.77429 8.3729744,42.833338C7.5921974,43.338846 6.6510086,43.634001 5.6380043,43.634001 2.935627,43.634001 0.74499893,41.535135 0.74499893,38.9454 0.74499893,36.841322 2.1911545,35.061296 4.1829567,34.467758L4.2889977,34.438908 4.2889977,16.456114 4.1295319,16.420828C1.7547989,15.835048 0,13.768469 0,11.309781 0,8.3958501 2.4649048,6.0340006 5.5053978,6.0339997 7.5959015,6.0340006 9.4142189,7.1503434 10.346516,8.7949429L10.425873,8.9434187 25.113558,4.1221313 25.119768,4.0752702C25.48749,1.7676992,27.566404,0,30.077951,0z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Risk">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M3.3500004,28.921999L16.410999,28.921999 16.410999,29.396999 16.410999,32.959999 16.410999,38.421999 25.514,38.421999 25.514,42.458 25.495,42.458 25.495,47.602999 34.698,47.602999 34.698,51.640999 25.495,51.640999 25.495,51.671 21.458,51.671 21.458,42.458 16.410999,42.458 12.453001,42.458 12.374001,42.458 12.374001,32.959999 3.3500004,32.959999z M54.794001,20.069L59.39695,23.324425 64,26.580851 59.39695,29.837375 54.794001,33.094 54.794001,30.650999 33.583,30.650999 33.583,22.698998 54.794001,22.698998z M14.7162,0.3409996L24.9141,0.3409996C25.97705,0.3409996,26.865667,1.1746159,27.071213,2.1986313L27.086924,2.3030968 27.124624,2.3546333C27.940995,3.4717503 29.881758,6.1571293 30.565413,7.3636971 30.565413,7.3636971 34.096944,13.338465 34.877442,15.061705L34.890623,15.092 40.170837,15.092C41.324416,15.092 42.257998,16.195044 42.257998,17.396999 42.257998,18.600256 41.324416,19.702 40.170837,19.702L33.450961,19.702C32.370606,19.702,31.482553,18.733671,31.375766,17.621177L31.37387,17.581701 29.230907,13.962816 22.261399,18.123934 26.40747,22.377669C27.150276,23.141019,27.230264,24.306093,26.654201,25.155003L26.643522,25.169146 26.636381,25.286112C26.628118,25.36014,26.616044,25.434453,26.600019,25.508835L24.851152,33.574084C24.592043,34.765377 23.418798,35.519273 22.228654,35.261475 21.03861,35.004976 20.280681,33.829283 20.53979,32.64039L22.288656,24.57524 22.309726,24.495231 17.488041,19.548167 17.480572,19.539678 17.253374,19.529043C16.366886,19.445599,15.589428,19.018761,15.078829,18.394262L15.074381,18.388281 12.282196,21.977999 12.216562,21.901865 12.1124,21.994324C11.720974,22.306216,11.1803,22.469,10.5833,22.469L2.1626606,22.469C0.96679688,22.469 0,21.817864 0,20.624998 0,19.428434 0.96679688,18.779999 2.1626606,18.779999L9.5252495,18.779999 9.3850002,18.617311 14.600033,11.548028C14.600033,11.548028,15.127697,11.125361,15.599133,10.798839L15.614553,10.78836 15.604,10.776026 24.149192,5.6036739 23.803184,4.9510002 14.7162,4.9510002C13.500099,4.9510002 12.514999,3.8623199 12.514999,2.6472778 12.514999,1.4298038 13.500099,0.3409996 14.7162,0.3409996z M34.6091,0C36.912666,0 38.780001,1.8671761 38.780001,4.1704998 38.780001,6.4739532 36.912666,8.3409996 34.6091,8.3409996 32.304335,8.3409996 30.437,6.4739532 30.437,4.1704998 30.437,1.8671761 32.304335,0 34.6091,0z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Reports">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M55.859353,59.282085C56.00929,59.285538,56.143475,59.392647,56.172002,59.547607L55.789193,65.810493C55.674588,66.466682,55.295579,65.802589,55.295579,65.802589L54.473962,64.431519C51.7422,68.327347 47.221295,70.881996 42.101273,70.881996 36.226228,70.881996 31.13625,67.53186 28.632329,62.638653 28.382323,62.158161 28.059378,61.686871 27.969502,61.146481 27.66084,59.337914 29.858891,59.01112 30.614098,59.864002 30.926646,60.216797 31.299044,60.827484 31.563321,61.306576 33.567227,65.081306 37.533479,67.649055 42.101273,67.649055 46.122369,67.649055 49.669251,65.651596 51.828099,62.602253L50.338567,62.323559C50.338567,62.323559,49.473847,62.210258,50.067658,61.849567L55.794392,59.287113C55.816193,59.283215,55.837933,59.28159,55.859353,59.282085z M40.764077,45.717999L43.468282,45.717999 43.468282,47.945969C44.940877,48.043633,45.939504,48.464172,46.57486,48.781933L46.850839,48.919876 45.9889,51.849625 45.591931,51.649216C44.965676,51.336708 43.994244,50.849598 42.497052,50.849598 41.307038,50.849598 40.589589,51.340611 40.589589,52.155632 40.589589,52.883549 41.269242,53.390064 43.278195,54.159683 46.150391,55.237812 47.377004,56.67535 47.377004,58.964413 47.377004,61.232674 45.806714,62.99192 43.348592,63.516731L43.348592,66.047997 40.616887,66.047997 40.616887,63.706738C39.216088,63.607735,37.791692,63.200325,36.902394,62.633808L36.672002,62.482704 37.5286,59.474827 37.945279,59.724831C38.568932,60.09864 39.856541,60.726257 41.489224,60.726257 42.825127,60.726257 43.684468,60.136341 43.684468,59.230118 43.684468,58.503498 43.274297,57.873283 41.294038,57.157166 39.122395,56.362843 36.898515,55.19091 36.898515,52.516441 36.898515,50.313221 38.372449,48.646427 40.764077,48.112602z M42.010037,40.691002C47.882275,40.691002 52.973134,44.039906 55.477063,48.93552 55.725755,49.413418 56.051247,49.888626 56.139745,50.42767 56.447038,52.237579 54.249299,52.563072 53.493916,51.708893 53.181527,51.354805 52.809136,50.742821 52.546143,50.264954 50.543599,46.492958 46.577512,43.922722 42.010037,43.922722 37.98795,43.922722 34.44249,45.919983 32.28362,48.96946L33.773167,49.248013C33.773167,49.248013,34.636472,49.363979,34.044091,49.72456L28.316394,52.28698C28.141854,52.318275,27.969985,52.199879,27.940001,52.026585L28.322789,45.767639C28.43744,45.104939,28.815036,45.774227,28.815036,45.774227L29.632752,47.140041C32.366937,43.245621,36.88775,40.691002,42.010037,40.691002z M21.804616,0L44.531026,0C48.257512,0,51.280999,3.0222199,51.280999,6.7460904L51.280999,38.274937 50.537671,37.898952C49.215222,37.269638,47.812577,36.778652,46.348977,36.444992L45.879922,36.344151 45.879922,6.7460904C45.879922,6.0039101,45.273122,5.3972201,44.531026,5.3972206L22.158713,5.3972206 21.794215,17.167999C21.794215,17.167999,21.325417,24.9519,12.747249,24.0117L5.3957184,23.8125 5.3957184,57.253899C5.3957189,57.998699,6.0024966,58.602901,6.7473038,58.602901L21.820422,58.602901 21.860354,58.884754C22.115357,60.533066,22.574946,62.114872,23.212727,63.604115L23.393945,64 6.7473038,64C3.0207885,64,2.9307267E-07,60.980499,0,57.253899L0,23.0051 2.6718498,20.1863 2.6743804,20.1094 16.677035,5.3972206 16.637936,5.3972206 12.89565,9.3464394 16.817534,5.1914101 16.872334,5.1914101 16.997233,5.0612788 17.007634,5.0612788z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Spreads">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="F1M70.546875,54.3758316040039L77.484375,54.3758316040039 77.484375,89.0633316040039 70.546875,89.0633316040039 70.546875,54.3758316040039z M48.5625,54.3758316040039L65.90625,71.7195816040039 48.5625,89.0633316040039 48.5625,75.1883316040039 8.109375,75.1883316040039 8.109375,68.2508316040039 48.5625,68.2508316040039 48.5625,54.3758316040039z M37.03125,19.6883316040039L37.03125,33.5633316040039 77.484375,33.5633316040039 77.484375,40.5008316040039 37.03125,40.5008316040039 37.03125,54.3758316040039 19.6875,37.0320816040039 37.03125,19.6883316040039z M8.109375,19.6883316040039L15.046875,19.6883316040039 15.046875,54.3758316040039 8.109375,54.3758316040039 8.109375,19.6883316040039z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Depth">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M0,27.006001L37.806999,27.006001 37.806999,31.806 0,31.806z M0,18.003L37.806999,18.003 37.806999,22.806 0,22.806z M0,8.9999999L37.806999,8.9999999 37.806999,13.803 0,13.803z M0,0L37.806999,0 37.806999,4.8030009 0,4.8030009z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Trades">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M50.14375,33.389126C50.416863,33.394688,50.653496,33.587773,50.705998,33.864617L50.015995,45.114388C49.810295,46.291462,49.130394,45.097489,49.130394,45.097489L47.65659,42.640538C42.747776,49.635197 34.633152,54.221001 25.433924,54.221001 14.884193,54.221001 5.7437552,48.204125 1.2449617,39.419205 0.80087067,38.552021 0.21358696,37.705738 0.052086769,36.736958 -0.49735315,33.490925 3.4507786,32.901036 4.8049124,34.432404 5.3674143,35.067692 6.034036,36.16407 6.5079177,37.026051 10.106778,43.799416 17.2321,48.413819 25.433924,48.413819 32.656544,48.413819 39.026364,44.826695 42.903977,39.351506L40.229367,38.854115C40.229367,38.854115,38.677464,38.647118,39.742466,37.996033L50.024895,33.398526C50.064972,33.391365,50.104733,33.388333,50.14375,33.389126z M23.030291,9.0310004L27.889918,9.0310004 27.889918,13.028299C30.539786,13.205498,32.324932,13.958096,33.464161,14.528294L33.964176,14.775793 32.417435,20.038878 31.706417,19.68068C30.579987,19.11958 28.839241,18.244583 26.149073,18.244583 24.006916,18.244583 22.723183,19.122181 22.723183,20.590876 22.723183,21.894272 23.943314,22.804369 27.551308,24.187165 32.706444,26.124659 34.911,28.702853 34.911,32.817341 34.911,36.892929 32.090527,40.05172 27.673611,40.989117L27.673611,45.540001 22.767485,45.540001 22.767485,41.330414C20.252919,41.155815,17.695551,40.424118,16.101811,39.404721L15.683999,39.137619 17.221739,33.731438 17.969059,34.180634C19.088988,34.851235 21.402748,35.97873 24.340325,35.97873 26.734886,35.97873 28.276728,34.921635 28.276728,33.291336 28.276728,31.986641 27.547409,30.853846 23.986016,29.57255 20.083815,28.144253 16.095511,26.04406 16.095511,21.239174 16.095511,17.280985 18.737379,14.291395 23.030291,13.329098z M25.268765,0C35.819447,2.7347414E-07 44.961449,6.0155495 49.458798,14.804573 49.902695,15.669173 50.490094,16.516972 50.651287,17.48427 51.198281,20.734265 47.255726,21.318962 45.901341,19.789065 45.336346,19.153567 44.669552,18.051968 44.19566,17.19517 40.5957,10.421881 33.473275,5.8072398 25.268765,5.8072393 18.047545,5.8072398 11.678013,9.3918336 7.8003562,14.867073L10.474627,15.367072C10.474627,15.367072,12.026909,15.574172,10.962921,16.223872L0.67933281,20.826762C0.36037083,20.880062,0.057029126,20.669165,0.00099972012,20.354063L0.69093342,9.1118043C0.89552094,7.9296158,1.5738537,9.124924,1.5738539,9.124924L3.0452772,11.583379C7.9566038,4.584462,16.073666,2.7347414E-07,25.268765,0z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Sheets">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M22.1575,13.53399L21.794301,25.304994C21.794301,25.304994,21.3242,33.088695,12.747401,32.148692L5.3958107,31.949492 5.3958107,65.390895C5.3958107,66.135493,6.0026208,66.7391,6.7473808,66.7391L44.5313,66.7391C45.2734,66.7391,45.8802,66.135493,45.8802,65.390895L45.8802,14.883091C45.8802,14.140891,45.2734,13.53399,44.5313,13.53399z M21.804701,8.1369996L44.5313,8.1369996C48.257802,8.1370001,51.279999,11.15899,51.279999,14.883091L51.279999,65.390895C51.279999,69.117496,48.257802,72.136996,44.5313,72.136996L6.7473808,72.136996C3.0208105,72.136996,5.8073994E-07,69.117496,0,65.390895L0,31.142392 2.6718808,28.322993 2.6745006,28.246392 16.6771,13.53399 16.638001,13.53399 12.8945,17.483192 16.816401,13.328391 16.872401,13.328391 16.9961,13.19799 17.0078,13.19799z M30.352,0L55.255002,0 60.581002,0 60.581002,4.747 60.581002,55.207999 55.255002,55.207999 55.255002,4.747 30.352,4.747z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Surface">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="m 127.71875,0.03125 c 1.96953,0.68706766 3.77873,1.728511 5.53125,2.84375 5.68444,-0.1664634 11.35972,0.1351305 17.03125,0.46875 -1.73194,-1.1492389 -3.57847,-2.1023993 -5.53125,-2.8125 -5.6651,-0.45913017 -11.34995,-0.58354857 -17.03125,-0.5 z m -4.25,0.125 c -5.70361,0.2336956 -11.37548,0.81394241 -17.03125,1.5625 1.95847,0.6900238 3.78385,1.7005175 5.53125,2.8125 C 117.61899,3.7613446 123.30363,3.2513106 129,3 127.28567,1.8094865 125.39256,0.94326338 123.46875,0.15625 z M 149,0.90625 c 1.96418,0.6694319 3.78573,1.7017145 5.53125,2.8125 5.71276,0.5944911 11.3908,1.4529283 17.03125,2.53125 C 169.85207,5.0455955 167.95676,4.1939604 166.03125,3.40625 160.39919,2.2891664 154.71106,1.4856327 149,0.90625 z m -46.8125,1.4375 C 96.464888,3.3096165 90.767826,4.4520829 85.15625,5.9375 87.106815,6.6380546 88.941831,7.6391195 90.6875,8.75 96.310308,7.3225043 101.99157,6.1139557 107.71875,5.1875 106.00019,4.0048872 104.11138,3.1307925 102.1875,2.34375 z m 32.46875,1.5 c 2.00275,1.4247295 3.75993,3.1494432 5.53125,4.84375 5.68351,-0.080003 11.36274,0.089238 17.03125,0.5 -1.73044,-1.7529327 -3.58348,-3.3699033 -5.53125,-4.875 -5.66508,-0.4641114 -11.35053,-0.55229 -17.03125,-0.46875 z m -4.28125,0.125 C 124.103,4.2953783 119.00738,4.7504024 113.34375,5.5 c 1.99941,1.4415661 3.79164,3.1353901 5.53125,4.875 5.65135,-0.7706117 11.33386,-1.2798945 17.03125,-1.53125 -1.66132,-1.8295873 -3.58341,-3.3698478 -5.53125,-4.875 z m 39.9375,0.34375 c 1.96346,0.6759081 3.78484,1.7011488 5.53125,2.8125 5.74468,1.2638733 11.4064,2.8505892 17.03125,4.5625 -1.72987,-1.168721 -3.60534,-2.0558794 -5.53125,-2.84375 C 181.73627,7.0795573 176.0521,5.5785891 170.3125,4.3125 z m -14.375,0.375 c 1.9717,1.4743322 3.79243,3.136185 5.53125,4.875 5.71797,0.542825 11.39215,1.453188 17.03125,2.53125 -1.6913,-1.79287 -3.58414,-3.3704114 -5.53125,-4.875 C 167.33901,6.0657565 161.63964,5.35834 155.9375,4.6875 z m -46.84375,1.46875 c -5.72932,0.9221197 -11.402883,2.1554082 -17.03125,3.5625 1.99347,1.451281 3.791265,3.135015 5.53125,4.875 5.62016,-1.451631 11.30209,-2.635724 17.03125,-3.5625 -1.69439,-1.7852366 -3.54058,-3.4272419 -5.53125,-4.875 z M 80.90625,7.0625 c -5.768034,1.593637 -11.417957,3.561289 -17.03125,5.625 1.930762,0.74325 3.819326,1.676529 5.53125,2.84375 5.568779,-2.194858 11.293752,-3.937501 17.03125,-5.625 C 84.697913,8.7506893 82.833288,7.8508336 80.90625,7.0625 z m 96.3125,1.03125 c 2.01998,1.5283684 3.9853,3.332564 5.53125,4.875 5.75001,1.241656 11.41327,2.827536 17.03125,4.5625 -1.70386,-1.770251 -3.54256,-3.428678 -5.53125,-4.875 -5.59469,-1.822363 -11.3081,-3.215876 -17.03125,-4.5625 z M 141.5625,10.1875 c 1.98812,2.171216 3.79154,4.502672 5.53125,6.875 5.68335,-0.07635 11.3631,0.08322 17.03125,0.5 -1.70296,-2.41177 -3.58181,-4.690977 -5.53125,-6.90625 -5.82598,-0.440889 -11.98586,-0.537879 -17.03125,-0.46875 z m -4.25,0.125 c -5.69916,0.210199 -11.37949,0.783222 -17.03125,1.53125 1.96864,2.199545 3.78641,4.526916 5.53125,6.90625 5.65033,-0.779208 11.33395,-1.279899 17.03125,-1.53125 -1.7175,-2.400101 -3.58197,-4.691155 -5.53125,-6.90625 z m -49.5,0.5625 c -5.756209,1.627414 -11.443914,3.488666 -17.03125,5.625 1.986252,1.443163 3.797302,3.109802 5.53125,4.84375 C 81.914775,19.260145 87.586406,17.35867 93.34375,15.75 91.661607,13.944308 89.760517,12.380286 87.8125,10.875 z m 75.03125,0.15625 c 1.99219,2.183637 3.78522,4.525295 5.53125,6.90625 6.28774,0.687745 11.37979,1.450824 17.03125,2.53125 -1.68349,-2.427307 -3.58184,-4.691013 -5.53125,-6.90625 -5.63506,-1.107989 -11.31933,-1.943258 -17.03125,-2.53125 z M 116,12.5 c -5.73799,0.878008 -11.39825,2.174659 -17.03125,3.5625 2.03956,2.148921 3.76403,4.56042 5.5625,6.90625 5.61994,-1.453285 11.29946,-2.648737 17.03125,-3.5625 C 119.8176,17.015603 118.00451,14.67882 116,12.5 z m -56.40625,1.84375 c -5.792814,2.278458 -11.419014,4.940887 -17.03125,7.625 1.967004,0.694041 3.777949,1.728013 5.53125,2.84375 5.58415,-2.744879 11.247417,-5.328478 17.03125,-7.625 -1.725645,-1.141384 -3.572016,-2.162277 -5.53125,-2.84375 z M 184.125,14.4375 c 2.02152,2.155746 3.78605,4.526439 5.53125,6.90625 5.75343,1.228401 11.41327,2.827536 17.03125,4.5625 C 205.01516,23.467587 203.10649,21.216187 201.15625,19 195.55578,17.209943 189.86603,15.703904 184.125,14.4375 z m -89.40625,2.78125 c -5.757378,1.612569 -11.421181,3.531225 -17.03125,5.59375 2.013414,2.164294 3.785804,4.526096 5.53125,6.90625 C 88.826875,27.652066 94.492577,25.733692 100.25,24.125 98.572893,21.691803 96.66853,19.434409 94.71875,17.21875 z m -28.1875,0.9375 c -5.809395,2.239258 -11.434051,4.908712 -17.03125,7.625 1.996367,1.448111 3.791108,3.134858 5.53125,4.875 C 60.587618,27.843081 66.305928,25.370353 72.0625,23 70.325483,21.271546 68.515383,19.599256 66.53125,18.15625 z m 81.9375,0.90625 C 150.4643,21.946692 152.27759,24.946629 154,28 c 5.68473,-0.186058 11.35951,0.135118 17.03125,0.46875 -1.70966,-3.061344 -3.58704,-6.02118 -5.53125,-8.9375 -5.66815,-0.423667 -11.34913,-0.552311 Line truncated
|
||||
<GeometryDrawing.Pen>
|
||||
<Pen Brush="White" Thickness="2" />
|
||||
</GeometryDrawing.Pen>
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Analytics">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M17.9349,52.632801L13.5176,60.285198 22.3529,60.285198z M4.1452103,50.3647L4.1452103,52.622398 59.855499,52.622398 59.855499,50.3647z M17.062819,7.9790001L21.601147,36.012657 25.301687,19.424307 28.011845,37.14275 33.26696,12.41387 36.744106,37.14275 40.357449,27.929331 43.067604,37.14275 46.822746,19.489307 50.89698,37.14275 56.015999,23.676769 56.015999,42.608997 8.1710005,42.608997 8.1710005,23.135174 13.86557,31.999594z M4.1452103,3.8098803L4.1452103,45.6199 59.855499,45.6199 59.855499,3.8098803z M0,0L64,0 64,64 0,64z"/>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Orders">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M50.14375,33.389126C50.416863,33.394688,50.653496,33.587773,50.705998,33.864617L50.015995,45.114388C49.810295,46.291462,49.130394,45.097489,49.130394,45.097489L47.65659,42.640538C42.747776,49.635197 34.633152,54.221001 25.433924,54.221001 14.884193,54.221001 5.7437552,48.204125 1.2449617,39.419205 0.80087067,38.552021 0.21358696,37.705738 0.052086769,36.736958 -0.49735315,33.490925 3.4507786,32.901036 4.8049124,34.432404 5.3674143,35.067692 6.034036,36.16407 6.5079177,37.026051 10.106778,43.799416 17.2321,48.413819 25.433924,48.413819 32.656544,48.413819 39.026364,44.826695 42.903977,39.351506L40.229367,38.854115C40.229367,38.854115,38.677464,38.647118,39.742466,37.996033L50.024895,33.398526C50.064972,33.391365,50.104733,33.388333,50.14375,33.389126z M23.030291,9.0310004L27.889918,9.0310004 27.889918,13.028299C30.539786,13.205498,32.324932,13.958096,33.464161,14.528294L33.964176,14.775793 32.417435,20.038878 31.706417,19.68068C30.579987,19.11958 28.839241,18.244583 26.149073,18.244583 24.006916,18.244583 22.723183,19.122181 22.723183,20.590876 22.723183,21.894272 23.943314,22.804369 27.551308,24.187165 32.706444,26.124659 34.911,28.702853 34.911,32.817341 34.911,36.892929 32.090527,40.05172 27.673611,40.989117L27.673611,45.540001 22.767485,45.540001 22.767485,41.330414C20.252919,41.155815,17.695551,40.424118,16.101811,39.404721L15.683999,39.137619 17.221739,33.731438 17.969059,34.180634C19.088988,34.851235 21.402748,35.97873 24.340325,35.97873 26.734886,35.97873 28.276728,34.921635 28.276728,33.291336 28.276728,31.986641 27.547409,30.853846 23.986016,29.57255 20.083815,28.144253 16.095511,26.04406 16.095511,21.239174 16.095511,17.280985 18.737379,14.291395 23.030291,13.329098z M25.268765,0C35.819447,2.7347414E-07 44.961449,6.0155495 49.458798,14.804573 49.902695,15.669173 50.490094,16.516972 50.651287,17.48427 51.198281,20.734265 47.255726,21.318962 45.901341,19.789065 45.336346,19.153567 44.669552,18.051968 44.19566,17.19517 40.5957,10.421881 33.473275,5.8072398 25.268765,5.8072393 18.047545,5.8072398 11.678013,9.3918336 7.8003562,14.867073L10.474627,15.367072C10.474627,15.367072,12.026909,15.574172,10.962921,16.223872L0.67933281,20.826762C0.36037083,20.880062,0.057029126,20.669165,0.00099972012,20.354063L0.69093342,9.1118043C0.89552094,7.9296158,1.5738537,9.124924,1.5738539,9.124924L3.0452772,11.583379C7.9566038,4.584462,16.073666,2.7347414E-07,25.268765,0z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Admin">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M18.660349,20.393C14.879011,20.393 11.806,23.468643 11.806,27.249899 11.806,31.026154 14.879011,34.103001 18.660349,34.103001 22.444386,34.103001 25.519998,31.026154 25.519998,27.249899 25.519998,23.468643 22.444386,20.393 18.660349,20.393z M50.07317,8.7561953C49.408178,8.7706149 48.735172,8.9156297 48.090648,9.2053407 45.51765,10.359123 44.36155,13.394207 45.51765,15.96858 46.671449,18.541552 49.709146,19.691384 52.283444,18.540251 54.856342,17.378819 56.012442,14.352736 54.856342,11.771862 53.990993,9.8450501 52.068145,8.7129386 50.07317,8.7561953z M15.597473,8.6000007L21.868224,8.6000007 22.20032,14.327933 22.20032,14.531032C23.236712,14.816134,24.218506,15.221134,25.133898,15.736836L25.253695,15.615635 29.675461,11.900828 34.111725,16.338337 30.296556,20.624846 30.165057,20.758946C30.683352,21.674349,31.08955,22.659951,31.378649,23.696451L31.544045,23.696451 37.293999,24.196451 37.293999,30.468565 31.566147,30.803267 31.378649,30.803267C31.08955,31.836972,30.683352,32.821373,30.165057,33.736874L30.280955,33.853974 33.993225,38.274582 29.558261,42.709496 25.271895,38.896988 25.133898,38.758988C24.218506,39.274586,23.236712,39.678185,22.20032,39.963387L22.20032,40.146988 21.868224,45.897 15.597473,45.897 15.093578,40.166485 15.093578,39.959488C14.064985,39.671688,13.084595,39.265385,12.174301,38.749787L12.040102,38.881485 7.7381763,42.709496 3.3033104,38.274582 6.9999428,33.869675 7.1522102,33.721176C6.6379356,32.807072,6.2343292,31.83057,5.9464817,30.803267L5.7499523,30.803267 0,30.468565 0,24.196451 5.7278118,23.696451 5.9464817,23.696451C6.2343292,22.665051,6.6379356,21.687248,7.1522102,20.775946L7.0128822,20.640444 3.1874237,16.338337 7.6209869,11.900828 12.027203,15.600036 12.174301,15.744536C13.084595,15.231535,14.064985,14.825334,15.093578,14.537533L15.093578,14.350033z M52.888157,0L57.259197,1.6601361 56.091211,5.7941664 56.035212,5.937414C56.665401,6.3971274,57.240894,6.9413698,57.753986,7.5533617L57.878984,7.4947021 61.949226,6.0845716 63.865797,10.35405 60.071657,12.331821 59.933659,12.393021C60.053354,13.18731,60.075457,13.977598,60.003952,14.758987L60.12245,14.803286 63.999998,16.682059 62.337223,21.053194 58.253977,19.771912 58.12108,19.721113C57.656389,20.352705,57.112095,20.928097,56.496105,21.441189L56.549604,21.556988 57.962284,25.627228 53.691446,27.541302 51.712375,23.744456 51.653774,23.615557C50.862186,23.736756,50.066597,23.760056,49.285309,23.687157L49.241009,23.800455 47.366036,27.678 42.991099,26.017823 44.277584,21.928082 44.325682,21.799183C43.696789,21.334391,43.121297,20.784899,42.607106,20.171606L42.487208,20.225006 38.469066,21.753483 36.553693,17.486847 40.297138,15.390477 40.441637,15.327978C40.321941,14.53499,40.299839,13.744601,40.372736,12.963413L40.24384,12.915114 36.321998,11.158738 37.984774,6.7851217 42.113513,7.9530752 42.263212,8.009104C42.728206,7.3840535,43.269797,6.8124616,43.879186,6.3033789L43.82189,6.1652506 42.29051,2.1496897 46.562749,0.22918414 48.656518,3.977782 48.722916,4.1289099C49.511906,4.0091622,50.299695,3.9843827,51.075585,4.0534113L51.127785,3.9218233z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Eye">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M33.597977,10.759002C37.946865,10.759002 41.485962,14.285001 41.485962,18.649 41.485962,23 37.946865,26.535 33.597977,26.535 29.23909,26.535 25.709992,23 25.709992,18.649 25.709992,17.784 25.849955,16.953001 26.109888,16.174002 26.779719,16.881001 27.70948,17.327002 28.759213,17.327002 30.778696,17.327002 32.418278,15.691001 32.418278,13.668001 32.418278,12.663001 32.008381,11.748001 31.348551,11.087002 32.058369,10.876001 32.818176,10.759002 33.597977,10.759002z M33.606682,4.3679962C25.92741,4.3679957 19.698065,10.594956 19.698065,18.27293 19.698065,25.953894 25.92741,32.177862 33.606682,32.177862 41.295838,32.177862 47.515175,25.953894 47.515175,18.27293 47.515175,10.594956 41.295838,4.3679957 33.606682,4.3679962z M34.867642,1.546141E-09C36.890393,2.6508449E-05 58.705193,0.41938579 68.893006,18.299923 68.893006,18.299923 57.1442,36.139837 34.44656,34.768854 34.44656,34.768854 14.428583,36.59984 0,18.299923 0,18.299923 9.0791523,0.4590019 34.716553,0.0010111886 34.716553,0.0010114873 34.768162,-1.4442128E-06 34.867642,1.546141E-09z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Coins">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M3.3390064,47.374004L26.00104,47.374004C26.17504,47.881321 26.361041,48.388939 26.575041,48.889757 27.610043,51.333344 29.086045,53.523722 30.968048,55.406689 31.135048,55.573593 31.309048,55.733997 31.476048,55.894005L3.3390064,55.894005C1.4960022,55.894005,0,54.398552,0,52.555387L0,50.712622C0,48.869556,1.4960022,47.374004,3.3390064,47.374004z M8.6740417,35.422004L25.713049,35.422004C25.220049,37.198282 24.972049,39.03446 24.972049,40.910738 24.972049,41.932125 25.046049,42.947113 25.193049,43.942001L8.6740417,43.942001C6.8310413,43.942001,5.3350391,42.44632,5.3350391,40.60354L5.3350391,38.760464C5.3350391,36.917886,6.8310413,35.422004,8.6740417,35.422004z M44.333998,28.91725L44.333998,31.014374C42.649975,31.25297 41.419993,31.901375 40.634958,32.963784 39.852975,34.026392 39.458993,35.225903 39.458993,36.554114 39.458993,37.565422 39.677987,38.455833 40.118966,39.221838 40.555979,39.98354 41.125986,40.573252 41.829967,40.99555 42.53297,41.425255 43.508984,41.850658 44.758986,42.28466 46.149979,42.776463 47.048965,43.183067 47.451004,43.502871 47.852982,43.819578 48.055986,44.291979 48.055986,44.913282 48.055986,45.51469 47.852982,46.022491 47.451004,46.448399 47.048965,46.874603 46.41597,47.0849 45.560011,47.0849 43.728954,47.0849 42.649975,46.093193 42.325999,44.11248L38.810005,45.030586C39.521005,48.178713,41.360971,49.909225,44.333998,50.214329L44.333998,52.91765 46.607986,52.91765 46.607986,50.202824C48.391985,50.015223 49.755999,49.390217 50.701008,48.33131 51.646992,47.273104 52.118979,45.952789 52.118979,44.36648 52.118979,43.331467 51.888998,42.429262 51.431965,41.65526 50.970966,40.886349 50.360981,40.276442 49.59096,39.839542 48.826006,39.401939 47.763016,38.933239 46.41597,38.440628 45.185011,37.991329 44.384962,37.612823 44.008986,37.307821 43.633984,36.999621 43.446972,36.561912 43.446972,35.991115 43.446972,35.429106 43.641979,34.952402 44.032972,34.558096 44.419996,34.163196 44.935011,33.967896 45.576002,33.967896 46.85701,33.967896 47.797989,34.850602 48.407976,36.612617L51.545002,35.327107C50.795002,32.756988,49.14699,31.319575,46.607986,31.015068L46.607986,28.91725z M3.3390026,23.690004L34.347016,23.690004C33.139015,24.471167 32.010015,25.379241 30.975014,26.414426 29.286014,28.103764 27.917013,30.053523 26.909013,32.203998L3.3390026,32.203998C1.4960022,32.203998,0,30.708376,0,28.865226L0,27.028776C0,25.185925,1.4960022,23.690004,3.3390026,23.690004z M45.470961,22.415C55.686974,22.415 63.96701,30.694868 63.959991,40.924053 63.959991,51.140034 55.680992,59.419998 45.464003,59.419998 41.41096,59.419998 37.659003,58.110893 34.613955,55.900974 31.696961,53.777658 29.412962,50.819633 28.130979,47.380901 27.716977,46.285692 27.408993,45.137482 27.215939,43.948774 27.055966,42.96047 26.96899,41.952459 26.968991,40.917248 26.96899,39.007633 27.255978,37.164823 27.796994,35.428709 28.150998,34.306995 28.597959,33.23199 29.145994,32.210482 31.195984,28.371248 34.553958,25.346428 38.626961,23.723612 40.743967,22.882503 43.053967,22.415 45.470961,22.415z M3.3390045,11.952L38.153052,11.952C39.996056,11.952,41.492057,13.448001,41.492057,15.290001L41.492057,17.133002C41.492057,18.976003,39.996056,20.472003,38.153052,20.472004L3.3390045,20.472004C1.4960022,20.472003,0,18.976003,0,17.133002L0,15.290001C0,13.448001,1.4960022,11.952,3.3390045,11.952z M8.6735134,0L43.487543,0C45.330534,0,46.826027,1.4958782,46.826027,3.3386841L46.826027,5.1814384C46.826027,7.0245428,45.330534,8.5200005,43.487543,8.5200005L8.6735134,8.5200005C6.8304424,8.5200005,5.3350277,7.0245428,5.3350277,5.1814384L5.3350277,3.3386841C5.3350277,1.4958782,6.8304424,0,8.6735134,0z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="BombIcon">
|
||||
<DrawingImage x:Key="FavoritesGold">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black"
|
||||
<GeometryDrawing Geometry="M1540.22,2082.07L1546.95,2102.78 1568.73,2102.78 1551.11,2115.58 1557.84,2136.29 1540.22,2123.49 1522.6,2136.29 1529.33,2115.58 1511.71,2102.78 1533.49,2102.78 1540.22,2082.07z">
|
||||
<GeometryDrawing.Pen>
|
||||
<Pen Thickness="1" Brush="Black" />
|
||||
</GeometryDrawing.Pen>
|
||||
<GeometryDrawing.Brush>
|
||||
<SolidColorBrush Color="#ffd932" />
|
||||
</GeometryDrawing.Brush>
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="FavoritesWhite">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Geometry="M1540.22,2082.07L1546.95,2102.78 1568.73,2102.78 1551.11,2115.58 1557.84,2136.29 1540.22,2123.49 1522.6,2136.29 1529.33,2115.58 1511.71,2102.78 1533.49,2102.78 1540.22,2082.07z">
|
||||
<GeometryDrawing.Pen>
|
||||
<Pen Thickness="1" Brush="Black" />
|
||||
</GeometryDrawing.Pen>
|
||||
<GeometryDrawing.Brush>
|
||||
<SolidColorBrush Color="#ffd932" />
|
||||
</GeometryDrawing.Brush>
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Window">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Geometry="
|
||||
M 32.868601,3.8869994 C31.026201,3.8869996 29.534,5.3791947 29.534,7.2190399 29.534,9.0588851 31.026201,10.553 32.868601,10.553 34.7085,10.553 36.202,9.0588851 36.202,7.2190399 36.202,5.3791947 34.7085,3.8869996 32.868601,3.8869994z
|
||||
M 42.868601,3.8869994 C41.026201,3.8869996 39.534,5.3791947 39.534,7.2190399 39.534,9.0588851 41.026201,10.553 42.868601,10.553 44.7085,10.553 46.202,9.0588851 46.202,7.2190399 46.202,5.3791947 44.7085,3.8869996 42.868601,3.8869994z
|
||||
M 52.868601,3.8869994 C51.026201,3.8869996 49.534,5.3791947 49.534,7.2190399 49.534,9.0588851 51.026201,10.553 52.868601,10.553 54.7085,10.553 56.202,9.0588851 56.202,7.2190399 56.202,5.3791947 54.7085,3.8869996 52.868601,3.8869994z
|
||||
M5.2010002,14.812L5.2010002,43.573997 56.098,43.573997 56.098,14.812z
|
||||
M0,0L63.999001,0 63.999001,48.792999 0,48.792999z">
|
||||
<GeometryDrawing.Pen>
|
||||
<Pen Thickness="1" Brush="Black" />
|
||||
</GeometryDrawing.Pen>
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="ActiveWindow">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="
|
||||
M 32.868601,3.8869994 C31.026201,3.8869996 29.534,5.3791947 29.534,7.2190399 29.534,9.0588851 31.026201,10.553 32.868601,10.553 34.7085,10.553 36.202,9.0588851 36.202,7.2190399 36.202,5.3791947 34.7085,3.8869996 32.868601,3.8869994z
|
||||
M 42.868601,3.8869994 C41.026201,3.8869996 39.534,5.3791947 39.534,7.2190399 39.534,9.0588851 41.026201,10.553 42.868601,10.553 44.7085,10.553 46.202,9.0588851 46.202,7.2190399 46.202,5.3791947 44.7085,3.8869996 42.868601,3.8869994z
|
||||
M 52.868601,3.8869994 C51.026201,3.8869996 49.534,5.3791947 49.534,7.2190399 49.534,9.0588851 51.026201,10.553 52.868601,10.553 54.7085,10.553 56.202,9.0588851 56.202,7.2190399 56.202,5.3791947 54.7085,3.8869996 52.868601,3.8869994z
|
||||
M5.2010002,14.812L5.2010002,43.573997 56.098,43.573997 56.098,14.812z
|
||||
M0,0L63.999001,0 63.999001,48.792999 0,48.792999z">
|
||||
<GeometryDrawing.Pen>
|
||||
<Pen Thickness="1" Brush="Black" />
|
||||
</GeometryDrawing.Pen>
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Trash">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M33.978,27.679999L33.978,58.098995 41.374,58.098995 41.374,27.679999z M14.841001,27.679999L14.841001,58.098995 22.237,58.098995 22.237,27.679999z M4.0320003,22.430001L52.183002,22.430001 52.183002,63.995998 4.0320003,63.995998z M15.974001,0L40.194999,0 40.194999,7.7200003 56.166999,7.7200003 56.166999,15.995 0,15.995 0,7.7200003 15.974001,7.7200003z">
|
||||
<!--<GeometryDrawing.Pen>
|
||||
<Pen Thickness="1" Brush="Black" />
|
||||
</GeometryDrawing.Pen>-->
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Trash2">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Transparent" Geometry="M0,12.568994L23.662999,12.568994 20.910989,31.999999 2.7520113,31.999999z M8.0689915,1.6269979L8.0689915,4.6679968 15.594984,4.6679968 15.594984,1.6269979z M6.4420097,0L17.221997,0 17.221997,4.6679968 23.662999,4.6679968 23.662999,8.7949938 0,8.7949938 0,4.6679968 6.4420097,4.6679968z">
|
||||
<GeometryDrawing.Pen>
|
||||
<Pen Brush="Black" Thickness="2"/>
|
||||
</GeometryDrawing.Pen>
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Undo">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="F1M-198.67,4280.19C-197.609,4277.78 -197.035,4275.17 -197.035,4272.46 -197.035,4267.33 -199.032,4262.51 -202.665,4258.88 -206.286,4255.25 -211.107,4253.26 -216.235,4253.26 -221.365,4253.26 -226.186,4255.25 -229.811,4258.88 -232.498,4261.57 -234.282,4264.92 -235.032,4268.56L-225.835,4278.86 -252.503,4278.86 -250.373,4251.38 -241.577,4261.22C-240.214,4258.14 -238.303,4255.3 -235.844,4252.85 -230.61,4247.61 -223.644,4244.72 -216.235,4244.72 -208.822,4244.72 -201.861,4247.61 -196.627,4252.85 -191.39,4258.08 -188.503,4265.05 -188.503,4272.46 -188.503,4275.11 -188.894,4277.71 -189.617,4280.19L-198.67,4280.19z">
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Crucible">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="m 430.4375 225.625 c -1.92352 0.0276 -3.82501 0.82944 -5.1875 2.1875 L 330.0625 323 288 280.9375 c -1.38915 -1.39371 -3.34472 -2.2056 -5.3125 -2.2056 -1.96778 0 -3.92335 0.81189 -5.3125 2.2056 l -23.9375 23.9375 c -1.3844 1.38804 -2.18997 3.33646 -2.18997 5.29687 0 1.96042 0.80557 3.90884 2.18997 5.29688 l 71.3125 71.3125 c 1.38804 1.3844 3.33646 2.18997 5.29687 2.18997 1.96042 0 3.90884 -0.80557 5.29688 -2.18997 l 4.34375 -4.34375 19.59375 -19.59375 100.5 -100.5 c 1.3844 -1.38804 2.18997 -3.33646 2.18997 -5.29688 0 -1.96041 -0.80557 -3.90883 -2.18997 -5.29687 l -23.9375 -23.9375 c -1.41413 -1.40955 -3.40982 -2.21706 -5.40625 -2.1875 z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Cube">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M37.063741,37.405188L33.240929,50.771959 33.345182,50.829412C33.743126,51.061163,34.109612,51.337603,34.437061,51.651468L34.468327,51.682901 44.707291,44.003126 44.641921,43.880777C44.347813,43.295671,44.183001,42.63962,44.183001,41.946699L44.185978,41.833834z M24.591099,31.982382L10.519234,39.24213 10.504738,39.424831C10.479679,39.661278,10.436295,39.892527,10.375957,40.117252L10.337856,40.24584 10.451912,40.307037C10.495525,40.332783,10.538376,40.360497,10.58033,40.390192L26.361021,51.547636 26.448517,51.467699C27.339916,50.69132,28.485014,50.17779,29.750544,50.054647L30.015249,50.035364 34.145618,35.590685 29.192999,32.51112C29.04261,32.417593,28.908485,32.31176,28.79232,32.197899L28.716364,32.117622 28.685419,32.139805C28.132467,32.49791 27.465902,32.706999 26.748449,32.706999 26.030621,32.706999 25.363836,32.49791 24.810755,32.139805z M28.780092,24.040133L28.448082,26.492748 28.685419,26.630915C29.607006,27.227547 30.212999,28.238197 30.212999,29.385599 30.212999,29.614918 30.188759,29.838802 30.142603,30.055031L30.080193,30.287708 30.111809,30.297695C30.268356,30.353413,30.424189,30.42791,30.574446,30.521399L34.837221,33.172018 35.327473,31.457518C35.410911,31.165865,35.525216,30.895145,35.662153,30.652515L35.756067,30.497255 35.710442,30.474535C33.991901,29.570229,32.844,27.933699,32.844,26.065052L32.845716,26.006275z M53.770291,20.119031L44.688253,25.319921 44.720247,25.537884C44.740581,25.711212 44.750998,25.887079 44.750998,26.065052 44.750998,28.912514 42.084275,31.221001 38.797749,31.221001L38.67025,31.218208 38.672958,31.305962C38.671358,31.615515,38.625373,31.944508,38.53014,32.277802L37.755445,34.986586 44.966217,39.470285 44.977812,39.451984C45.814164,38.264851 47.230547,37.483999 48.837201,37.483999 49.078189,37.483999 49.314904,37.501568 49.546028,37.535442L49.656656,37.554392 54.505396,20.597714 54.402527,20.541037C54.290171,20.475618,54.180146,20.40689,54.0726,20.334991z M9.6452522,14.786494L9.5807686,14.857854C9.0475883,15.420187,8.3894768,15.871748,7.6484566,16.172216L7.5149994,16.222663 7.5149994,34.615192 7.5420074,34.625397C8.4930382,35.010883,9.2904701,35.676405,9.8216705,36.51416L9.9140587,36.668142 23.306246,29.758877 23.300888,29.725224C23.289059,29.61356 23.282999,29.500257 23.282999,29.385599 23.282999,27.893976 24.307062,26.633465 25.717823,26.213213L26.001564,26.143343 26.439465,22.908201z M25.594164,6.962996L10.989891,11.757046 10.982574,11.849259C10.963779,12.026639,10.935814,12.201424,10.899147,12.373173L10.896881,12.382581 26.821791,20.083639 28.28179,9.2974239 28.12504,9.2381914C27.074772,8.8124379,26.207533,8.0535914,25.667171,7.0996943z M34.637348,6.8116302L34.599276,6.8923512C33.894737,8.2938632,32.502018,9.3174334,30.841724,9.5606082L30.738474,9.5731842 29.162455,21.21555 33.69524,23.407539 33.705906,23.391473C34.750082,21.903184 36.639784,20.909001 38.797749,20.909001 40.441011,20.909001 41.929324,21.486123 43.006821,22.41919L43.020344,22.431472 51.760321,17.426437 51.737371,17.368303C51.521266,16.762437 51.403998,16.112631 51.403998,15.436536 51.403998,14.921415 51.472072,14.421554 51.600069,13.944759L51.681425,13.670171z M30.077951,0C32.588049,0,34.668222,1.7676992,35.036192,4.0752702L35.064489,4.2886443 52.961684,11.489869 53.021899,11.423252C54.161165,10.222043 55.804663,9.4679997 57.631995,9.4679992 61.070987,9.4680003 63.858998,12.139764 63.858998,15.436536 63.858998,18.733305 61.070987,21.405001 57.631995,21.405001L57.456546,21.40075 52.402265,39.080206 52.428996,39.108406C53.093061,39.879898 53.492,40.868822 53.492,41.946699 53.492,44.410421 51.407745,46.407999 48.837201,46.407999 48.033874,46.407999 47.278115,46.212923 46.618644,45.869505L46.615751,45.867823 35.872695,53.925859 35.950705,54.189234C36.069708,54.632677 36.132998,55.097586 36.132998,55.5767 36.132998,58.641745 33.540598,61.126001 30.342699,61.126001 27.144098,61.126001 24.550999,58.641745 24.550999,55.5767 24.550999,55.193407 24.591516,54.819208 24.668669,54.457815L24.711109,54.281561 8.605793,42.894129C8.5577812,42.860109,8.5120659,42.824305,8.4686737,42.786901L8.4553757,42.77429 8.3729744,42.833338C7.5921974,43.338846 6.6510086,43.634001 5.6380043,43.634001 2.935627,43.634001 0.74499893,41.535135 0.74499893,38.9454 0.74499893,36.841322 2.1911545,35.061296 4.1829567,34.467758L4.2889977,34.438908 4.2889977,16.456114 4.1295319,16.420828C1.7547989,15.835048 0,13.768469 0,11.309781 0,8.3958501 2.4649048,6.0340006 5.5053978,6.0339997 7.5959015,6.0340006 9.4142189,7.1503434 10.346516,8.7949429L10.425873,8.9434187 25.113558,4.1221313 25.119768,4.0752702C25.48749,1.7676992,27.566404,0,30.077951,0z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Risk">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M3.3500004,28.921999L16.410999,28.921999 16.410999,29.396999 16.410999,32.959999 16.410999,38.421999 25.514,38.421999 25.514,42.458 25.495,42.458 25.495,47.602999 34.698,47.602999 34.698,51.640999 25.495,51.640999 25.495,51.671 21.458,51.671 21.458,42.458 16.410999,42.458 12.453001,42.458 12.374001,42.458 12.374001,32.959999 3.3500004,32.959999z M54.794001,20.069L59.39695,23.324425 64,26.580851 59.39695,29.837375 54.794001,33.094 54.794001,30.650999 33.583,30.650999 33.583,22.698998 54.794001,22.698998z M14.7162,0.3409996L24.9141,0.3409996C25.97705,0.3409996,26.865667,1.1746159,27.071213,2.1986313L27.086924,2.3030968 27.124624,2.3546333C27.940995,3.4717503 29.881758,6.1571293 30.565413,7.3636971 30.565413,7.3636971 34.096944,13.338465 34.877442,15.061705L34.890623,15.092 40.170837,15.092C41.324416,15.092 42.257998,16.195044 42.257998,17.396999 42.257998,18.600256 41.324416,19.702 40.170837,19.702L33.450961,19.702C32.370606,19.702,31.482553,18.733671,31.375766,17.621177L31.37387,17.581701 29.230907,13.962816 22.261399,18.123934 26.40747,22.377669C27.150276,23.141019,27.230264,24.306093,26.654201,25.155003L26.643522,25.169146 26.636381,25.286112C26.628118,25.36014,26.616044,25.434453,26.600019,25.508835L24.851152,33.574084C24.592043,34.765377 23.418798,35.519273 22.228654,35.261475 21.03861,35.004976 20.280681,33.829283 20.53979,32.64039L22.288656,24.57524 22.309726,24.495231 17.488041,19.548167 17.480572,19.539678 17.253374,19.529043C16.366886,19.445599,15.589428,19.018761,15.078829,18.394262L15.074381,18.388281 12.282196,21.977999 12.216562,21.901865 12.1124,21.994324C11.720974,22.306216,11.1803,22.469,10.5833,22.469L2.1626606,22.469C0.96679688,22.469 0,21.817864 0,20.624998 0,19.428434 0.96679688,18.779999 2.1626606,18.779999L9.5252495,18.779999 9.3850002,18.617311 14.600033,11.548028C14.600033,11.548028,15.127697,11.125361,15.599133,10.798839L15.614553,10.78836 15.604,10.776026 24.149192,5.6036739 23.803184,4.9510002 14.7162,4.9510002C13.500099,4.9510002 12.514999,3.8623199 12.514999,2.6472778 12.514999,1.4298038 13.500099,0.3409996 14.7162,0.3409996z M34.6091,0C36.912666,0 38.780001,1.8671761 38.780001,4.1704998 38.780001,6.4739532 36.912666,8.3409996 34.6091,8.3409996 32.304335,8.3409996 30.437,6.4739532 30.437,4.1704998 30.437,1.8671761 32.304335,0 34.6091,0z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Reports">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M55.859353,59.282085C56.00929,59.285538,56.143475,59.392647,56.172002,59.547607L55.789193,65.810493C55.674588,66.466682,55.295579,65.802589,55.295579,65.802589L54.473962,64.431519C51.7422,68.327347 47.221295,70.881996 42.101273,70.881996 36.226228,70.881996 31.13625,67.53186 28.632329,62.638653 28.382323,62.158161 28.059378,61.686871 27.969502,61.146481 27.66084,59.337914 29.858891,59.01112 30.614098,59.864002 30.926646,60.216797 31.299044,60.827484 31.563321,61.306576 33.567227,65.081306 37.533479,67.649055 42.101273,67.649055 46.122369,67.649055 49.669251,65.651596 51.828099,62.602253L50.338567,62.323559C50.338567,62.323559,49.473847,62.210258,50.067658,61.849567L55.794392,59.287113C55.816193,59.283215,55.837933,59.28159,55.859353,59.282085z M40.764077,45.717999L43.468282,45.717999 43.468282,47.945969C44.940877,48.043633,45.939504,48.464172,46.57486,48.781933L46.850839,48.919876 45.9889,51.849625 45.591931,51.649216C44.965676,51.336708 43.994244,50.849598 42.497052,50.849598 41.307038,50.849598 40.589589,51.340611 40.589589,52.155632 40.589589,52.883549 41.269242,53.390064 43.278195,54.159683 46.150391,55.237812 47.377004,56.67535 47.377004,58.964413 47.377004,61.232674 45.806714,62.99192 43.348592,63.516731L43.348592,66.047997 40.616887,66.047997 40.616887,63.706738C39.216088,63.607735,37.791692,63.200325,36.902394,62.633808L36.672002,62.482704 37.5286,59.474827 37.945279,59.724831C38.568932,60.09864 39.856541,60.726257 41.489224,60.726257 42.825127,60.726257 43.684468,60.136341 43.684468,59.230118 43.684468,58.503498 43.274297,57.873283 41.294038,57.157166 39.122395,56.362843 36.898515,55.19091 36.898515,52.516441 36.898515,50.313221 38.372449,48.646427 40.764077,48.112602z M42.010037,40.691002C47.882275,40.691002 52.973134,44.039906 55.477063,48.93552 55.725755,49.413418 56.051247,49.888626 56.139745,50.42767 56.447038,52.237579 54.249299,52.563072 53.493916,51.708893 53.181527,51.354805 52.809136,50.742821 52.546143,50.264954 50.543599,46.492958 46.577512,43.922722 42.010037,43.922722 37.98795,43.922722 34.44249,45.919983 32.28362,48.96946L33.773167,49.248013C33.773167,49.248013,34.636472,49.363979,34.044091,49.72456L28.316394,52.28698C28.141854,52.318275,27.969985,52.199879,27.940001,52.026585L28.322789,45.767639C28.43744,45.104939,28.815036,45.774227,28.815036,45.774227L29.632752,47.140041C32.366937,43.245621,36.88775,40.691002,42.010037,40.691002z M21.804616,0L44.531026,0C48.257512,0,51.280999,3.0222199,51.280999,6.7460904L51.280999,38.274937 50.537671,37.898952C49.215222,37.269638,47.812577,36.778652,46.348977,36.444992L45.879922,36.344151 45.879922,6.7460904C45.879922,6.0039101,45.273122,5.3972201,44.531026,5.3972206L22.158713,5.3972206 21.794215,17.167999C21.794215,17.167999,21.325417,24.9519,12.747249,24.0117L5.3957184,23.8125 5.3957184,57.253899C5.3957189,57.998699,6.0024966,58.602901,6.7473038,58.602901L21.820422,58.602901 21.860354,58.884754C22.115357,60.533066,22.574946,62.114872,23.212727,63.604115L23.393945,64 6.7473038,64C3.0207885,64,2.9307267E-07,60.980499,0,57.253899L0,23.0051 2.6718498,20.1863 2.6743804,20.1094 16.677035,5.3972206 16.637936,5.3972206 12.89565,9.3464394 16.817534,5.1914101 16.872334,5.1914101 16.997233,5.0612788 17.007634,5.0612788z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Spreads">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="F1M70.546875,54.3758316040039L77.484375,54.3758316040039 77.484375,89.0633316040039 70.546875,89.0633316040039 70.546875,54.3758316040039z M48.5625,54.3758316040039L65.90625,71.7195816040039 48.5625,89.0633316040039 48.5625,75.1883316040039 8.109375,75.1883316040039 8.109375,68.2508316040039 48.5625,68.2508316040039 48.5625,54.3758316040039z M37.03125,19.6883316040039L37.03125,33.5633316040039 77.484375,33.5633316040039 77.484375,40.5008316040039 37.03125,40.5008316040039 37.03125,54.3758316040039 19.6875,37.0320816040039 37.03125,19.6883316040039z M8.109375,19.6883316040039L15.046875,19.6883316040039 15.046875,54.3758316040039 8.109375,54.3758316040039 8.109375,19.6883316040039z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Depth">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M0,27.006001L37.806999,27.006001 37.806999,31.806 0,31.806z M0,18.003L37.806999,18.003 37.806999,22.806 0,22.806z M0,8.9999999L37.806999,8.9999999 37.806999,13.803 0,13.803z M0,0L37.806999,0 37.806999,4.8030009 0,4.8030009z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Trades">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M50.14375,33.389126C50.416863,33.394688,50.653496,33.587773,50.705998,33.864617L50.015995,45.114388C49.810295,46.291462,49.130394,45.097489,49.130394,45.097489L47.65659,42.640538C42.747776,49.635197 34.633152,54.221001 25.433924,54.221001 14.884193,54.221001 5.7437552,48.204125 1.2449617,39.419205 0.80087067,38.552021 0.21358696,37.705738 0.052086769,36.736958 -0.49735315,33.490925 3.4507786,32.901036 4.8049124,34.432404 5.3674143,35.067692 6.034036,36.16407 6.5079177,37.026051 10.106778,43.799416 17.2321,48.413819 25.433924,48.413819 32.656544,48.413819 39.026364,44.826695 42.903977,39.351506L40.229367,38.854115C40.229367,38.854115,38.677464,38.647118,39.742466,37.996033L50.024895,33.398526C50.064972,33.391365,50.104733,33.388333,50.14375,33.389126z M23.030291,9.0310004L27.889918,9.0310004 27.889918,13.028299C30.539786,13.205498,32.324932,13.958096,33.464161,14.528294L33.964176,14.775793 32.417435,20.038878 31.706417,19.68068C30.579987,19.11958 28.839241,18.244583 26.149073,18.244583 24.006916,18.244583 22.723183,19.122181 22.723183,20.590876 22.723183,21.894272 23.943314,22.804369 27.551308,24.187165 32.706444,26.124659 34.911,28.702853 34.911,32.817341 34.911,36.892929 32.090527,40.05172 27.673611,40.989117L27.673611,45.540001 22.767485,45.540001 22.767485,41.330414C20.252919,41.155815,17.695551,40.424118,16.101811,39.404721L15.683999,39.137619 17.221739,33.731438 17.969059,34.180634C19.088988,34.851235 21.402748,35.97873 24.340325,35.97873 26.734886,35.97873 28.276728,34.921635 28.276728,33.291336 28.276728,31.986641 27.547409,30.853846 23.986016,29.57255 20.083815,28.144253 16.095511,26.04406 16.095511,21.239174 16.095511,17.280985 18.737379,14.291395 23.030291,13.329098z M25.268765,0C35.819447,2.7347414E-07 44.961449,6.0155495 49.458798,14.804573 49.902695,15.669173 50.490094,16.516972 50.651287,17.48427 51.198281,20.734265 47.255726,21.318962 45.901341,19.789065 45.336346,19.153567 44.669552,18.051968 44.19566,17.19517 40.5957,10.421881 33.473275,5.8072398 25.268765,5.8072393 18.047545,5.8072398 11.678013,9.3918336 7.8003562,14.867073L10.474627,15.367072C10.474627,15.367072,12.026909,15.574172,10.962921,16.223872L0.67933281,20.826762C0.36037083,20.880062,0.057029126,20.669165,0.00099972012,20.354063L0.69093342,9.1118043C0.89552094,7.9296158,1.5738537,9.124924,1.5738539,9.124924L3.0452772,11.583379C7.9566038,4.584462,16.073666,2.7347414E-07,25.268765,0z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Sheets">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M22.1575,13.53399L21.794301,25.304994C21.794301,25.304994,21.3242,33.088695,12.747401,32.148692L5.3958107,31.949492 5.3958107,65.390895C5.3958107,66.135493,6.0026208,66.7391,6.7473808,66.7391L44.5313,66.7391C45.2734,66.7391,45.8802,66.135493,45.8802,65.390895L45.8802,14.883091C45.8802,14.140891,45.2734,13.53399,44.5313,13.53399z M21.804701,8.1369996L44.5313,8.1369996C48.257802,8.1370001,51.279999,11.15899,51.279999,14.883091L51.279999,65.390895C51.279999,69.117496,48.257802,72.136996,44.5313,72.136996L6.7473808,72.136996C3.0208105,72.136996,5.8073994E-07,69.117496,0,65.390895L0,31.142392 2.6718808,28.322993 2.6745006,28.246392 16.6771,13.53399 16.638001,13.53399 12.8945,17.483192 16.816401,13.328391 16.872401,13.328391 16.9961,13.19799 17.0078,13.19799z M30.352,0L55.255002,0 60.581002,0 60.581002,4.747 60.581002,55.207999 55.255002,55.207999 55.255002,4.747 30.352,4.747z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Surface">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="m 127.71875,0.03125 c 1.96953,0.68706766 3.77873,1.728511 5.53125,2.84375 5.68444,-0.1664634 11.35972,0.1351305 17.03125,0.46875 -1.73194,-1.1492389 -3.57847,-2.1023993 -5.53125,-2.8125 -5.6651,-0.45913017 -11.34995,-0.58354857 -17.03125,-0.5 z m -4.25,0.125 c -5.70361,0.2336956 -11.37548,0.81394241 -17.03125,1.5625 1.95847,0.6900238 3.78385,1.7005175 5.53125,2.8125 C 117.61899,3.7613446 123.30363,3.2513106 129,3 127.28567,1.8094865 125.39256,0.94326338 123.46875,0.15625 z M 149,0.90625 c 1.96418,0.6694319 3.78573,1.7017145 5.53125,2.8125 5.71276,0.5944911 11.3908,1.4529283 17.03125,2.53125 C 169.85207,5.0455955 167.95676,4.1939604 166.03125,3.40625 160.39919,2.2891664 154.71106,1.4856327 149,0.90625 z m -46.8125,1.4375 C 96.464888,3.3096165 90.767826,4.4520829 85.15625,5.9375 87.106815,6.6380546 88.941831,7.6391195 90.6875,8.75 96.310308,7.3225043 101.99157,6.1139557 107.71875,5.1875 106.00019,4.0048872 104.11138,3.1307925 102.1875,2.34375 z m 32.46875,1.5 c 2.00275,1.4247295 3.75993,3.1494432 5.53125,4.84375 5.68351,-0.080003 11.36274,0.089238 17.03125,0.5 -1.73044,-1.7529327 -3.58348,-3.3699033 -5.53125,-4.875 -5.66508,-0.4641114 -11.35053,-0.55229 -17.03125,-0.46875 z m -4.28125,0.125 C 124.103,4.2953783 119.00738,4.7504024 113.34375,5.5 c 1.99941,1.4415661 3.79164,3.1353901 5.53125,4.875 5.65135,-0.7706117 11.33386,-1.2798945 17.03125,-1.53125 -1.66132,-1.8295873 -3.58341,-3.3698478 -5.53125,-4.875 z m 39.9375,0.34375 c 1.96346,0.6759081 3.78484,1.7011488 5.53125,2.8125 5.74468,1.2638733 11.4064,2.8505892 17.03125,4.5625 -1.72987,-1.168721 -3.60534,-2.0558794 -5.53125,-2.84375 C 181.73627,7.0795573 176.0521,5.5785891 170.3125,4.3125 z m -14.375,0.375 c 1.9717,1.4743322 3.79243,3.136185 5.53125,4.875 5.71797,0.542825 11.39215,1.453188 17.03125,2.53125 -1.6913,-1.79287 -3.58414,-3.3704114 -5.53125,-4.875 C 167.33901,6.0657565 161.63964,5.35834 155.9375,4.6875 z m -46.84375,1.46875 c -5.72932,0.9221197 -11.402883,2.1554082 -17.03125,3.5625 1.99347,1.451281 3.791265,3.135015 5.53125,4.875 5.62016,-1.451631 11.30209,-2.635724 17.03125,-3.5625 -1.69439,-1.7852366 -3.54058,-3.4272419 -5.53125,-4.875 z M 80.90625,7.0625 c -5.768034,1.593637 -11.417957,3.561289 -17.03125,5.625 1.930762,0.74325 3.819326,1.676529 5.53125,2.84375 5.568779,-2.194858 11.293752,-3.937501 17.03125,-5.625 C 84.697913,8.7506893 82.833288,7.8508336 80.90625,7.0625 z m 96.3125,1.03125 c 2.01998,1.5283684 3.9853,3.332564 5.53125,4.875 5.75001,1.241656 11.41327,2.827536 17.03125,4.5625 -1.70386,-1.770251 -3.54256,-3.428678 -5.53125,-4.875 -5.59469,-1.822363 -11.3081,-3.215876 -17.03125,-4.5625 z M 141.5625,10.1875 c 1.98812,2.171216 3.79154,4.502672 5.53125,6.875 5.68335,-0.07635 11.3631,0.08322 17.03125,0.5 -1.70296,-2.41177 -3.58181,-4.690977 -5.53125,-6.90625 -5.82598,-0.440889 -11.98586,-0.537879 -17.03125,-0.46875 z m -4.25,0.125 c -5.69916,0.210199 -11.37949,0.783222 -17.03125,1.53125 1.96864,2.199545 3.78641,4.526916 5.53125,6.90625 5.65033,-0.779208 11.33395,-1.279899 17.03125,-1.53125 -1.7175,-2.400101 -3.58197,-4.691155 -5.53125,-6.90625 z m -49.5,0.5625 c -5.756209,1.627414 -11.443914,3.488666 -17.03125,5.625 1.986252,1.443163 3.797302,3.109802 5.53125,4.84375 C 81.914775,19.260145 87.586406,17.35867 93.34375,15.75 91.661607,13.944308 89.760517,12.380286 87.8125,10.875 z m 75.03125,0.15625 c 1.99219,2.183637 3.78522,4.525295 5.53125,6.90625 6.28774,0.687745 11.37979,1.450824 17.03125,2.53125 -1.68349,-2.427307 -3.58184,-4.691013 -5.53125,-6.90625 -5.63506,-1.107989 -11.31933,-1.943258 -17.03125,-2.53125 z M 116,12.5 c -5.73799,0.878008 -11.39825,2.174659 -17.03125,3.5625 2.03956,2.148921 3.76403,4.56042 5.5625,6.90625 5.61994,-1.453285 11.29946,-2.648737 17.03125,-3.5625 C 119.8176,17.015603 118.00451,14.67882 116,12.5 z m -56.40625,1.84375 c -5.792814,2.278458 -11.419014,4.940887 -17.03125,7.625 1.967004,0.694041 3.777949,1.728013 5.53125,2.84375 5.58415,-2.744879 11.247417,-5.328478 17.03125,-7.625 -1.725645,-1.141384 -3.572016,-2.162277 -5.53125,-2.84375 z M 184.125,14.4375 c 2.02152,2.155746 3.78605,4.526439 5.53125,6.90625 5.75343,1.228401 11.41327,2.827536 17.03125,4.5625 C 205.01516,23.467587 203.10649,21.216187 201.15625,19 195.55578,17.209943 189.86603,15.703904 184.125,14.4375 z m -89.40625,2.78125 c -5.757378,1.612569 -11.421181,3.531225 -17.03125,5.59375 2.013414,2.164294 3.785804,4.526096 5.53125,6.90625 C 88.826875,27.652066 94.492577,25.733692 100.25,24.125 98.572893,21.691803 96.66853,19.434409 94.71875,17.21875 z m -28.1875,0.9375 c -5.809395,2.239258 -11.434051,4.908712 -17.03125,7.625 1.996367,1.448111 3.791108,3.134858 5.53125,4.875 C 60.587618,27.843081 66.305928,25.370353 72.0625,23 70.325483,21.271546 68.515383,19.599256 66.53125,18.15625 z m 81.9375,0.90625 C 150.4643,21.946692 152.27759,24.946629 154,28 c 5.68473,-0.186058 11.35951,0.135118 17.03125,0.46875 -1.70966,-3.061344 -3.58704,-6.02118 -5.53125,-8.9375 -5.66815,-0.423667 -11.34913,-0.552311 -17.0Line truncated
|
||||
<GeometryDrawing.Pen>
|
||||
<Pen Brush="White" Thickness="2" />
|
||||
</GeometryDrawing.Pen>
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Analytics">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M17.9349,52.632801L13.5176,60.285198 22.3529,60.285198z M4.1452103,50.3647L4.1452103,52.622398 59.855499,52.622398 59.855499,50.3647z M17.062819,7.9790001L21.601147,36.012657 25.301687,19.424307 28.011845,37.14275 33.26696,12.41387 36.744106,37.14275 40.357449,27.929331 43.067604,37.14275 46.822746,19.489307 50.89698,37.14275 56.015999,23.676769 56.015999,42.608997 8.1710005,42.608997 8.1710005,23.135174 13.86557,31.999594z M4.1452103,3.8098803L4.1452103,45.6199 59.855499,45.6199 59.855499,3.8098803z M0,0L64,0 64,64 0,64z"/>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Orders">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M50.14375,33.389126C50.416863,33.394688,50.653496,33.587773,50.705998,33.864617L50.015995,45.114388C49.810295,46.291462,49.130394,45.097489,49.130394,45.097489L47.65659,42.640538C42.747776,49.635197 34.633152,54.221001 25.433924,54.221001 14.884193,54.221001 5.7437552,48.204125 1.2449617,39.419205 0.80087067,38.552021 0.21358696,37.705738 0.052086769,36.736958 -0.49735315,33.490925 3.4507786,32.901036 4.8049124,34.432404 5.3674143,35.067692 6.034036,36.16407 6.5079177,37.026051 10.106778,43.799416 17.2321,48.413819 25.433924,48.413819 32.656544,48.413819 39.026364,44.826695 42.903977,39.351506L40.229367,38.854115C40.229367,38.854115,38.677464,38.647118,39.742466,37.996033L50.024895,33.398526C50.064972,33.391365,50.104733,33.388333,50.14375,33.389126z M23.030291,9.0310004L27.889918,9.0310004 27.889918,13.028299C30.539786,13.205498,32.324932,13.958096,33.464161,14.528294L33.964176,14.775793 32.417435,20.038878 31.706417,19.68068C30.579987,19.11958 28.839241,18.244583 26.149073,18.244583 24.006916,18.244583 22.723183,19.122181 22.723183,20.590876 22.723183,21.894272 23.943314,22.804369 27.551308,24.187165 32.706444,26.124659 34.911,28.702853 34.911,32.817341 34.911,36.892929 32.090527,40.05172 27.673611,40.989117L27.673611,45.540001 22.767485,45.540001 22.767485,41.330414C20.252919,41.155815,17.695551,40.424118,16.101811,39.404721L15.683999,39.137619 17.221739,33.731438 17.969059,34.180634C19.088988,34.851235 21.402748,35.97873 24.340325,35.97873 26.734886,35.97873 28.276728,34.921635 28.276728,33.291336 28.276728,31.986641 27.547409,30.853846 23.986016,29.57255 20.083815,28.144253 16.095511,26.04406 16.095511,21.239174 16.095511,17.280985 18.737379,14.291395 23.030291,13.329098z M25.268765,0C35.819447,2.7347414E-07 44.961449,6.0155495 49.458798,14.804573 49.902695,15.669173 50.490094,16.516972 50.651287,17.48427 51.198281,20.734265 47.255726,21.318962 45.901341,19.789065 45.336346,19.153567 44.669552,18.051968 44.19566,17.19517 40.5957,10.421881 33.473275,5.8072398 25.268765,5.8072393 18.047545,5.8072398 11.678013,9.3918336 7.8003562,14.867073L10.474627,15.367072C10.474627,15.367072,12.026909,15.574172,10.962921,16.223872L0.67933281,20.826762C0.36037083,20.880062,0.057029126,20.669165,0.00099972012,20.354063L0.69093342,9.1118043C0.89552094,7.9296158,1.5738537,9.124924,1.5738539,9.124924L3.0452772,11.583379C7.9566038,4.584462,16.073666,2.7347414E-07,25.268765,0z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Admin">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M18.660349,20.393C14.879011,20.393 11.806,23.468643 11.806,27.249899 11.806,31.026154 14.879011,34.103001 18.660349,34.103001 22.444386,34.103001 25.519998,31.026154 25.519998,27.249899 25.519998,23.468643 22.444386,20.393 18.660349,20.393z M50.07317,8.7561953C49.408178,8.7706149 48.735172,8.9156297 48.090648,9.2053407 45.51765,10.359123 44.36155,13.394207 45.51765,15.96858 46.671449,18.541552 49.709146,19.691384 52.283444,18.540251 54.856342,17.378819 56.012442,14.352736 54.856342,11.771862 53.990993,9.8450501 52.068145,8.7129386 50.07317,8.7561953z M15.597473,8.6000007L21.868224,8.6000007 22.20032,14.327933 22.20032,14.531032C23.236712,14.816134,24.218506,15.221134,25.133898,15.736836L25.253695,15.615635 29.675461,11.900828 34.111725,16.338337 30.296556,20.624846 30.165057,20.758946C30.683352,21.674349,31.08955,22.659951,31.378649,23.696451L31.544045,23.696451 37.293999,24.196451 37.293999,30.468565 31.566147,30.803267 31.378649,30.803267C31.08955,31.836972,30.683352,32.821373,30.165057,33.736874L30.280955,33.853974 33.993225,38.274582 29.558261,42.709496 25.271895,38.896988 25.133898,38.758988C24.218506,39.274586,23.236712,39.678185,22.20032,39.963387L22.20032,40.146988 21.868224,45.897 15.597473,45.897 15.093578,40.166485 15.093578,39.959488C14.064985,39.671688,13.084595,39.265385,12.174301,38.749787L12.040102,38.881485 7.7381763,42.709496 3.3033104,38.274582 6.9999428,33.869675 7.1522102,33.721176C6.6379356,32.807072,6.2343292,31.83057,5.9464817,30.803267L5.7499523,30.803267 0,30.468565 0,24.196451 5.7278118,23.696451 5.9464817,23.696451C6.2343292,22.665051,6.6379356,21.687248,7.1522102,20.775946L7.0128822,20.640444 3.1874237,16.338337 7.6209869,11.900828 12.027203,15.600036 12.174301,15.744536C13.084595,15.231535,14.064985,14.825334,15.093578,14.537533L15.093578,14.350033z M52.888157,0L57.259197,1.6601361 56.091211,5.7941664 56.035212,5.937414C56.665401,6.3971274,57.240894,6.9413698,57.753986,7.5533617L57.878984,7.4947021 61.949226,6.0845716 63.865797,10.35405 60.071657,12.331821 59.933659,12.393021C60.053354,13.18731,60.075457,13.977598,60.003952,14.758987L60.12245,14.803286 63.999998,16.682059 62.337223,21.053194 58.253977,19.771912 58.12108,19.721113C57.656389,20.352705,57.112095,20.928097,56.496105,21.441189L56.549604,21.556988 57.962284,25.627228 53.691446,27.541302 51.712375,23.744456 51.653774,23.615557C50.862186,23.736756,50.066597,23.760056,49.285309,23.687157L49.241009,23.800455 47.366036,27.678 42.991099,26.017823 44.277584,21.928082 44.325682,21.799183C43.696789,21.334391,43.121297,20.784899,42.607106,20.171606L42.487208,20.225006 38.469066,21.753483 36.553693,17.486847 40.297138,15.390477 40.441637,15.327978C40.321941,14.53499,40.299839,13.744601,40.372736,12.963413L40.24384,12.915114 36.321998,11.158738 37.984774,6.7851217 42.113513,7.9530752 42.263212,8.009104C42.728206,7.3840535,43.269797,6.8124616,43.879186,6.3033789L43.82189,6.1652506 42.29051,2.1496897 46.562749,0.22918414 48.656518,3.977782 48.722916,4.1289099C49.511906,4.0091622,50.299695,3.9843827,51.075585,4.0534113L51.127785,3.9218233z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Eye">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M33.597977,10.759002C37.946865,10.759002 41.485962,14.285001 41.485962,18.649 41.485962,23 37.946865,26.535 33.597977,26.535 29.23909,26.535 25.709992,23 25.709992,18.649 25.709992,17.784 25.849955,16.953001 26.109888,16.174002 26.779719,16.881001 27.70948,17.327002 28.759213,17.327002 30.778696,17.327002 32.418278,15.691001 32.418278,13.668001 32.418278,12.663001 32.008381,11.748001 31.348551,11.087002 32.058369,10.876001 32.818176,10.759002 33.597977,10.759002z M33.606682,4.3679962C25.92741,4.3679957 19.698065,10.594956 19.698065,18.27293 19.698065,25.953894 25.92741,32.177862 33.606682,32.177862 41.295838,32.177862 47.515175,25.953894 47.515175,18.27293 47.515175,10.594956 41.295838,4.3679957 33.606682,4.3679962z M34.867642,1.546141E-09C36.890393,2.6508449E-05 58.705193,0.41938579 68.893006,18.299923 68.893006,18.299923 57.1442,36.139837 34.44656,34.768854 34.44656,34.768854 14.428583,36.59984 0,18.299923 0,18.299923 9.0791523,0.4590019 34.716553,0.0010111886 34.716553,0.0010114873 34.768162,-1.4442128E-06 34.867642,1.546141E-09z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Coins">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M3.3390064,47.374004L26.00104,47.374004C26.17504,47.881321 26.361041,48.388939 26.575041,48.889757 27.610043,51.333344 29.086045,53.523722 30.968048,55.406689 31.135048,55.573593 31.309048,55.733997 31.476048,55.894005L3.3390064,55.894005C1.4960022,55.894005,0,54.398552,0,52.555387L0,50.712622C0,48.869556,1.4960022,47.374004,3.3390064,47.374004z M8.6740417,35.422004L25.713049,35.422004C25.220049,37.198282 24.972049,39.03446 24.972049,40.910738 24.972049,41.932125 25.046049,42.947113 25.193049,43.942001L8.6740417,43.942001C6.8310413,43.942001,5.3350391,42.44632,5.3350391,40.60354L5.3350391,38.760464C5.3350391,36.917886,6.8310413,35.422004,8.6740417,35.422004z M44.333998,28.91725L44.333998,31.014374C42.649975,31.25297 41.419993,31.901375 40.634958,32.963784 39.852975,34.026392 39.458993,35.225903 39.458993,36.554114 39.458993,37.565422 39.677987,38.455833 40.118966,39.221838 40.555979,39.98354 41.125986,40.573252 41.829967,40.99555 42.53297,41.425255 43.508984,41.850658 44.758986,42.28466 46.149979,42.776463 47.048965,43.183067 47.451004,43.502871 47.852982,43.819578 48.055986,44.291979 48.055986,44.913282 48.055986,45.51469 47.852982,46.022491 47.451004,46.448399 47.048965,46.874603 46.41597,47.0849 45.560011,47.0849 43.728954,47.0849 42.649975,46.093193 42.325999,44.11248L38.810005,45.030586C39.521005,48.178713,41.360971,49.909225,44.333998,50.214329L44.333998,52.91765 46.607986,52.91765 46.607986,50.202824C48.391985,50.015223 49.755999,49.390217 50.701008,48.33131 51.646992,47.273104 52.118979,45.952789 52.118979,44.36648 52.118979,43.331467 51.888998,42.429262 51.431965,41.65526 50.970966,40.886349 50.360981,40.276442 49.59096,39.839542 48.826006,39.401939 47.763016,38.933239 46.41597,38.440628 45.185011,37.991329 44.384962,37.612823 44.008986,37.307821 43.633984,36.999621 43.446972,36.561912 43.446972,35.991115 43.446972,35.429106 43.641979,34.952402 44.032972,34.558096 44.419996,34.163196 44.935011,33.967896 45.576002,33.967896 46.85701,33.967896 47.797989,34.850602 48.407976,36.612617L51.545002,35.327107C50.795002,32.756988,49.14699,31.319575,46.607986,31.015068L46.607986,28.91725z M3.3390026,23.690004L34.347016,23.690004C33.139015,24.471167 32.010015,25.379241 30.975014,26.414426 29.286014,28.103764 27.917013,30.053523 26.909013,32.203998L3.3390026,32.203998C1.4960022,32.203998,0,30.708376,0,28.865226L0,27.028776C0,25.185925,1.4960022,23.690004,3.3390026,23.690004z M45.470961,22.415C55.686974,22.415 63.96701,30.694868 63.959991,40.924053 63.959991,51.140034 55.680992,59.419998 45.464003,59.419998 41.41096,59.419998 37.659003,58.110893 34.613955,55.900974 31.696961,53.777658 29.412962,50.819633 28.130979,47.380901 27.716977,46.285692 27.408993,45.137482 27.215939,43.948774 27.055966,42.96047 26.96899,41.952459 26.968991,40.917248 26.96899,39.007633 27.255978,37.164823 27.796994,35.428709 28.150998,34.306995 28.597959,33.23199 29.145994,32.210482 31.195984,28.371248 34.553958,25.346428 38.626961,23.723612 40.743967,22.882503 43.053967,22.415 45.470961,22.415z M3.3390045,11.952L38.153052,11.952C39.996056,11.952,41.492057,13.448001,41.492057,15.290001L41.492057,17.133002C41.492057,18.976003,39.996056,20.472003,38.153052,20.472004L3.3390045,20.472004C1.4960022,20.472003,0,18.976003,0,17.133002L0,15.290001C0,13.448001,1.4960022,11.952,3.3390045,11.952z M8.6735134,0L43.487543,0C45.330534,0,46.826027,1.4958782,46.826027,3.3386841L46.826027,5.1814384C46.826027,7.0245428,45.330534,8.5200005,43.487543,8.5200005L8.6735134,8.5200005C6.8304424,8.5200005,5.3350277,7.0245428,5.3350277,5.1814384L5.3350277,3.3386841C5.3350277,1.4958782,6.8304424,0,8.6735134,0z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="BombIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black"
|
||||
Geometry="M14.200889,0C15.299896,0 16.59991,0.50000046 17.998923,1.4989944 19.597936,2.5990016 20.397944,4.5970043 21.196948,6.4960083 22.495954,9.6950015 23.495961,11.693005 26.093989,11.594006 26.793992,11.594006 27.293996,12.093014 27.293996,12.693005 27.293996,13.393002 26.793992,13.892012 26.193997,13.892012 21.896949,14.092009 20.297938,10.394007 19.097932,7.3960032 18.398921,5.6969966 17.698918,4.0979957 16.699916,3.3979983 15.899907,2.8979978 14.600901,1.9989949 13.700884,2.4989952 12.701883,2.9980039 12.30187,5.0970048 12.20188,6.3960022L13.900898,6.2959961C14.600901,6.2959961,15.100904,6.6960057,15.199904,7.3960032L15.399903,9.6950015C16.799909,10.19401 18.098929,10.894008 19.197938,11.893001 23.995965,15.991012 24.494979,23.287025 20.397944,28.084026 16.099906,32.78203 8.8038569,33.381029 4.0068054,29.184019 -0.79122243,25.086023 -1.3902263,17.79001 2.8067985,12.993009 3.9068136,11.693005 5.405819,10.594005 7.0048309,9.9940128L6.9048391,7.9960098C6.9048391,7.3960032,7.3048363,6.7959966,8.0038471,6.6960057L9.9028645,6.5959992C9.9028645,5.3970083 10.302861,1.6989915 12.701883,0.50000046 13.10188,0.099990942 13.700884,0 14.200889,0z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
|
||||
<DrawingImage x:Key="CancelMail">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
@@ -283,7 +297,7 @@ M0,0L63.999001,0 63.999001,48.792999 0,48.792999z">
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
|
||||
<DrawingImage x:Key="Wrench">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
@@ -324,6 +338,30 @@ M0,0L63.999001,0 63.999001,48.792999 0,48.792999z">
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Add">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M12.099998,0L19.799995,0 19.799995,12.1 32,12.1 32,19.799996 19.900002,19.799996 19.900002,31.999999 12.199997,31.999999 12.199997,19.900003 0,19.900003 0,12.199999 12.099998,12.199999z"/>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="AddEncircled">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Transparent" Geometry="M14.100037,6L14.100037,14.099998 6,14.099998 6,18 14.100037,18 14.100037,26.099998 18,26.099998 18,18 26,18 26,14.099998 17.900024,14.099998 17.900024,6z M16,0C24.800049,0 32,7.1999969 32,16 32,24.800003 24.800049,32 16,32 7.2000122,32 0,24.800003 0,16 0,7.1999969 7.2000122,0 16,0z">
|
||||
<GeometryDrawing.Pen>
|
||||
<Pen Thickness="2" Brush="Black"/>
|
||||
</GeometryDrawing.Pen>
|
||||
</GeometryDrawing>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Beaker">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
@@ -382,7 +420,7 @@ M0,0L63.999001,0 63.999001,48.792999 0,48.792999z">
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
|
||||
<DrawingImage x:Key="Spawn">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
@@ -403,7 +441,7 @@ M0,0L63.999001,0 63.999001,48.792999 0,48.792999z">
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
|
||||
<DrawingImage x:Key="Filter">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
@@ -425,159 +463,156 @@ M0,0L63.999001,0 63.999001,48.792999 0,48.792999z">
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="CancelIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<GeometryDrawing>
|
||||
<GeometryDrawing.Pen>
|
||||
<Pen Brush="Black" Thickness="1" />
|
||||
</GeometryDrawing.Pen>
|
||||
<GeometryDrawing.Geometry>
|
||||
<GeometryGroup>
|
||||
<EllipseGeometry Center="3.5,3.5" RadiusX="7" RadiusY="7" />
|
||||
<LineGeometry StartPoint="0.5,0.5" EndPoint="7,7" />
|
||||
<LineGeometry StartPoint="0.5,7" EndPoint="7,0.5" />
|
||||
</GeometryGroup>
|
||||
</GeometryDrawing.Geometry>
|
||||
</GeometryDrawing>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
<DrawingImage.Drawing>
|
||||
<GeometryDrawing>
|
||||
<GeometryDrawing.Pen>
|
||||
<Pen Brush="Black" Thickness="1" />
|
||||
</GeometryDrawing.Pen>
|
||||
<GeometryDrawing.Geometry>
|
||||
<GeometryGroup>
|
||||
<EllipseGeometry Center="3.5,3.5" RadiusX="7" RadiusY="7" />
|
||||
<LineGeometry StartPoint="0.5,0.5" EndPoint="7,7" />
|
||||
<LineGeometry StartPoint="0.5,7" EndPoint="7,0.5" />
|
||||
</GeometryGroup>
|
||||
</GeometryDrawing.Geometry>
|
||||
</GeometryDrawing>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="ModifyIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black"
|
||||
<DrawingImage x:Key="ModifyIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black"
|
||||
Geometry="M14.594219,18.460856C14.849983,18.450356,15.109747,18.537357,15.312757,18.724861L20.011005,23.059948 15.413763,27.330033C15.220753,27.510036 14.97674,27.598038 14.732727,27.598038 14.464713,27.598038 14.196698,27.491035 14.000689,27.279032 13.624668,26.874024 13.64767,26.241012 14.051691,25.866004L15.992919,24.062022 7.989006,24.062022C7.4370065,24.062022 6.9890068,23.614022 6.989007,23.062022 6.9890068,22.510022 7.4370065,22.062022 7.989006,22.062022L15.97902,22.062022 13.955686,20.194891C13.549664,19.820883 13.524663,19.187871 13.899683,18.781862 14.086693,18.579358 14.338456,18.471356 14.594219,18.460856z M9.3027391,11.460688C9.5584774,11.470064 9.8107157,11.577314 9.9987097,11.780311 10.374683,12.184289 10.351689,12.817263 9.9477019,13.193288L8.0072365,14.996028 16.01,14.996028C16.562,14.996028 17.01,15.444028 17.01,15.996028 17.01,16.548028 16.562,16.996028 16.01,16.996028L8.0192065,16.996028 10.043705,18.863081C10.448685,19.238069 10.474684,19.870067 10.099703,20.276059 9.9037132,20.490042 9.6347136,20.598009 9.364738,20.598009 9.1227455,20.598009 8.8797612,20.511037 8.6867623,20.333064L3.9889941,15.998187 8.5857692,11.728311C8.7877626,11.53981,9.0470009,11.451312,9.3027391,11.460688z M7,3.4140005L3.3829875,7.0310125 7,7.0310125z M9.0000005,2L9.0000005,9.0310111 2,9.0310111 2,30 22,30 22,2z M7.586,0L22,0C23.103001,0,24,0.89700031,24,2L24,30C24,31.103001,23.103001,32,22,32L2,32C0.89700031,32,2.3841858E-07,31.103001,0,30L0,7.586z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="Pencil">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M397.736,78.378c6.824,0,12.358-5.533,12.358-12.358V27.027C410.094,12.125,397.977,0,383.08,0H121.641c-3.277,0-6.42,1.303-8.739,3.62L10.527,105.995c-2.317,2.317-3.62,5.461-3.62,8.738v370.239C6.908,499.875,19.032,512,33.935,512h349.144c14.897,0,27.014-12.125,27.014-27.027V296.289c0.001-6.824-5.532-12.358-12.357-12.358c-6.824,0-12.358,5.533-12.358,12.358v188.684c0,1.274-1.031,2.311-2.297,2.311H33.936c-1.274,0-2.311-1.037-2.311-2.311v-357.88h75.36c14.898,0,27.016-12.12,27.016-27.017V24.716H383.08c1.267,0,2.297,1.037,2.297,2.311V66.02C385.377,72.845,390.911,78.378,397.736,78.378z M109.285,100.075c0,1.269-1.032,2.301-2.3,2.301H49.107l60.178-60.18V100.075z"/>
|
||||
<GeometryDrawing Brush="Black" Geometry="M492.865,100.396l-14.541-14.539c-16.304-16.304-42.832-16.302-59.138,0L303.763,201.28H103.559c-6.825,0-12.358,5.533-12.358,12.358c0,6.825,5.533,12.358,12.358,12.358h175.488l-74.379,74.379H103.559c-6.825,0-12.358,5.533-12.358,12.358s5.533,12.358,12.358,12.358h76.392l-0.199,0.199c-1.508,1.508-2.598,3.379-3.169,5.433l-19.088,68.747h-53.936c-6.825,0-12.358,5.533-12.358,12.358s5.533,12.358,12.358,12.358h63.332c0.001,0,2.709-0.306,3.107-0.41c0.065-0.017,77.997-21.642,77.997-21.642c2.054-0.57,3.926-1.662,5.433-3.169l239.438-239.435C509.168,143.228,509.168,116.7,492.865,100.396z M184.644,394.073l10.087-36.326l26.24,26.24L184.644,394.073z M244.69,372.752l-38.721-38.721l197.648-197.648l38.722,38.721L244.69,372.752z M475.387,142.054l-15.571,15.571l-38.722-38.722l15.571-15.571c6.669-6.668,17.517-6.667,24.181,0l14.541,14.541C482.054,124.54,482.054,135.388,475.387,142.054z"/>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
<DrawingImage x:Key="Pencil">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black" Geometry="M397.736,78.378c6.824,0,12.358-5.533,12.358-12.358V27.027C410.094,12.125,397.977,0,383.08,0H121.641c-3.277,0-6.42,1.303-8.739,3.62L10.527,105.995c-2.317,2.317-3.62,5.461-3.62,8.738v370.239C6.908,499.875,19.032,512,33.935,512h349.144c14.897,0,27.014-12.125,27.014-27.027V296.289c0.001-6.824-5.532-12.358-12.357-12.358c-6.824,0-12.358,5.533-12.358,12.358v188.684c0,1.274-1.031,2.311-2.297,2.311H33.936c-1.274,0-2.311-1.037-2.311-2.311v-357.88h75.36c14.898,0,27.016-12.12,27.016-27.017V24.716H383.08c1.267,0,2.297,1.037,2.297,2.311V66.02C385.377,72.845,390.911,78.378,397.736,78.378z M109.285,100.075c0,1.269-1.032,2.301-2.3,2.301H49.107l60.178-60.18V100.075z"/>
|
||||
<GeometryDrawing Brush="Black" Geometry="M492.865,100.396l-14.541-14.539c-16.304-16.304-42.832-16.302-59.138,0L303.763,201.28H103.559c-6.825,0-12.358,5.533-12.358,12.358c0,6.825,5.533,12.358,12.358,12.358h175.488l-74.379,74.379H103.559c-6.825,0-12.358,5.533-12.358,12.358s5.533,12.358,12.358,12.358h76.392l-0.199,0.199c-1.508,1.508-2.598,3.379-3.169,5.433l-19.088,68.747h-53.936c-6.825,0-12.358,5.533-12.358,12.358s5.533,12.358,12.358,12.358h63.332c0.001,0,2.709-0.306,3.107-0.41c0.065-0.017,77.997-21.642,77.997-21.642c2.054-0.57,3.926-1.662,5.433-3.169l239.438-239.435C509.168,143.228,509.168,116.7,492.865,100.396z M184.644,394.073l10.087-36.326l26.24,26.24L184.644,394.073z M244.69,372.752l-38.721-38.721l197.648-197.648l38.722,38.721L244.69,372.752z M475.387,142.054l-15.571,15.571l-38.722-38.722l15.571-15.571c6.669-6.668,17.517-6.667,24.181,0l14.541,14.541C482.054,124.54,482.054,135.388,475.387,142.054z"/>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="PauseIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black"
|
||||
<DrawingImage x:Key="PauseIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black"
|
||||
Geometry="M18.51899,0L29.981999,0 29.981999,32 18.51899,32z M0,0L11.464992,0 11.464992,32 0,32z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="PlayIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black"
|
||||
<DrawingImage x:Key="PlayIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black"
|
||||
Geometry="M0,0L25.194,16 0,32z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<!-- help / support -->
|
||||
<DrawingImage x:Key="SupportIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black"
|
||||
<!-- help / support -->
|
||||
<DrawingImage x:Key="SupportIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing Brush="Black"
|
||||
Geometry="M23.679005,26.495C23.99901,26.495 24.265014,26.59 24.475017,26.78 24.685019,26.967 24.79102,27.204 24.79102,27.491 24.79102,27.783 24.68802,28.024 24.481016,28.214 24.271013,28.405 24.00301,28.5 23.679005,28.5 23.354001,28.5 23.085997,28.403 22.870994,28.208 22.655991,28.006 22.54899,27.766 22.54899,27.491 22.54899,27.207 22.655991,26.97 22.870994,26.78 23.085997,26.59 23.354001,26.495 23.679005,26.495z M23.734006,19.5C24.110011,19.5 24.460016,19.541 24.785021,19.625 25.110025,19.708 25.392029,19.839 25.632032,20.017 25.874036,20.195 26.062038,20.422 26.19904,20.7 26.333042,20.978 26.401043,21.311 26.401043,21.7 26.401043,21.947 26.373043,22.171 26.316042,22.371 26.259041,22.572 26.17704,22.762 26.067039,22.94 25.958037,23.118 25.822035,23.289 25.660033,23.453 25.498031,23.617 25.311028,23.786 25.101026,23.961 24.959023,24.078 24.835021,24.187 24.72802,24.289 24.620018,24.39 24.531017,24.49 24.460016,24.589 24.389015,24.689 24.335014,24.794 24.299014,24.905 24.262013,25.017 24.244013,25.144 24.244013,25.285 24.244013,25.383 24.257013,25.482 24.283013,25.583 24.310014,25.685 24.345015,25.77 24.390016,25.838L22.791993,25.838C22.751992,25.733 22.719992,25.615 22.697992,25.483 22.674991,25.351 22.663991,25.226 22.663991,25.109 22.663991,24.922 22.681992,24.752 22.718992,24.599 22.754992,24.445 22.809993,24.3 22.882994,24.164 22.955995,24.029 23.046997,23.898 23.155998,23.775 23.266,23.652 23.393002,23.529 23.539003,23.407 23.694005,23.278 23.828007,23.157 23.943009,23.046 24.059011,22.935 24.157012,22.823 24.238013,22.712 24.320014,22.6 24.380015,22.485 24.420015,22.365 24.460016,22.246 24.481016,22.113 24.481016,21.967 24.481016,21.841 24.459016,21.725 24.414016,21.618 24.369015,21.51 24.306014,21.419 24.222013,21.341 24.140012,21.264 24.03901,21.203 23.918009,21.159 23.799007,21.115 23.667005,21.092 23.521003,21.092 23.204998,21.092 22.876994,21.158 22.536989,21.29 22.195985,21.422 21.87398,21.621 21.569976,21.888L21.569976,20.059C21.88298,19.872 22.222985,19.733 22.59099,19.64 22.959995,19.547 23.341001,19.5 23.734006,19.5z M23.985949,18C20.670016,18 17.972007,20.69101 17.972007,24 17.972007,27.309021 20.670016,30 23.985949,30 27.302003,30 30.000989,27.309021 30.000989,24 30.000989,20.69101 27.302003,18 23.985949,18z M14,2C10.968,2 8.5,4.467 8.5,7.5 8.5,10.438219 10.81616,12.84526 13.717461,12.992831L13.973991,12.99934 13.99997,12.999012 14.027442,12.999304 14.28254,12.992831C17.18384,12.84526 19.5,10.438219 19.5,7.5 19.5,4.467 17.032,2 14,2z M14,0C18.136,0 21.5,3.3640003 21.5,7.5 21.5,9.95575 20.314059,12.13934 18.484733,13.508212L18.265061,13.664531 18.342722,13.68891C19.921902,14.202736,21.408062,14.995103,22.721599,16.037384L22.786062,16.089699 22.966662,16.064397C23.300515,16.021905 23.640717,16 23.985949,16 28.405035,16 32.000998,19.588989 32.000998,24 32.000998,28.411011 28.405035,32 23.985949,32 19.566984,32 15.971998,28.411011 15.971998,24 15.971998,20.96743 17.671191,18.323394 20.169134,16.967021L20.4065,16.845489 20.189965,16.712549C18.448412,15.669154,16.455822,15.076083,14.409823,15.006025L14.033219,14.999578 14,15 13.960834,14.999503 13.690718,15.00291C7.2160797,15.166433,1.9999962,20.449734,1.9999962,26.921989L0,26.928989 0,26.921989C0,20.80439,3.9878531,15.595488,9.51441,13.731782L9.7309766,13.661711 9.5152669,13.508212C7.6859417,12.13934 6.5,9.95575 6.5,7.5 6.5,3.3640003 9.8640003,0 14,0z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<!-- 'menu' three dots -->
|
||||
<DrawingImage x:Key="MenuIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing
|
||||
<!-- 'menu' three dots -->
|
||||
<DrawingImage x:Key="MenuIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing
|
||||
Brush="Black"
|
||||
Geometry="M23,14C24.10498,14 25,14.89502 25,16 25,17.10498 24.10498,18 23,18 21.89502,18 21,17.10498 21,16 21,14.89502 21.89502,14 23,14z M16,14C17.105,14 18,14.895 18,16 18,17.105 17.105,18 16,18 14.895,18 14,17.105 14,16 14,14.895 14.895,14 16,14z M9,14C10.105,14 11,14.895 11,16 11,17.105 10.105,18 9,18 7.8950005,18 7,17.105 7,16 7,14.895 7.8950005,14 9,14z M16,2C8.2799997,2 2,8.2800002 2,16 2,23.72 8.2799997,30 16,30 23.72,30 30,23.72 30,16 30,8.2800002 23.72,2 16,2z M16,0C24.822,0 32,7.178 32,16 32,24.822 24.822,32 16,32 7.1780005,32 0,24.822 0,16 0,7.178 7.1780005,0 16,0z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<!-- expander arrow -->
|
||||
<DrawingImage x:Key="ArrowIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing
|
||||
<!-- expander arrow -->
|
||||
<DrawingImage x:Key="ArrowIcon">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing
|
||||
Brush="Black"
|
||||
Geometry="M299.152955025434,0L496.426178902388,0 268.890046089888,280.247772216797 198.190201729536,367.407897949219 199.87503144145,369.495361328125 271.502137154341,457.706451416016 498.999970406294,738 301.717621773481,738 101.234124153852,491.008697509766 99.5304498374462,488.936553955078 98.6409082114697,490.003173828125 0,368.488952636719 98.6409082114697,246.945526123047z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="CancelBuys">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing
|
||||
<DrawingImage x:Key="CancelBuys">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing
|
||||
Brush="Black"
|
||||
Geometry="M -0.015625 0.01953125 L -0.015625 0.76953125 L -0.015625 24.841797 L 15.623047 24.841797 A 6.9657455 6.9657455 0 0 1 15.509766 24.644531 A 6.9657455 6.9657455 0 0 1 15.226562 24.009766 A 6.9657455 6.9657455 0 0 1 15.005859 23.349609 A 6.9657455 6.9657455 0 0 1 15.003906 23.341797 L 1.484375 23.341797 L 1.484375 1.5195312 L 23.345703 1.5195312 L 23.345703 14.720703 A 6.9657455 6.9657455 0 0 1 23.777344 14.830078 A 6.9657455 6.9657455 0 0 1 24.431641 15.070312 A 6.9657455 6.9657455 0 0 1 24.845703 15.269531 L 24.845703 0.01953125 L -0.015625 0.01953125 z M 7.2363281 4.4960938 L 7.2363281 20.271484 L 12.296875 20.271484 C 13.917734 20.271484 15.258806 19.853677 16.322266 19.017578 C 17.385725 18.181479 17.917969 17.087774 17.917969 15.738281 C 17.917969 14.652819 17.592197 13.772403 16.939453 13.097656 C 16.294043 12.415575 15.427259 12.013353 14.341797 11.888672 L 14.341797 11.84375 C 15.23657 11.56505 15.937299 11.095625 16.443359 10.435547 C 16.949419 9.7754687 17.203125 8.9982883 17.203125 8.1035156 C 17.203125 7.0327221 16.756101 6.1635061 15.861328 5.4960938 C 14.97389 4.8286814 13.765748 4.4960938 12.240234 4.4960938 L 7.2363281 4.4960938 z M 9.8417969 6.5957031 L 11.746094 6.5957031 C 13.550307 6.5957031 14.453125 7.2716006 14.453125 8.6210938 C 14.453125 9.4058534 14.192603 10.014548 13.671875 10.447266 C 13.158481 10.872649 12.44655 11.085938 11.537109 11.085938 L 9.8417969 11.085938 L 9.8417969 6.5957031 z M 9.8417969 13.185547 L 11.734375 13.185547 C 14.000643 13.185547 15.134766 14.003145 15.134766 15.638672 C 15.134766 16.430766 14.867428 17.055045 14.332031 17.509766 C 13.803969 17.957152 13.051621 18.181641 12.076172 18.181641 L 9.8417969 18.181641 L 9.8417969 13.185547 z M 19.478516 17.6875 C 19.365081 17.67151 19.258727 17.698367 19.185547 17.773438 L 17.128906 19.884766 C 16.982638 20.034993 17.024786 20.318597 17.224609 20.517578 L 19.544922 22.828125 L 17.207031 25.175781 C 17.008079 25.375646 16.969001 25.656373 17.119141 25.802734 L 19.230469 27.861328 C 19.380697 28.007596 19.6643 27.963502 19.863281 27.763672 L 22.173828 25.443359 L 24.521484 27.78125 C 24.721349 27.980202 25.002077 28.021237 25.148438 27.871094 L 27.207031 25.757812 C 27.353299 25.607585 27.309205 25.325934 27.109375 25.126953 L 24.789062 22.816406 L 27.126953 20.466797 C 27.325905 20.266932 27.364984 19.986205 27.214844 19.839844 L 25.103516 17.783203 C 24.953289 17.636935 24.671637 17.679084 24.472656 17.878906 L 22.162109 20.199219 L 19.8125 17.861328 C 19.71257 17.761848 19.591952 17.703494 19.478516 17.6875 z " />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="CancelSells">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing
|
||||
<DrawingImage x:Key="CancelSells">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing
|
||||
Brush="Black"
|
||||
Geometry="M -0.015625 0.01953125 L -0.015625 0.76953125 L -0.015625 24.841797 L 15.623047 24.841797 A 6.9657455 6.9657455 0 0 1 15.509766 24.644531 A 6.9657455 6.9657455 0 0 1 15.226562 24.009766 A 6.9657455 6.9657455 0 0 1 15.005859 23.349609 A 6.9657455 6.9657455 0 0 1 15.003906 23.341797 L 1.484375 23.341797 L 1.484375 1.5195312 L 23.345703 1.5195312 L 23.345703 14.720703 A 6.9657455 6.9657455 0 0 1 23.777344 14.830078 A 6.9657455 6.9657455 0 0 1 24.431641 15.070312 A 6.9657455 6.9657455 0 0 1 24.845703 15.269531 L 24.845703 0.01953125 L -0.015625 0.01953125 z M 12.318359 4.2304688 C 11.592273 4.2304688 10.880343 4.3200729 10.183594 4.4960938 C 9.4868446 4.6647804 8.8645183 4.9277335 8.3144531 5.2871094 C 7.7717222 5.6391511 7.3315139 6.0905599 6.9941406 6.640625 C 6.6641015 7.1833559 6.4980469 7.8256519 6.4980469 8.5664062 C 6.4980469 9.1678108 6.594467 9.6912856 6.7851562 10.138672 C 6.9831797 10.586058 7.2505173 10.990233 7.5878906 11.349609 C 7.9325981 11.701651 8.3348203 12.023038 8.796875 12.316406 C 9.2589297 12.609774 9.757572 12.899513 10.292969 13.185547 C 10.791694 13.412907 11.258688 13.633011 11.691406 13.845703 C 12.131458 14.051061 12.513233 14.268733 12.835938 14.496094 C 13.158642 14.723454 13.407964 14.975207 13.583984 15.253906 C 13.767339 15.525272 13.857422 15.848612 13.857422 16.222656 C 13.857422 16.919405 13.587653 17.451649 13.044922 17.818359 C 12.509525 18.185069 11.689974 18.367188 10.589844 18.367188 C 10.274473 18.367188 9.9306849 18.335539 9.5566406 18.269531 C 9.1825963 18.203523 8.807638 18.111488 8.4335938 17.994141 C 8.0595495 17.869459 7.7045608 17.71899 7.3671875 17.542969 C 7.0371484 17.366948 6.7517943 17.169245 6.5097656 16.949219 L 6.5097656 19.644531 C 6.7297917 19.783881 7.0195304 19.907565 7.3789062 20.017578 C 7.7382821 20.127591 8.1200564 20.219627 8.5234375 20.292969 C 8.9268186 20.373645 9.3178403 20.432079 9.6992188 20.46875 C 10.087931 20.512755 10.415656 20.535156 10.679688 20.535156 C 11.471781 20.535156 12.222176 20.458706 12.933594 20.304688 C 13.645011 20.150669 14.271722 19.901348 14.814453 19.556641 C 15.364518 19.211933 15.802295 18.764909 16.125 18.214844 C 16.447705 17.664779 16.609375 16.988881 16.609375 16.189453 C 16.609375 15.595383 16.499323 15.067523 16.279297 14.605469 C 16.066605 14.13608 15.772482 13.711457 15.398438 13.330078 C 15.031727 12.9487 14.60272 12.600527 14.111328 12.285156 C 13.627271 11.969786 13.110612 11.668846 12.560547 11.382812 C 12.02515 11.148118 11.55134 10.930445 11.140625 10.732422 C 10.737244 10.527064 10.393456 10.318161 10.107422 10.105469 C 9.8287222 9.8927769 9.615434 9.6590408 9.46875 9.4023438 C 9.322066 9.1456467 9.2480469 8.8403229 9.2480469 8.4882812 C 9.2480469 8.114237 9.344467 7.7952813 9.5351562 7.53125 C 9.7258455 7.2672187 9.9707821 7.0514991 10.271484 6.8828125 C 10.579521 6.7141259 10.925262 6.5928733 11.306641 6.5195312 C 11.695353 6.4461892 12.083944 6.4101562 12.472656 6.4101562 C 13.880823 6.4101562 15.031009 6.7315434 15.925781 7.3769531 L 15.925781 4.7929688 C 15.170358 4.4189245 13.968555 4.2304688 12.318359 4.2304688 z M 19.478516 17.6875 C 19.365081 17.67151 19.258727 17.698367 19.185547 17.773438 L 17.128906 19.884766 C 16.982638 20.034993 17.024786 20.318597 17.224609 20.517578 L 19.544922 22.828125 L 17.207031 25.175781 C 17.008079 25.375646 16.969001 25.656373 17.119141 25.802734 L 19.230469 27.861328 C 19.380697 28.007596 19.6643 27.963502 19.863281 27.763672 L 22.173828 25.443359 L 24.521484 27.78125 C 24.721349 27.980202 25.002077 28.021237 25.148438 27.871094 L 27.207031 25.757812 C 27.353299 25.607585 27.309205 25.325934 27.109375 25.126953 L 24.789062 22.816406 L 27.126953 20.466797 C 27.325905 20.266932 27.364984 19.986205 27.214844 19.839844 L 25.103516 17.783203 C 24.953289 17.636935 24.671637 17.679084 24.472656 17.878906 L 22.162109 20.199219 L 19.8125 17.861328 C 19.71257 17.761848 19.591952 17.703494 19.478516 17.6875 z " />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="CancelOrders">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing
|
||||
<DrawingImage x:Key="CancelOrders">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing
|
||||
Brush="Black"
|
||||
Geometry="m 18.462129 17.117541 -1.6584 1.663462 -0.899336 -2.525292 H 9.699658 L 8.3354964 20.271187 H 5.4751577 L 11.382857 4.4953185 h 2.948349 z M 15.211311 14.121459 13.022051 7.8287133 C 12.956044 7.6233556 12.886369 7.2933165 12.813027 6.838596 h -0.04401 c -0.06601 0.4180495 -0.139349 0.7480886 -0.220026 0.9901173 L 10.381735 14.121459 Z M -0.015625 0.01953125 v 0.75 24.07226575 h 15.638672 a 6.9657455 6.9657455 0 0 1 -0.113281 -0.197266 6.9657455 6.9657455 0 0 1 -0.283204 -0.634765 6.9657455 6.9657455 0 0 1 -0.220703 -0.660157 6.9657455 6.9657455 0 0 1 -0.002 -0.0078 H 1.484375 V 1.5195312 H 23.345703 V 14.720703 a 6.9657455 6.9657455 0 0 1 0.431641 0.109375 6.9657455 6.9657455 0 0 1 0.654297 0.240234 6.9657455 6.9657455 0 0 1 0.414062 0.199219 V 0.01953125 Z M 19.478516 17.6875 c -0.113435 -0.01599 -0.219789 0.01087 -0.292969 0.08594 l -2.056641 2.111328 c -0.146268 0.150227 -0.10412 0.433831 0.0957 0.632812 l 2.320313 2.310547 -2.337891 2.347656 c -0.198952 0.199865 -0.23803 0.480592 -0.08789 0.626953 l 2.111328 2.058594 c 0.150228 0.146268 0.433831 0.102174 0.632812 -0.09766 l 2.310547 -2.320313 2.347656 2.337891 c 0.199865 0.198952 0.480593 0.239987 0.626954 0.08984 l 2.058593 -2.113282 c 0.146268 -0.150227 0.102174 -0.431878 -0.09766 -0.630859 l -2.320313 -2.310547 2.337891 -2.349609 c 0.198952 -0.199865 0.238031 -0.480592 0.08789 -0.626953 l -2.111328 -2.056641 c -0.150227 -0.146268 -0.431879 -0.104119 -0.63086 0.0957 L 22.162109 20.199219 19.8125 17.861328 C 19.71257 17.761848 19.591952 17.703494 19.478516 17.6875 Z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<DrawingImage x:Key="CancelSelected">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing
|
||||
<DrawingImage x:Key="CancelSelected">
|
||||
<DrawingImage.Drawing>
|
||||
<DrawingGroup>
|
||||
<DrawingGroup.Children>
|
||||
<GeometryDrawing
|
||||
Brush="Black"
|
||||
Geometry="M 16.175918 3.52563 10.049501 9.652047 7.7707386 7.373285 6.6672652 8.476758 10.29395 12.103443 C 12.652915 9.683609 15.07621 7.271459 17.498979 4.84869 Z m 0 6 -6.126417 6.126417 -2.2787624 -2.278762 -1.1034734 1.103473 3.6266848 3.626685 c 2.358965 -2.419834 4.78226 -4.831984 7.205029 -7.254753 z M -0.015625 0.01953125 v 0.75 24.07226575 h 15.638672 c -0.03883 -0.06513 -0.0766 -0.130898 -0.113281 -0.197266 -0.104906 -0.206744 -0.199425 -0.418596 -0.283204 -0.634765 -0.08452 -0.216237 -0.158183 -0.436564 -0.220703 -0.660157 l -0.002 -0.0078 H 1.484375 V 1.5195312 H 23.345703 V 14.720703 c 0.145009 0.03185 0.288963 0.06833 0.431641 0.109375 0.221971 0.06911 0.440344 0.149288 0.654297 0.240234 0.140174 0.06184 0.27827 0.128277 0.414062 0.199219 V 0.01953125 Z M 19.478516 17.6875 c -0.113435 -0.01599 -0.219789 0.01087 -0.292969 0.08594 l -2.056641 2.111328 c -0.146268 0.150227 -0.10412 0.433831 0.0957 0.632812 l 2.320313 2.310547 -2.337891 2.347656 c -0.198952 0.199865 -0.23803 0.480592 -0.08789 0.626953 l 2.111328 2.058594 c 0.150228 0.146268 0.433831 0.102174 0.632812 -0.09766 l 2.310547 -2.320313 2.347656 2.337891 c 0.199865 0.198952 0.480593 0.239987 0.626954 0.08984 l 2.058593 -2.113282 c 0.146268 -0.150227 0.102174 -0.431878 -0.09766 -0.630859 L 24.789055 22.8164 27.126946 20.466791 c 0.198952 -0.199865 0.238031 -0.480592 0.08789 -0.626953 l -2.111328 -2.056641 c -0.150227 -0.146268 -0.431879 -0.104119 -0.63086 0.0957 L 22.162109 20.199219 19.8125 17.861328 C 19.71257 17.761848 19.591952 17.703494 19.478516 17.6875 Z" />
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<!-- Pin
|
||||
</DrawingGroup.Children>
|
||||
</DrawingGroup>
|
||||
</DrawingImage.Drawing>
|
||||
</DrawingImage>
|
||||
|
||||
<!-- Pin
|
||||
<Path Data="F1M3,11L3,7 0,7 0,6 1,6 1,1 1,0 6,0 6,1 6,6 7,6 7,7 4,7 4,11 3,11z M2,1L2,6 4,6 4,1 2,1z" />
|
||||
Unpin
|
||||
<Path Data="F1M0,3L4,3 4,0 5,0 5,1 10,1 11,1 11,6 10,6 5,6 5,7 4,7 4,4 0,4 0,3z M10,2L5,2 5,4 10,4 10,2z" />
|
||||
-->
|
||||
|
||||
</ResourceDictionary>
|
||||
|
||||
|
||||
|
||||
</ResourceDictionary>
|
||||
@@ -36,7 +36,7 @@ namespace mbts.spark
|
||||
SparkCommands.ShowTimeAndSales.complete(_vm.Observable.SelectMany(vm => vm.selected_securities_observable()), secs => secs.Count > 0, secs => new SecurityCriteria(secs)),
|
||||
// SpreadMatrix ??
|
||||
// SyntheticCreate
|
||||
SparkCommands.ShowSyntheticSpreads,
|
||||
SparkCommands.ShowSyntheticManagement,
|
||||
SparkCommands.ShowSyntheticCreate.complete(_vm.Observable.SelectMany(vm => vm.selected_securities_observable()), secs => secs.Count > 0, secs => new SecurityCriteria(secs))
|
||||
// ModifyOrder - await orders
|
||||
// CancelOrdersRoot ?
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace mbts.spark
|
||||
SparkCommands.ShowMarketView.complete(_vm.Observable.SelectMany(vm => vm.selected_securities_observable()), secs => secs.Count > 0, secs => new SecurityCriteria(secs)),
|
||||
// SpreadMatrix ??
|
||||
// SyntheticCreate
|
||||
SparkCommands.ShowSyntheticSpreads,
|
||||
SparkCommands.ShowSyntheticManagement,
|
||||
// ModifyOrder - await orders
|
||||
// CancelOrdersRoot ?
|
||||
//SparkCommands.CancelBuyOrders,
|
||||
|
||||
+40
-17
@@ -1,6 +1,7 @@
|
||||
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:sp="clr-namespace:bts.spark;assembly=spark_api"
|
||||
xmlns:msp="clr-namespace:mbts.spark"
|
||||
xmlns:u="clr-namespace:mbts.ui"
|
||||
xmlns:c="clr-namespace:mbts.ui.controls"
|
||||
xmlns:cv="clr-namespace:mbts.ui.converters"
|
||||
@@ -9,6 +10,7 @@
|
||||
<ResourceDictionary Source="/view/Resources/DataGrid.xaml"/>
|
||||
<ResourceDictionary Source="/view/Resources/DataTemplates.xaml"/>
|
||||
<ResourceDictionary Source="/view/Resources/Converters.xaml"/>
|
||||
<ResourceDictionary Source="/view/Controls/Popup/PopupControl.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
<cv:SyntheticPriceCalcDisplayTextConverter x:Key="SyntheticPriceCalcDisplayConverter"/>
|
||||
<usp:RowHeaderGroupIndentConverter x:Key="RowHeaderGroupIndentConverter" Indent="18"/>
|
||||
@@ -190,7 +192,7 @@
|
||||
</SelectiveScrollingGrid>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<Trigger Property="usp:SyntheticEditor.RowHasErrors" Value="True">
|
||||
<Trigger Property="usp:ExecutionStrategyEditor.RowHasErrors" Value="True">
|
||||
<Setter Property="BorderBrush" Value="Red"/>
|
||||
<Setter Property="BorderThickness" Value="1"/>
|
||||
</Trigger>
|
||||
@@ -200,9 +202,30 @@
|
||||
<Setter Property="BorderThickness" Value="1,0"/>
|
||||
<Setter Property="BorderBrush" Value="Transparent"/>
|
||||
<Setter Property="Template" Value="{StaticResource DataGridRowTemplate}"/>
|
||||
<Setter Property="usp:SyntheticEditor.RowHasErrors" Value="{Binding has_errors}"/>
|
||||
<Setter Property="usp:ExecutionStrategyEditor.RowHasErrors" Value="{Binding has_errors}"/>
|
||||
</Style>
|
||||
<ControlTemplate x:Key="SyntheticEditorTemplate" TargetType="usp:SyntheticEditor">
|
||||
<DataGridTextColumn x:Key="AddColumnPlaceholder" x:Shared="False">
|
||||
<DataGridTextColumn.Header>
|
||||
<c:PopupControl ShowExpanderArrow="False" PopupPlacement="Right" Header="Add" Padding="6,0"
|
||||
Background="{StaticResource Button.Static.BackgroundBrush}"
|
||||
IsOpen="{Binding IsNewLegPopupOpen, RelativeSource={RelativeSource AncestorType=usp:ExecutionStrategyEditor}, Mode=TwoWay}">
|
||||
<msp:ContractPickerView DataContext="{Binding ContractPickerModel, RelativeSource={RelativeSource AncestorType=usp:ExecutionStrategyEditor}}" CloseOnOK="False"/>
|
||||
</c:PopupControl>
|
||||
</DataGridTextColumn.Header>
|
||||
</DataGridTextColumn>
|
||||
<DataTemplate x:Key="RemovableColumnHeaderTemplate">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Button Command="{Binding RemoveLegCommand, RelativeSource={RelativeSource AncestorType=usp:ExecutionStrategyEditor}}"
|
||||
CommandParameter="{Binding}"
|
||||
Style="{StaticResource RoundCloseButton}"/>
|
||||
<TextBlock Grid.Column="1" Margin="4,0,0,0" Text="{Binding}"/>
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
<ControlTemplate x:Key="ExecutionStrategyEditorTemplate" TargetType="usp:ExecutionStrategyEditor">
|
||||
<Border BorderBrush="{TemplateBinding BorderBrush}"
|
||||
BorderThickness="{TemplateBinding BorderThickness}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
||||
@@ -226,7 +249,7 @@
|
||||
<TextBlock VerticalAlignment="Center">Name</TextBlock>
|
||||
<TextBox Grid.Column="1" Margin="6,0,0,0" HorizontalAlignment="Stretch" Text="{Binding SyntheticName, RelativeSource={RelativeSource TemplatedParent}}"/>
|
||||
<TextBlock Grid.Column="2" VerticalAlignment="Center" Margin="6,0,0,0">Pricing</TextBlock>
|
||||
<ComboBox Grid.Column="3" Margin="6,0,0,0" ItemsSource="{x:Static usp:SyntheticEditor.PriceCalcItems}" SelectedItem="{Binding PriceCalc, RelativeSource={RelativeSource TemplatedParent}}">
|
||||
<ComboBox Grid.Column="3" Margin="6,0,0,0" ItemsSource="{x:Static usp:ExecutionStrategyEditor.PriceCalcItems}" SelectedItem="{Binding PriceCalc, RelativeSource={RelativeSource TemplatedParent}}">
|
||||
<ComboBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<TextBlock Text="{Binding Converter={StaticResource SyntheticPriceCalcDisplayConverter}}"/>
|
||||
@@ -236,17 +259,17 @@
|
||||
<c:HelpButton Grid.Column="4" Margin="3,0,0,0"/>
|
||||
</Grid>
|
||||
<c:DataGridEx x:Name="PART_DataGrid"
|
||||
Grid.Row="1"
|
||||
Margin="0,4,0,0"
|
||||
BorderBrush="Transparent"
|
||||
BorderThickness="0"
|
||||
GridLinesVisibility="None"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
||||
HeadersVisibility="All"
|
||||
RowHeaderWidth="265"
|
||||
RowStyle="{StaticResource DataGridRowStyle}"
|
||||
ItemsSource="{Binding ParameterRowsView, RelativeSource={RelativeSource TemplatedParent}}">
|
||||
Grid.Row="1"
|
||||
Margin="0,4,0,0"
|
||||
BorderBrush="Transparent"
|
||||
BorderThickness="0"
|
||||
GridLinesVisibility="None"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
||||
HeadersVisibility="All"
|
||||
RowHeaderWidth="265"
|
||||
RowStyle="{StaticResource DataGridRowStyle}"
|
||||
ItemsSource="{Binding ParameterRowsView, RelativeSource={RelativeSource TemplatedParent}}">
|
||||
<DataGrid.Resources>
|
||||
<Style x:Key="{ComponentResourceKey ResourceId=DataGridSelectAllButtonStyle, TypeInTargetAssembly={x:Type DataGrid}}" TargetType="Button">
|
||||
<Setter Property="IsEnabled" Value="False"/>
|
||||
@@ -266,12 +289,12 @@
|
||||
</Grid>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
<Style TargetType="usp:SyntheticEditor">
|
||||
<Style TargetType="usp:ExecutionStrategyEditor">
|
||||
<Setter Property="ParameterCellTemplateConverter" Value="{StaticResource ParameterCellTemplateConverter}"/>
|
||||
<Setter Property="ParameterCellEditingTemplateConverter" Value="{StaticResource ParameterCellEditingTemplateConverter}"/>
|
||||
<Setter Property="HorizontalAlignment" Value="Stretch"/>
|
||||
<Setter Property="VerticalAlignment" Value="Stretch"/>
|
||||
<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
|
||||
<Setter Property="Template" Value="{StaticResource SyntheticEditorTemplate}"/>
|
||||
<Setter Property="Template" Value="{StaticResource ExecutionStrategyEditorTemplate}"/>
|
||||
</Style>
|
||||
</ResourceDictionary>
|
||||
+63
-30
@@ -4,23 +4,27 @@ using mbts.ui.controls;
|
||||
using mbts.ui.utility;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Collections.Specialized;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace mbts.ui.spark
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for SyntheticEditor.xaml
|
||||
/// Interaction logic for ExecutionStrategyEditor.xaml
|
||||
/// </summary>
|
||||
///
|
||||
internal partial class SyntheticEditor : Control
|
||||
internal partial class ExecutionStrategyEditor : Control
|
||||
{
|
||||
static SyntheticEditor() {
|
||||
DefaultStyleKeyProperty.OverrideMetadata(typeof(SyntheticEditor), new FrameworkPropertyMetadata(typeof(SyntheticEditor)));
|
||||
static ExecutionStrategyEditor() {
|
||||
DefaultStyleKeyProperty.OverrideMetadata(typeof(ExecutionStrategyEditor), new FrameworkPropertyMetadata(typeof(ExecutionStrategyEditor)));
|
||||
}
|
||||
|
||||
public interface IParameterViewMetadata {
|
||||
@@ -29,13 +33,24 @@ namespace mbts.ui.spark
|
||||
}
|
||||
|
||||
#region SyntheticName
|
||||
public static readonly DependencyProperty SyntheticNameProperty = DependencyProperty.Register("SyntheticName", typeof(string), typeof(SyntheticEditor),
|
||||
public static readonly DependencyProperty SyntheticNameProperty = DependencyProperty.Register("SyntheticName", typeof(string), typeof(ExecutionStrategyEditor),
|
||||
new FrameworkPropertyMetadata(string.Empty, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));
|
||||
public string SyntheticName { get => GetValue(SyntheticNameProperty) as string; set => SetValue(SyntheticNameProperty, value); }
|
||||
#endregion
|
||||
|
||||
#region IsNew
|
||||
public static readonly DependencyProperty IsNewProperty = DependencyProperty.Register(nameof(IsNew), typeof(bool), typeof(ExecutionStrategyEditor), new PropertyMetadata(false));
|
||||
public bool IsNew { get => (bool)GetValue(IsNewProperty); set => SetValue(IsNewProperty, value); }
|
||||
#endregion
|
||||
|
||||
#region IsNewLegPopupOpen
|
||||
public static readonly DependencyProperty IsNewLegPopupOpenProperty = DependencyProperty.Register("IsNewLegPopupOpen", typeof(bool), typeof(ExecutionStrategyEditor),
|
||||
new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));
|
||||
public bool IsNewLegPopupOpen { get => (bool)GetValue(IsNewLegPopupOpenProperty); set => SetValue(IsNewLegPopupOpenProperty, value); }
|
||||
#endregion
|
||||
|
||||
#region PriceCalc
|
||||
public static readonly DependencyProperty PriceCalcProperty = DependencyProperty.Register("PriceCalc", typeof(SyntheticContract.Types.PriceCalc), typeof(SyntheticEditor),
|
||||
public static readonly DependencyProperty PriceCalcProperty = DependencyProperty.Register("PriceCalc", typeof(SyntheticContract.Types.PriceCalc), typeof(ExecutionStrategyEditor),
|
||||
new FrameworkPropertyMetadata(SyntheticContract.Types.PriceCalc.Diff, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault));
|
||||
public SyntheticContract.Types.PriceCalc PriceCalc { get => (SyntheticContract.Types.PriceCalc)GetValue(PriceCalcProperty); set => SetValue(PriceCalcProperty, value); }
|
||||
|
||||
@@ -43,18 +58,18 @@ namespace mbts.ui.spark
|
||||
#endregion
|
||||
|
||||
#region LegTuples
|
||||
public static readonly DependencyProperty LegTuplesProperty = DependencyProperty.Register("LegTuples", typeof(IReadOnlyCollection<LegSpreaderParamsTuple>), typeof(SyntheticEditor),
|
||||
public static readonly DependencyProperty LegTuplesProperty = DependencyProperty.Register("LegTuples", typeof(IReadOnlyCollection<LegSpreaderParamsTuple>), typeof(ExecutionStrategyEditor),
|
||||
new FrameworkPropertyMetadata(new LegSpreaderParamsTuple[0], FrameworkPropertyMetadataOptions.AffectsMeasure, SyncColumns, CoerceLegTuples));
|
||||
private static object CoerceLegTuples(DependencyObject d, object baseValue) {
|
||||
static object CoerceLegTuples(DependencyObject d, object baseValue) {
|
||||
return baseValue is IReadOnlyCollection<LegSpreaderParamsTuple> ? baseValue : new List<LegSpreaderParamsTuple>();
|
||||
}
|
||||
public IReadOnlyCollection<LegSpreaderParamsTuple> LegTuples { get => GetValue(LegTuplesProperty) as IReadOnlyCollection<LegSpreaderParamsTuple>; set => SetValue(LegTuplesProperty, value); }
|
||||
#endregion
|
||||
|
||||
#region ParameterRows
|
||||
public static readonly DependencyProperty ParameterRowsProperty = DependencyProperty.Register("ParameterRows", typeof(IEnumerable<IParameterViewMetadata>), typeof(SyntheticEditor),
|
||||
public static readonly DependencyProperty ParameterRowsProperty = DependencyProperty.Register("ParameterRows", typeof(IEnumerable<IParameterViewMetadata>), typeof(ExecutionStrategyEditor),
|
||||
new PropertyMetadata(Enumerable.Empty<IParameterViewMetadata>(), OnParameterRowsChanged));
|
||||
private static void OnParameterRowsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) {
|
||||
static void OnParameterRowsChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) {
|
||||
var rows = e.NewValue as IEnumerable<IParameterViewMetadata>;
|
||||
if (rows != null) {
|
||||
var prv = CollectionViewSource.GetDefaultView(rows);
|
||||
@@ -67,63 +82,81 @@ namespace mbts.ui.spark
|
||||
#endregion
|
||||
|
||||
#region ParameterRowsView (ReadOnly)
|
||||
private static readonly DependencyPropertyKey ParameterRowsViewPropertyKey = DependencyProperty.RegisterReadOnly("ParameterRowsView", typeof(ICollectionView), typeof(SyntheticEditor),
|
||||
static readonly DependencyPropertyKey ParameterRowsViewPropertyKey = DependencyProperty.RegisterReadOnly("ParameterRowsView", typeof(ICollectionView), typeof(ExecutionStrategyEditor),
|
||||
new PropertyMetadata());
|
||||
public static readonly DependencyProperty ParameterRowsViewProperty = ParameterRowsViewPropertyKey.DependencyProperty;
|
||||
public ICollectionView ParameterRowsView { get => GetValue(ParameterRowsViewProperty) as ICollectionView; private set => SetValue(ParameterRowsViewPropertyKey, value); }
|
||||
public ICollectionView ParameterRowsView { get => GetValue(ParameterRowsViewProperty) as ICollectionView; set => SetValue(ParameterRowsViewPropertyKey, value); }
|
||||
#endregion
|
||||
|
||||
#region ParameterCellTemplateConverter
|
||||
public static readonly DependencyProperty ParameterCellTemplateConverterProperty = DependencyProperty.Register("ParameterCellTemplateConverter", typeof(IValueConverter), typeof(SyntheticEditor),
|
||||
public static readonly DependencyProperty ParameterCellTemplateConverterProperty = DependencyProperty.Register("ParameterCellTemplateConverter", typeof(IValueConverter), typeof(ExecutionStrategyEditor),
|
||||
new PropertyMetadata(SyncColumns));
|
||||
public IValueConverter ParameterCellTemplateConverter { get => GetValue(ParameterCellTemplateConverterProperty) as IValueConverter; set => SetValue(ParameterCellTemplateConverterProperty, value); }
|
||||
#endregion
|
||||
|
||||
#region ParameterCellEditingTemplateConverter
|
||||
public static readonly DependencyProperty ParameterCellEditingTemplateConverterProperty = DependencyProperty.Register("ParameterCellEditingTemplateConverter", typeof(IValueConverter), typeof(SyntheticEditor),
|
||||
public static readonly DependencyProperty ParameterCellEditingTemplateConverterProperty = DependencyProperty.Register("ParameterCellEditingTemplateConverter", typeof(IValueConverter), typeof(ExecutionStrategyEditor),
|
||||
new PropertyMetadata(SyncColumns));
|
||||
public IValueConverter ParameterCellEditingTemplateConverter { get => GetValue(ParameterCellEditingTemplateConverterProperty) as IValueConverter; set => SetValue(ParameterCellEditingTemplateConverterProperty, value); }
|
||||
#endregion
|
||||
|
||||
#region RowHasError
|
||||
public static readonly DependencyProperty RowHasErrorsProperty = DependencyProperty.RegisterAttached("RowHasErrors", typeof(bool), typeof(SyntheticEditor), new PropertyMetadata(false));
|
||||
public static readonly DependencyProperty RowHasErrorsProperty = DependencyProperty.RegisterAttached("RowHasErrors", typeof(bool), typeof(ExecutionStrategyEditor), new PropertyMetadata(false));
|
||||
public static bool GetRowHasErrors(DependencyObject d) { return (bool)d.GetValue(RowHasErrorsProperty); }
|
||||
public static void SetRowHasErrors(DependencyObject d, bool value) { d.SetValue(RowHasErrorsProperty, value); }
|
||||
#endregion
|
||||
|
||||
#region CellDataType
|
||||
public static readonly DependencyProperty CellDataTypeProperty = DependencyProperty.RegisterAttached("CellDataType", typeof(Type), typeof(SyntheticEditor), new PropertyMetadata(null));
|
||||
public static readonly DependencyProperty CellDataTypeProperty = DependencyProperty.RegisterAttached("CellDataType", typeof(Type), typeof(ExecutionStrategyEditor), new PropertyMetadata(null));
|
||||
public static Type GetCellDataType(DependencyObject d) { return d.GetValue(CellDataTypeProperty) as Type; }
|
||||
public static void SetCellDataType(DependencyObject d, Type value) { d.SetValue(CellDataTypeProperty, value); }
|
||||
#endregion
|
||||
|
||||
private static void SyncColumns(DependencyObject d, DependencyPropertyChangedEventArgs e) { ((SyntheticEditor)d)._sync_columns(); }
|
||||
#region RemoveLegCommand
|
||||
public static readonly DependencyProperty RemoveLegCommandProperty = DependencyProperty.Register("RemoveLegCommand", typeof(ICommand), typeof(ExecutionStrategyEditor));
|
||||
public ICommand RemoveLegCommand { get => GetValue(RemoveLegCommandProperty) as ICommand; set => SetValue(RemoveLegCommandProperty, value); }
|
||||
#endregion
|
||||
|
||||
#region ContractPickerModel
|
||||
public static readonly DependencyProperty ContractPickerModelProperty = DependencyProperty.Register(nameof(ContractPickerModel), typeof(mbts.spark.ContractPickerModel), typeof(ExecutionStrategyEditor));
|
||||
public mbts.spark.ContractPickerModel ContractPickerModel { get => GetValue(ContractPickerModelProperty) as mbts.spark.ContractPickerModel; set => SetValue(ContractPickerModelProperty, value); }
|
||||
#endregion
|
||||
|
||||
static void SyncColumns(DependencyObject d, DependencyPropertyChangedEventArgs e) { ((ExecutionStrategyEditor)d)._sync_columns(); }
|
||||
public override void OnApplyTemplate() { _sync_columns(); }
|
||||
|
||||
private SyntheticEditorGridLineAdorner _dg_line_adorner;
|
||||
ExecutionStrategyGridLineAdorner _dg_line_adorner;
|
||||
IDisposable _legs_collection_changed_sub;
|
||||
|
||||
private void _sync_columns() {
|
||||
void _sync_columns() {
|
||||
_dg_line_adorner?.Dispose();
|
||||
_legs_collection_changed_sub?.Dispose();
|
||||
var dg = (DataGridEx)GetTemplateChild("PART_DataGrid");
|
||||
if (dg != null) {
|
||||
dg.Columns.SetItems(LegTuples.Select(l => {
|
||||
var col = new DataGridColumnInternal(l.leg.Security, ParameterCellTemplateConverter, ParameterCellEditingTemplateConverter) { Width = 75 };
|
||||
DataGridEx.SetRightBorder(col, new DataGridExVerticalLine(false, true, System.Windows.Media.Colors.DarkGray, 1));
|
||||
return col;
|
||||
}));
|
||||
_dg_line_adorner = new SyntheticEditorGridLineAdorner(dg);
|
||||
var legs = LegTuples;
|
||||
dg.Columns.SetItems(legs.Select(_column_factory));
|
||||
if (IsNew) dg.Columns.Add((DataGridColumn)FindResource("AddColumnPlaceholder"));
|
||||
_dg_line_adorner = new ExecutionStrategyGridLineAdorner(dg);
|
||||
_legs_collection_changed_sub = (legs as INotifyCollectionChanged)?.Subscribe((s, e) => dg.Columns.ReflectChange(legs, _column_factory, e));
|
||||
}
|
||||
}
|
||||
|
||||
DataGridColumn _column_factory(LegSpreaderParamsTuple l) {
|
||||
var col = new DataGridColumnInternal(l.leg.Security, ParameterCellTemplateConverter, ParameterCellEditingTemplateConverter) { Width = 75, };
|
||||
if (IsNew) col.HeaderTemplate = (DataTemplate)FindResource("RemovableColumnHeaderTemplate");
|
||||
DataGridEx.SetRightBorder(col, new DataGridExVerticalLine(false, true, Colors.DarkGray, 1));
|
||||
return col;
|
||||
}
|
||||
|
||||
private class DataGridColumnInternal : DataGridDynamicColumn {
|
||||
public DataGridColumnInternal(Security security, IValueConverter cell_template_converter, IValueConverter cell_editing_template_converter) {
|
||||
Header = security.ToString(null);
|
||||
Header = security;
|
||||
SetValue(DataGridEx.CellKeyProperty, security);
|
||||
_cell_template_converter = cell_template_converter;
|
||||
_cell_editing_template_converter = cell_editing_template_converter;
|
||||
}
|
||||
|
||||
private readonly IValueConverter _cell_template_converter, _cell_editing_template_converter;
|
||||
readonly IValueConverter _cell_template_converter, _cell_editing_template_converter;
|
||||
|
||||
// I decided this was an easy and simple enough solution to justify breaking the mvvm paradigm
|
||||
// The alternative - within strict bounds of the paradigm - is to change the DataGridParameterCellTemplateConverter into an IMultiValueConverter, bound to data_type AND read_only
|
||||
@@ -134,7 +167,7 @@ namespace mbts.ui.spark
|
||||
protected override FrameworkElement generate_element_internal() { return _generate_element(_cell_template_converter); }
|
||||
protected override FrameworkElement generate_editing_element_internal() { return _generate_element(_cell_editing_template_converter); }
|
||||
|
||||
private FrameworkElement _generate_element(IValueConverter cell_template_converter) {
|
||||
FrameworkElement _generate_element(IValueConverter cell_template_converter) {
|
||||
var rv = new ContentControl();
|
||||
rv.SetBinding(ContentControl.ContentProperty, new Binding());
|
||||
rv.SetBinding(ContentControl.ContentTemplateProperty, new Binding("data_type") { Converter = cell_template_converter });
|
||||
@@ -144,7 +177,7 @@ namespace mbts.ui.spark
|
||||
}
|
||||
|
||||
[ValueConversion(typeof(int), typeof(Thickness))]
|
||||
internal class RowHeaderGroupIndentConverter : IValueConverter {
|
||||
class RowHeaderGroupIndentConverter : IValueConverter {
|
||||
public double Indent { get; set; }
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) {
|
||||
return new Thickness(((int)value + 1) * Indent, 0, 0, 0);
|
||||
@@ -155,7 +188,7 @@ namespace mbts.ui.spark
|
||||
}
|
||||
|
||||
[ValueConversion(typeof(Type), typeof(DataTemplate))]
|
||||
internal class DataGridParameterCellTemplateConverter : IValueConverter {
|
||||
class DataGridParameterCellTemplateConverter : IValueConverter {
|
||||
public DataTemplate DoubleTemplate { get; set; }
|
||||
public DataTemplate BooleanTemplate { get; set; }
|
||||
public DataTemplate IntTemplate { get; set; }
|
||||
+5
-6
@@ -8,12 +8,11 @@ using System.Windows.Media;
|
||||
|
||||
namespace mbts.ui.spark
|
||||
{
|
||||
internal partial class SyntheticEditor : Control {
|
||||
internal class SyntheticEditorGridLineAdorner : DataGridExVerticalLineAdorner
|
||||
{
|
||||
public SyntheticEditorGridLineAdorner(DataGridEx grid) : base(grid) { }
|
||||
internal partial class ExecutionStrategyEditor : Control {
|
||||
internal class ExecutionStrategyGridLineAdorner : DataGridExVerticalLineAdorner {
|
||||
public ExecutionStrategyGridLineAdorner(DataGridEx grid) : base(grid) { }
|
||||
|
||||
private ItemsPresenter _items_presenter;
|
||||
ItemsPresenter _items_presenter;
|
||||
|
||||
protected override IEnumerable<IDisposable> get_other_hooks() {
|
||||
_items_presenter = _grid.visual_children_where(el => el is ItemsPresenter).Cast<ItemsPresenter>().FirstOrDefault();
|
||||
@@ -23,7 +22,7 @@ namespace mbts.ui.spark
|
||||
}
|
||||
}
|
||||
|
||||
private void _items_presenter_SizeChanged(object sender, SizeChangedEventArgs e) { InvalidateVisual(); }
|
||||
void _items_presenter_SizeChanged(object sender, SizeChangedEventArgs e) { InvalidateVisual(); }
|
||||
|
||||
protected override void draw_vertical_line(DrawingContext dc, double x, DataGridExVerticalLine line) {
|
||||
if (_items_presenter != null) dc.DrawLine(line.pen.Value, new Point(x - 10, 58), new Point(x - 10, _items_presenter.ActualHeight + 58));
|
||||
@@ -28,20 +28,20 @@ namespace bts.shell
|
||||
|
||||
IDisposable _dispose;
|
||||
|
||||
async void _show_synthetic_editor(SecurityCriteria security_criteria) =>
|
||||
_show_synthetic_editor((await security_criteria.securities(_bus)).ToList());
|
||||
async void _show_synthetic_create(SecurityCriteria security_criteria) =>
|
||||
_show_synthetic_create((await security_criteria.securities(_bus)).ToList());
|
||||
|
||||
void _show_synthetic_editor(IReadOnlyCollection<SecurityImmutable> securities) {
|
||||
void _show_synthetic_create(IReadOnlyCollection<SecurityImmutable> securities) {
|
||||
if (securities.Count == 1) {
|
||||
var sec = securities.First();
|
||||
switch (sec.ContractCase) {
|
||||
case Security.ContractOneofCase.Future: _show_synthetic_editor(new ContractLegImmutable[] { SyntheticDataHelper.Defaults.ContractLeg(sec) }); break;
|
||||
case Security.ContractOneofCase.Spread: _show_synthetic_editor(sec.Spread.Legs); break;
|
||||
case Security.ContractOneofCase.Future: _show_synthetic_create(new ContractLegImmutable[] { SyntheticDataHelper.Defaults.ContractLeg(sec) }); break;
|
||||
case Security.ContractOneofCase.Spread: _show_synthetic_create(sec.Spread.Legs); break;
|
||||
case Security.ContractOneofCase.Synthetic: _show_synthetic_strategy_async(sec).ignore(); break;
|
||||
default: Logger.warn(log.Subsystem.Ui, $"{GetType()} unable to process security: {sec}"); break;
|
||||
}
|
||||
} else
|
||||
_show_synthetic_editor(securities.Select(s => new ContractLegImmutable(SyntheticDataHelper.Defaults.ContractLeg(s))));
|
||||
_show_synthetic_create(securities.Select(s => new ContractLegImmutable(SyntheticDataHelper.Defaults.ContractLeg(s))));
|
||||
}
|
||||
|
||||
void _show_synthetic_strategy(SecurityImmutable security) {
|
||||
@@ -53,19 +53,19 @@ namespace bts.shell
|
||||
|
||||
async Task _show_synthetic_strategy_async(SecurityImmutable verified_synthetic) {
|
||||
var lookup = await _model.lookup_strategy_async(verified_synthetic);
|
||||
if (lookup.success) _show_synthetic_editor(verified_synthetic, lookup.result.CloneToMutable());
|
||||
if (lookup.success) _show_synthetic_create(verified_synthetic, lookup.result.CloneToMutable());
|
||||
}
|
||||
|
||||
void _show_synthetic_editor(IEnumerable<ContractLegImmutable> legs) {
|
||||
void _show_synthetic_create(IEnumerable<ContractLegImmutable> legs) {
|
||||
var syn = new SyntheticContract();
|
||||
foreach (var l in legs) syn.Legs.Add(l.CloneToMutable());
|
||||
var sec = new SecurityImmutable(new Security { Synthetic = syn });
|
||||
_show_synthetic_editor(sec, SyntheticDataHelper.Defaults.ExecutionStrategy(sec));
|
||||
_show_synthetic_create(sec, SyntheticDataHelper.Defaults.ExecutionStrategy(sec));
|
||||
}
|
||||
|
||||
void _show_synthetic_editor(SecurityImmutable synthetic, ExecutionStrategy strategy) {
|
||||
new SyntheticEditorDialog {
|
||||
DataContext = new SyntheticEditorVM(_model, synthetic, strategy)
|
||||
void _show_synthetic_create(SecurityImmutable synthetic, ExecutionStrategy strategy) {
|
||||
new SyntheticCreationDialog {
|
||||
DataContext = new SyntheticEditorVM(_bus, _model, synthetic, strategy)
|
||||
}.Show(-250, -200, true);
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace bts.shell
|
||||
void IInitializable.initialize() {
|
||||
Disposable.dispose(ref _dispose);
|
||||
_dispose = Disposable.Create(
|
||||
_bus.subscribe(SparkTags.ShowSyntheticCreateTag).ObserveOnDispatcher().Subscribe(_show_synthetic_editor),
|
||||
_bus.subscribe(SparkTags.ShowSyntheticCreateTag).ObserveOnDispatcher().Subscribe(_show_synthetic_create),
|
||||
_bus.subscribe(SparkTags.ShowSyntheticStrategyTag).ObserveOnDispatcher().Subscribe(_show_synthetic_strategy)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using bts.api;
|
||||
using bts.api.core;
|
||||
using bts.api.synthetic;
|
||||
using bts.spark;
|
||||
using System;
|
||||
@@ -7,6 +6,7 @@ using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.ComponentModel.Composition;
|
||||
using System.Reactive.Linq;
|
||||
using System.Reactive.Subjects;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace mbts.spark
|
||||
@@ -19,22 +19,28 @@ namespace mbts.spark
|
||||
_bus = bus;
|
||||
_service = service;
|
||||
_error = error;
|
||||
_dispose = Disposable.Create(
|
||||
_bus.subscribe(SparkTags.SecuritiesTag).ObserveOnDispatcher().Subscribe(md => _md = md),
|
||||
_bus.subscribe(SparkTags.SyntheticSecuritiesTag).ObserveOnDispatcher().Subscribe(sm => _strategy_map = sm)
|
||||
);
|
||||
_md_root = _bus.subscribe(SparkTags.SecuritiesTag).Select(md => _md = md).Publish();
|
||||
_strategy_root = _bus.subscribe(SparkTags.SyntheticSecuritiesTag).Select(s => _strategy = s).Publish();
|
||||
_dispose = Disposable.Create(_md_root.Connect(), _strategy_root.Connect());
|
||||
}
|
||||
|
||||
readonly IBus _bus;
|
||||
readonly SyntheticSecurityService _service;
|
||||
readonly ErrorReporter _error;
|
||||
readonly IConnectableObservable<IReadOnlyDictionary<uint, SecurityMD>> _md_root;
|
||||
readonly IConnectableObservable<IReadOnlyDictionary<uint, SyntheticExecutionStrategyImmutable>> _strategy_root;
|
||||
|
||||
IDisposable _dispose;
|
||||
IReadOnlyDictionary<uint, SecurityMD> _md = new ReadOnlyDictionary<uint, SecurityMD>(new Dictionary<uint, SecurityMD>());
|
||||
IReadOnlyDictionary<uint, SyntheticExecutionStrategyImmutable> _strategy_map = new ReadOnlyDictionary<uint, SyntheticExecutionStrategyImmutable>(new Dictionary<uint, SyntheticExecutionStrategyImmutable>());
|
||||
IReadOnlyDictionary<uint, SyntheticExecutionStrategyImmutable> _strategy = new ReadOnlyDictionary<uint, SyntheticExecutionStrategyImmutable>(new Dictionary<uint, SyntheticExecutionStrategyImmutable>());
|
||||
|
||||
public IObservable<IReadOnlyDictionary<uint, SecurityMD>> md => _md_root.StartWith(_md);
|
||||
public IObservable<IReadOnlyDictionary<uint, SyntheticExecutionStrategyImmutable>> strategy => _strategy_root.StartWith(_strategy);
|
||||
public IObservable<IReadOnlyDictionary<uint, (SyntheticExecutionStrategyImmutable strategy, SecurityMD md)>> strategy_tuple =>
|
||||
_md_root.CombineLatest(_strategy_root, (md, strategy_map) => strategy_map.MergeSubset(md)).StartWith(_strategy.MergeSubset(_md));
|
||||
|
||||
public async Task<(ExecutionStrategyImmutable result, bool success)> lookup_strategy_async(SecurityImmutable security) {
|
||||
var lookup = await WorkLoop.LookupAsync(() => _strategy_map, security.Id, sesi => sesi.ExecutionStrategy);
|
||||
var lookup = await WorkLoop.LookupAsync(() => _strategy, security.Id, sesi => sesi.ExecutionStrategy);
|
||||
if (!lookup.success)
|
||||
_error.report_error($"Could not find strategy for synthetic: {security}.", "Synthetic").ignore();
|
||||
return lookup;
|
||||
@@ -50,11 +56,11 @@ namespace mbts.spark
|
||||
return _error.handle_error(result, "Error saving execution strategy: {0}", r => r.Error, e => e == UpdateResult.Types.Error.Ok);
|
||||
}
|
||||
|
||||
uint? _handle_error(Result<CreateResult> result, string template) =>
|
||||
_error.handle_error(result, template, r => r.Error, e => e == CreateResult.Types.Error.Ok, r => new uint?(r.Key));
|
||||
//uint? _handle_error(Result<CreateResult> result, string template) =>
|
||||
// _error.handle_error(result, template, r => r.Error, e => e == CreateResult.Types.Error.Ok, r => new uint?(r.Key));
|
||||
|
||||
bool _handle_error(Result<UpdateResult> result, string template) =>
|
||||
_error.handle_error(result, template, r => r.Error, e => e == UpdateResult.Types.Error.Ok);
|
||||
//bool _handle_error(Result<UpdateResult> result, string template) =>
|
||||
// _error.handle_error(result, template, r => r.Error, e => e == UpdateResult.Types.Error.Ok);
|
||||
|
||||
#region IDisposable
|
||||
|
||||
|
||||
@@ -1,29 +1,26 @@
|
||||
using mbts.ui;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using bts.api;
|
||||
using bts.spark;
|
||||
using System.IO;
|
||||
using System.Windows.Media;
|
||||
using System.ComponentModel.Composition;
|
||||
using bts.api;
|
||||
using mbts.ui.shell;
|
||||
using mbts;
|
||||
using mbts.spark;
|
||||
using mbts.ui;
|
||||
using mbts.ui.shell;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.Composition;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace bts.shell
|
||||
{
|
||||
[Export(typeof(IShellModule))]
|
||||
class SpreaderShellModule : IShellModule {
|
||||
SyntheticSpreadsShellWindowFactory _sswf;
|
||||
SyntheticManagementWindowFactory _smwf;
|
||||
LatencyReportWindowFactory _lrwf;
|
||||
SpreaderModel _model;
|
||||
|
||||
[ImportingConstructor]
|
||||
public SpreaderShellModule(IBus bus, SpreaderModel spreader_model) {
|
||||
_sswf = new SyntheticSpreadsShellWindowFactory(this, bus);
|
||||
_smwf = new SyntheticManagementWindowFactory(this, bus, spreader_model);
|
||||
_lrwf = new LatencyReportWindowFactory(this, bus);
|
||||
_model = spreader_model;
|
||||
}
|
||||
@@ -34,23 +31,23 @@ namespace bts.shell
|
||||
public int priority => 30;
|
||||
|
||||
public IEnumerable<SparkCommand> actions => new[] {
|
||||
SparkCommands.ShowSyntheticSpreads,
|
||||
SparkCommands.PickSyntheticCreate
|
||||
SparkCommands.ShowSyntheticManagement,
|
||||
SparkCommands.PickSyntheticCreate,
|
||||
//SparkCommands.ShowLatencyReport
|
||||
};
|
||||
|
||||
public Task<IShellWindow> create(Stream load_stream) {
|
||||
if (ProtoBufSerializationHelper.try_deserialize(load_stream, out ShellSerializationHeader header)) {
|
||||
if (header.name == _sswf.name) return _sswf.load_window(load_stream, header.version);
|
||||
if (header.name == _smwf.name) return _smwf.load_window(load_stream, header.version);
|
||||
if (header.name == _lrwf.name) return _lrwf.load_window(load_stream, header.version);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
Disposable.dispose(ref _sswf);
|
||||
Disposable.dispose(ref _smwf);
|
||||
Disposable.dispose(ref _lrwf);
|
||||
Disposable.dispose(ref _model);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
-3
@@ -1,4 +1,4 @@
|
||||
<Window x:Class="mbts.ui.spark.SyntheticEditorDialog"
|
||||
<Window x:Class="mbts.ui.spark.SyntheticCreationDialog"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:u="clr-namespace:mbts.ui"
|
||||
@@ -10,7 +10,7 @@
|
||||
<Window.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="/Modules/Spreader/SyntheticEditor.xaml"/>
|
||||
<ResourceDictionary Source="/Modules/Spreader/ExecutionStrategyEditor.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</Window.Resources>
|
||||
@@ -19,7 +19,15 @@
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<usp:SyntheticEditor Margin="6" SyntheticName="{Binding name}" PriceCalc="{Binding price_calc}" ParameterRows="{Binding rows}" LegTuples="{Binding leg_tuples}" HorizontalAlignment="Stretch"/>
|
||||
<usp:ExecutionStrategyEditor HorizontalAlignment="Stretch" Margin="6"
|
||||
SyntheticName="{Binding name}"
|
||||
IsNew="{Binding is_new}"
|
||||
IsNewLegPopupOpen="{Binding is_new_leg_popup_open}"
|
||||
PriceCalc="{Binding price_calc}"
|
||||
ParameterRows="{Binding rows}"
|
||||
LegTuples="{Binding leg_tuples}"
|
||||
RemoveLegCommand="{Binding remove_leg}"
|
||||
ContractPickerModel="{Binding contract_picker_model}"/>
|
||||
<c:DialogSkirtOKCancel Grid.Row="1" OKCommand="{Binding commit}"/>
|
||||
</Grid>
|
||||
<u:WindowStyle.TitleContentTemplate>
|
||||
@@ -0,0 +1,14 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace mbts.ui.spark
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for SyntheticCreationDialog.xaml
|
||||
/// </summary>
|
||||
public partial class SyntheticCreationDialog : Window
|
||||
{
|
||||
public SyntheticCreationDialog() {
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace mbts.ui.spark
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for SyntheticEditorDialog.xaml
|
||||
/// </summary>
|
||||
public partial class SyntheticEditorDialog : Window
|
||||
{
|
||||
public SyntheticEditorDialog() {
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
<UserControl x:Class="mbts.ui.spark.SyntheticManagementView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:u="clr-namespace:mbts.ui"
|
||||
xmlns:c="clr-namespace:mbts.ui.controls">
|
||||
<UserControl.Resources>
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="/view/Controls/DataGridEx/Filters/Views/FilterTemplates.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
<Grid>
|
||||
<c:DataGridEx x:Name="grid" ItemsSource="{Binding rows_view}">
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn Header="Create Time" Binding="{Binding create_time}"
|
||||
c:DataGridFilterProperties.Filter="{Binding DataContext.create_time_filter, Source={u:DirectReference grid}}"
|
||||
c:DataGridFilterProperties.FilterActive="{Binding DataContext.create_time_filter.active, Source={u:DirectReference grid}}"
|
||||
c:DataGridFilterProperties.FilterTemplate="{StaticResource DiscreteValuesTemplate}"/>
|
||||
<DataGridTextColumn Header="Name" Binding="{Binding name}" CellStyle="{StaticResource RowHeaderCell}"
|
||||
c:DataGridFilterProperties.Filter="{Binding DataContext.name_filter, Source={u:DirectReference grid}}"
|
||||
c:DataGridFilterProperties.FilterActive="{Binding DataContext.name_filter.active, Source={u:DirectReference grid}}"
|
||||
c:DataGridFilterProperties.FilterTemplate="{StaticResource RegexFinder}"/>
|
||||
<DataGridTextColumn Header="Desc" Binding="{Binding security}" CellStyle="{StaticResource RowHeaderCell}"
|
||||
c:DataGridFilterProperties.Filter="{Binding DataContext.security_filter, Source={u:DirectReference grid}}"
|
||||
c:DataGridFilterProperties.FilterActive="{Binding DataContext.security_filter.active, Source={u:DirectReference grid}}"
|
||||
c:DataGridFilterProperties.FilterTemplate="{StaticResource DiscreteValuesTemplate}"/>
|
||||
<DataGridTextColumn Header="# Legs" Binding="{Binding n_legs}"
|
||||
c:DataGridFilterProperties.Filter="{Binding DataContext.n_legs_filter, Source={u:DirectReference grid}}"
|
||||
c:DataGridFilterProperties.FilterActive="{Binding DataContext.n_legs_filter.active, Source={u:DirectReference grid}}"
|
||||
c:DataGridFilterProperties.FilterTemplate="{StaticResource IntMinMaxTemplate}"/>
|
||||
</DataGrid.Columns>
|
||||
</c:DataGridEx>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,13 @@
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace mbts.ui.spark
|
||||
{
|
||||
/// <summary>
|
||||
/// Interaction logic for SyntheticManagementView.xaml
|
||||
/// </summary>
|
||||
public partial class SyntheticManagementView : UserControl
|
||||
{
|
||||
public SyntheticManagementView() =>
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
using bts.api;
|
||||
using bts.shell;
|
||||
using bts.spark;
|
||||
using mbts.ui;
|
||||
using mbts.ui.spark;
|
||||
using mbts.utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reactive.Linq;
|
||||
using System.Windows;
|
||||
|
||||
namespace mbts.spark
|
||||
{
|
||||
class SyntheticManagementWindow : SparkWindow<SyntheticManagementWindowFactory.StartupData>
|
||||
{
|
||||
public static SyntheticManagementWindow create(SyntheticManagementWindowFactory factory, IBus bus, SpreaderModel model, SyntheticManagementWindowFactory.StartupData state) {
|
||||
var window = new SyntheticManagementWindow(factory, bus, model);
|
||||
window.initialize(state);
|
||||
return window;
|
||||
}
|
||||
|
||||
SyntheticManagementWindow(SyntheticManagementWindowFactory factory, IBus bus, SpreaderModel model) : base("Synthetic Management", bus, factory, SparkCommands.ShowSyntheticManagement.icon) {
|
||||
_model = model;
|
||||
Commands = new SparkCommand[] {
|
||||
SparkCommand.create("Add", Icons.AddEncircled, SparkTags.ShowSyntheticCreateTag).complete(_vm.Observable.SelectMany(vm => vm.selected_securities_observable()), secs => secs.Count > 0, secs => new SecurityCriteria(secs)),
|
||||
SparkCommand.create("Remove", Icons.Trash2, SparkTags.NotImplemented),
|
||||
SparkCommand.create("Change", Icons.Knight, SparkTags.ShowSyntheticStrategyTag).complete(_vm.Observable.SelectMany(vm => vm.current_security_observable), s => s.HasValue, s => s.Value),
|
||||
SparkCommands.ShowLadder.complete(_vm.Observable.SelectMany(vm => vm.current_security_md), md => md.HasValue, md => md.Value),
|
||||
};
|
||||
}
|
||||
|
||||
SingleValuePump<SyntheticManagementVM> _vm = new SingleValuePump<SyntheticManagementVM>();
|
||||
SyntheticManagementWindowFactory.StartupData _state;
|
||||
SpreaderModel _model;
|
||||
SyntheticManagementView _view;
|
||||
|
||||
public void initialize(SyntheticManagementWindowFactory.StartupData state) {
|
||||
Logger.notnull(state);
|
||||
_state = state;
|
||||
_vm.Push(new SyntheticManagementVM(_bus, _model, state.sorting_criteria, state.filters));
|
||||
if (_view == null) _view = new SyntheticManagementView { DataContext = _vm.Current };
|
||||
else _view.DataContext = _vm.Current;
|
||||
}
|
||||
|
||||
public override UIElement Content => _view;
|
||||
public override IEnumerable<SparkCommand> Commands { get; }
|
||||
public override SyntheticManagementWindowFactory.StartupData SaveState => _state = new SyntheticManagementWindowFactory.StartupData(_vm.Current.rows_view.GetSortingCriteria(), _vm.Current.get_filter_states());
|
||||
|
||||
public override void Dispose() {
|
||||
Disposable.dispose(ref _vm);
|
||||
foreach (var c in Commands.OfType<IDisposable>()) c.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
using bts.api;
|
||||
using mbts.spark;
|
||||
using mbts.ui;
|
||||
using ProtoBuf;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Reactive.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using static mbts.spark.DataGridColumnFilters;
|
||||
|
||||
namespace bts.shell
|
||||
{
|
||||
class SyntheticManagementWindowFactory : ShellWindowFactory<SyntheticManagementWindowFactory.StartupData>
|
||||
{
|
||||
public SyntheticManagementWindowFactory(SpreaderShellModule module, IBus bus, SpreaderModel model) : base(module, "SyntheticManagement") {
|
||||
_bus = bus;
|
||||
_model = model;
|
||||
_dispose = bus.subscribe(SparkTags.ShowSyntheticManagementTag).ObserveOnDispatcher().Subscribe(show);
|
||||
}
|
||||
|
||||
readonly IBus _bus;
|
||||
readonly SpreaderModel _model;
|
||||
|
||||
public override Task<IShellWindow> load(StartupData state) =>
|
||||
Task.FromResult<IShellWindow>(SyntheticManagementWindow.create(this, _bus, _model, state));
|
||||
|
||||
public async void show(SparkTags.Nothing nothing) =>
|
||||
_bus.post(SparkTags.ShowWindow, await load(new StartupData()));
|
||||
|
||||
[ProtoContract]
|
||||
public class StartupData
|
||||
{
|
||||
public const int Version = 1;
|
||||
public StartupData() : this(new List<SortingCriteria>(), null) { }
|
||||
public StartupData(List<SortingCriteria> sorting_criteria, FilterStates filters) {
|
||||
this.sorting_criteria = sorting_criteria;
|
||||
this.filters = filters;
|
||||
}
|
||||
[ProtoMember(1)]
|
||||
public readonly List<SortingCriteria> sorting_criteria;
|
||||
[ProtoMember(2)]
|
||||
public readonly FilterStates filters;
|
||||
}
|
||||
|
||||
[ProtoContract]
|
||||
public class FilterStates
|
||||
{
|
||||
[ProtoMember(1)]
|
||||
public SecurityCriteria security;
|
||||
[ProtoMember(2)]
|
||||
public TimeFilterState create_time;
|
||||
[ProtoMember(3)]
|
||||
public string name;
|
||||
[ProtoMember(4)]
|
||||
public IntMinMaxState n_legs;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,7 @@ using System.Reactive.Linq;
|
||||
namespace mbts.spark
|
||||
{
|
||||
internal partial class SyntheticEditorVM {
|
||||
internal interface IRowModel : SyntheticEditor.IParameterViewMetadata {
|
||||
internal interface IRowModel : ExecutionStrategyEditor.IParameterViewMetadata {
|
||||
string display_name { get; }
|
||||
bool has_errors(IReadOnlyCollection<LegSpreaderParamsTuple> leg_tups);
|
||||
ICell create_cell(LegSpreaderParamsTuple leg_tup);
|
||||
|
||||
@@ -1,30 +1,29 @@
|
||||
using bts.api;
|
||||
using mbts.collections;
|
||||
using mbts.ui.controls;
|
||||
using mbts.ui.spark;
|
||||
using mbts.utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
|
||||
namespace mbts.spark
|
||||
{
|
||||
internal partial class SyntheticEditorVM
|
||||
{
|
||||
internal class RowVM : DataGridExRow<Security>, SyntheticEditor.IParameterViewMetadata, IDisposable {
|
||||
public RowVM(IRowModel model, IReadOnlyCollection<LegSpreaderParamsTuple> legs) {
|
||||
internal partial class SyntheticEditorVM {
|
||||
internal class RowVM : DataGridExRow<Security>, ExecutionStrategyEditor.IParameterViewMetadata, IDisposable {
|
||||
readonly ObservantDictionary<Security, ICell, LegSpreaderParamsTuple> _cells;
|
||||
readonly Property<bool> _has_errors;
|
||||
|
||||
public RowVM(IRowModel model, ObservableCollection<LegSpreaderParamsTuple> legs) {
|
||||
display_name = model.display_name;
|
||||
section_path = model.section_path;
|
||||
read_only = model.read_only;
|
||||
_has_errors = backing(nameof(has_errors), false);
|
||||
_cells = new ReadOnlyDictionary<Security, ICell>(legs.ToDictionary(l => l.leg.Security, model.create_cell));
|
||||
foreach (var c in _cells.Values) {
|
||||
c.value_changed += () => _has_errors.set(model.has_errors(legs));
|
||||
}
|
||||
_cells = ObservantDictionary.Create(legs, l => l.leg.Security, model.create_cell, EqualityComparer.Create<Security, uint>(s => s.Id));
|
||||
_cells.ValueDestroyed += c => (c as IDisposable)?.Dispose();
|
||||
foreach (var c in _cells.Values) c.value_changed += () => _has_errors.set(model.has_errors(legs));
|
||||
}
|
||||
|
||||
private readonly IReadOnlyDictionary<Security, ICell> _cells;
|
||||
private readonly Property<bool> _has_errors;
|
||||
|
||||
public string display_name { get; }
|
||||
public string[] section_path { get; }
|
||||
public int section_count => section_path.Length;
|
||||
@@ -32,7 +31,10 @@ namespace mbts.spark
|
||||
public override object get_cell(Security col_key) { return _cells[col_key]; }
|
||||
public string this[string section_no] => int.TryParse(section_no, out int i) && i < section_path.Length ? section_path[i] : null;
|
||||
public bool has_errors => _has_errors.Value;
|
||||
public void Dispose() { foreach (var c in _cells.Values.OfType<IDisposable>()) c.Dispose(); }
|
||||
|
||||
public void Dispose() {
|
||||
foreach (var c in _cells.Values.OfType<IDisposable>()) c.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,12 @@
|
||||
using bts.api;
|
||||
using bts.spark;
|
||||
using mbts.spark.utilities;
|
||||
using mbts.ui;
|
||||
using mbts.ui.shell;
|
||||
using mbts.ui.spark;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
@@ -13,20 +16,29 @@ namespace mbts.spark
|
||||
/// <summary>
|
||||
/// The view model designed to serve as the DataContext for the SyntheticEditor2 control
|
||||
/// </summary>
|
||||
internal partial class SyntheticEditorVM : IDisposable {
|
||||
internal partial class SyntheticEditorVM : ViewModelBase, IDisposable {
|
||||
/// <summary>
|
||||
/// Initializes a new instance of SyntheticEditorVM2 class. The commit command will create a new Synthetic if synthetic's Id is 0, otherwise it will modify the existing synthetic's strategy.
|
||||
/// Initializes a new instance of SyntheticEditorVM class. The commit command will create a new Synthetic if synthetic's Id is 0, otherwise it will modify the existing synthetic's strategy.
|
||||
/// </summary>
|
||||
/// <param name="bus">The application bus</param>
|
||||
/// <param name="synthetic">The new synthetic security to create, or existing synthetic security who's strategy to modify, on commit</param>
|
||||
/// <param name="strategy">The new strategy to create, or existing strategy to modify, on commit</param>
|
||||
public SyntheticEditorVM(SpreaderModel model, SecurityImmutable synthetic, ExecutionStrategy strategy) {
|
||||
public SyntheticEditorVM(IBus bus, SpreaderModel model, SecurityImmutable synthetic, ExecutionStrategy strategy) {
|
||||
_synthetic = synthetic.CloneToMutable();
|
||||
leg_tuples = _synthetic.Synthetic.Legs.Select(l => new LegSpreaderParamsTuple(l, strategy.LegParamsMap[l.Security.Id])).ToList();
|
||||
bool is_new = synthetic.Id == 0;
|
||||
leg_tuples = new ObservableCollection<LegSpreaderParamsTuple>(_synthetic.Synthetic.Legs.Select(l => new LegSpreaderParamsTuple(l, strategy.LegParamsMap[l.Security.Id])));
|
||||
is_new = synthetic.Id == 0;
|
||||
if (is_new) {
|
||||
title = "Create Synthetic Spread";
|
||||
icon = Icons.Tetris;
|
||||
contract_picker_model = new ContractPickerModel(bus, false, null);
|
||||
contract_picker_model.close_action = () => {
|
||||
if (!leg_tuples.Any(l => l.leg.Security.Id == contract_picker_model.result.security.Id)) {
|
||||
leg_tuples.Add(new LegSpreaderParamsTuple(SyntheticDataHelper.Defaults.ContractLeg(contract_picker_model.result.security), SyntheticDataHelper.Defaults.LegSpreaderParams));
|
||||
is_new_leg_popup_open = false;
|
||||
RaisePropertyChanged(nameof(is_new_leg_popup_open));
|
||||
}
|
||||
};
|
||||
remove_leg = new DelegateCommand<Security>(s => leg_tuples.removeFirst(l => l.leg.Security.Id == s.Id));
|
||||
commit = new DelegateCommand(async () => {
|
||||
uint? id = await model.create_synthetic(synthetic);
|
||||
if (id.HasValue)
|
||||
@@ -58,18 +70,22 @@ namespace mbts.spark
|
||||
new PostHedgePriceBasedCrossMarketTicks(),
|
||||
new PostHedgeTimeBasedCrossTicks(),
|
||||
new PostHedgeTimeBasedCrossMarketTicks()
|
||||
}.Select(m => new RowVM(m, leg_tuples)).ToList();
|
||||
}.Select(m => new RowVM(m, leg_tuples)).ToList();
|
||||
}
|
||||
|
||||
private readonly Security _synthetic;
|
||||
readonly Security _synthetic;
|
||||
|
||||
public string title { get; }
|
||||
public ImageSource icon { get; }
|
||||
public string name { get => _synthetic.Synthetic.Name; set => _synthetic.Synthetic.Name = value; }
|
||||
public bool is_new { get; }
|
||||
public bool is_new_leg_popup_open { get; set; }
|
||||
public SyntheticContract.Types.PriceCalc price_calc { get => _synthetic.Synthetic.PriceCalc; set => _synthetic.Synthetic.PriceCalc = value; }
|
||||
public IReadOnlyCollection<LegSpreaderParamsTuple> leg_tuples { get; }
|
||||
public ObservableCollection<LegSpreaderParamsTuple> leg_tuples { get; }
|
||||
public IReadOnlyCollection<RowVM> rows { get; }
|
||||
public ICommand commit { get; }
|
||||
public ICommand remove_leg { get; }
|
||||
public ContractPickerModel contract_picker_model { get; }
|
||||
|
||||
public void Dispose() {
|
||||
foreach (var r in rows) r.Dispose();
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
using bts.api;
|
||||
using bts.spark;
|
||||
using mbts.ui;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reactive.Linq;
|
||||
using static bts.shell.SyntheticManagementWindowFactory;
|
||||
using static mbts.spark.DataGridColumnFilters;
|
||||
|
||||
namespace mbts.spark
|
||||
{
|
||||
class SyntheticManagementVM : SecurityMDGrid<SyntheticManagementVM.Row, (SyntheticExecutionStrategyImmutable strategy, SecurityMD md)>
|
||||
{
|
||||
public SyntheticManagementVM(IBus bus, SpreaderModel model) : this(bus, model, null, null) { }
|
||||
public SyntheticManagementVM(IBus bus, SpreaderModel model, IReadOnlyCollection<SortingCriteria> sorting, FilterStates filters)
|
||||
: base(model.strategy_tuple.Select(map => map.Values), sorting) {
|
||||
_model = model;
|
||||
security_filter = new DiscreteValuesOneof<Row, SecurityImmutable, SecurityCriteria>(r => r.security.Synthetic.Legs.Select(l => l.Security), secs => new SecurityCriteria(secs), sc => sc.securities(bus), nameof(Row.security));
|
||||
}
|
||||
|
||||
readonly SpreaderModel _model;
|
||||
|
||||
protected override Row row_factory((SyntheticExecutionStrategyImmutable strategy, SecurityMD md) row_model) => new Row(row_model.md, row_model.strategy);
|
||||
|
||||
#region Filters
|
||||
public IDataGridColumnPersistentFilter<Row, TimeFilterState> create_time_filter { get; } = new Time<Row>(r => r.create_time, nameof(Row.create_time));
|
||||
public IDataGridColumnPersistentFilter<Row, string> name_filter { get; } = new RegexFinder<Row>(r => r.name, nameof(Row.name));
|
||||
public IDataGridColumnPersistentFilter<Row, SecurityCriteria> security_filter { get; }
|
||||
public IDataGridColumnPersistentFilter<Row, IntMinMaxState> n_legs_filter { get; } = new IntMinMax<Row>(r => r.n_legs, nameof(Row.n_legs));
|
||||
|
||||
public FilterStates get_filter_states() =>
|
||||
new FilterStates {
|
||||
security = security_filter.get_state(),
|
||||
create_time = create_time_filter.get_state(),
|
||||
name = name_filter.get_state(),
|
||||
n_legs = n_legs_filter.get_state()
|
||||
};
|
||||
#endregion
|
||||
|
||||
public class Row : SecurityMDRow
|
||||
{
|
||||
public Row(SecurityMD security_md, SyntheticExecutionStrategyImmutable strategy) : base(security_md) =>
|
||||
_strategy = strategy;
|
||||
|
||||
readonly SyntheticExecutionStrategyImmutable _strategy;
|
||||
|
||||
public DateTime create_time => DateTime.Now;
|
||||
public string name => security.Synthetic.Name;
|
||||
public int n_legs => _strategy.Security.Synthetic.Legs.Count();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,7 +34,7 @@ namespace mbts.spark
|
||||
SparkCommands.ShowMarketView.complete(_vm.Observable.SelectMany(vm => vm.selected_securities_observable()), secs => secs.Count > 0, secs => new SecurityCriteria(secs)),
|
||||
// SpreadMatrix ??
|
||||
// SyntheticCreate
|
||||
SparkCommands.ShowSyntheticSpreads,
|
||||
SparkCommands.ShowSyntheticManagement,
|
||||
// ModifyOrder - await orders
|
||||
// CancelOrdersRoot ?
|
||||
//SparkCommands.CancelBuyOrders,
|
||||
|
||||
@@ -8,7 +8,7 @@ using System.Collections.Generic;
|
||||
namespace bts.spark
|
||||
{
|
||||
static class SparkCommands
|
||||
{
|
||||
{
|
||||
// Market
|
||||
public static PartialCommand<SecurityCriteria> ShowMarketView =>
|
||||
SparkCommand.create("Market View", Icons.Sheets, SparkTags.ShowMarketViewTag);
|
||||
@@ -55,12 +55,12 @@ namespace bts.spark
|
||||
public static PartialCommand<SecurityImmutable> ShowSyntheticStrategy =>
|
||||
SparkCommand.create("Execution Strategy", Icons.Knight, SparkTags.ShowSyntheticStrategyTag);
|
||||
|
||||
public static SparkCommand ShowSyntheticSpreads =>
|
||||
SparkCommand.create("Synthetic Spreads", Icons.Spreads, SparkTags.NotImplemented);
|
||||
public static SparkCommand ShowSyntheticManagement =>
|
||||
SparkCommand.create("Synthetic Management", Icons.Spreads, SparkTags.ShowSyntheticManagementTag);
|
||||
|
||||
public static SparkCommand ShowLatencyReport =>
|
||||
SparkCommand.create("Latency Report", Icons.Analytics, SparkTags.NotImplemented);
|
||||
|
||||
|
||||
// Settings
|
||||
public static SparkCommand ShowWorkspaces =>
|
||||
SparkCommand.create("Workspaces", Icons.FavoriteWindow, SparkTags.ShowWorkspaces);
|
||||
@@ -92,6 +92,5 @@ namespace bts.spark
|
||||
SparkCommand.create("Cancel Sells", Icons.CancelSells, SparkTags.CancelOrders);
|
||||
public static PartialCommand<bts.api.orderman2.OrderRecordImmutable> ShowModifyOrder =>
|
||||
SparkCommand.create("Modify", Icons.ModifyOrder, SparkTags.ShowModifyOrderTag);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -40,11 +40,12 @@ namespace mbts.spark
|
||||
public static ITag<OrderID> ShowOrderDetailsTag { get; } = new SparkTag<OrderID>(nameof(ShowOrderDetailsTag));
|
||||
public static ITag<ShowOrderModifyMessage> ShowOrderModifyTag { get; } = new SparkTag<ShowOrderModifyMessage>(nameof(ShowOrderModifyTag));
|
||||
public static ITag<SecurityMD> ShowOrderTicketFromSecurityTag = new SparkTag<SecurityMD>(nameof(ShowOrderTicketFromSecurityTag));
|
||||
public static ITag<(OrderDefinitionImmutable def, double price, uint size)> ShowOrderTicketTag = new SparkTag<(OrderDefinitionImmutable def, double price, uint size)> (nameof(ShowOrderTicketTag));
|
||||
public static ITag<(OrderDefinitionImmutable def, double price, uint size)> ShowOrderTicketTag = new SparkTag<(OrderDefinitionImmutable def, double price, uint size)>(nameof(ShowOrderTicketTag));
|
||||
public static ITag<Nothing> ShowPositionsTag { get; } = new SparkTag<Nothing>(nameof(ShowPositionsTag));
|
||||
public static ITag<ShowSpreadMatrixMessage> ShowSpreadMatrixTag { get; } = new SparkTag<ShowSpreadMatrixMessage>(nameof(ShowSpreadMatrixTag));
|
||||
public static ITag<SecurityCriteria> ShowSyntheticCreateTag { get; } = new SparkTag<SecurityCriteria>(nameof(ShowSyntheticCreateTag));
|
||||
public static ITag<SecurityImmutable> ShowSyntheticStrategyTag { get; } = new SparkTag<SecurityImmutable>(nameof(ShowSyntheticStrategyTag));
|
||||
public static ITag<Nothing> ShowSyntheticManagementTag { get; } = new SparkTag<Nothing>(nameof(ShowSyntheticManagementTag));
|
||||
public static ITag<SecurityCriteria> ShowTimeAndSalesTag { get; } = new SparkTag<SecurityCriteria>("Show TimeAndSales");
|
||||
|
||||
public static ITag<Nothing> ShowWorkspaces { get; } = new SparkTag<Nothing>(nameof(ShowWorkspaces));
|
||||
|
||||
@@ -87,6 +87,26 @@ namespace System.Collections.Generic
|
||||
if (!target.TryGetValue(k1, out d)) target.Add(k1, d = Activator.CreateInstance<VKD>());
|
||||
d[k2] = value;
|
||||
}
|
||||
|
||||
public static IReadOnlyDictionary<TKey, (TValue1, TValue2)> MergeSubset<TKey, TValue1, TValue2>(this IReadOnlyDictionary<TKey, TValue1> dictionary, IReadOnlyDictionary<TKey, TValue2> merge_target) =>
|
||||
MergeSubset(dictionary, merge_target, (v1, v2) => (v1, v2));
|
||||
|
||||
public static IReadOnlyDictionary<TKey, TResult> MergeSubset<TKey, TValue1, TValue2, TResult>(this IReadOnlyDictionary<TKey, TValue1> dictionary, IReadOnlyDictionary<TKey, TValue2> merge_target, Func<TValue1, TValue2, TResult> select) {
|
||||
var iks = dictionary.Keys.Intersect(merge_target.Keys);
|
||||
return new ReadOnlyDictionary<TKey, TResult>(iks.ToDictionary(k => k, k => select(dictionary[k], merge_target[k])));
|
||||
}
|
||||
|
||||
public static IReadOnlyDictionary<TKey, (TValue1, TValue2)> MergeSuperset<TKey, TValue1, TValue2>(this IReadOnlyDictionary<TKey, TValue1> dictionary, IReadOnlyDictionary<TKey, TValue2> merge_target) {
|
||||
var eks1 = dictionary.Keys.Except(merge_target.Keys);
|
||||
var eks2 = merge_target.Keys.Except(dictionary.Keys);
|
||||
var iks = dictionary.Keys.Intersect(merge_target.Keys);
|
||||
return new ReadOnlyDictionary<TKey, (TValue1, TValue2)>(eks1
|
||||
.Select(k => (k, dictionary[k], default(TValue2)))
|
||||
.Concat(eks2.Select(k => (k, default(TValue1), merge_target[k])))
|
||||
.Concat(iks.Select(k => (k, dictionary[k], merge_target[k])))
|
||||
.ToDictionary(vals => vals.k, vals => (vals.Item2, vals.Item3))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
public static class ListExtensions
|
||||
|
||||
@@ -466,9 +466,20 @@ namespace System.Reactive.Linq
|
||||
return dead.Merge(alive).DistinctUntilChanged();
|
||||
}
|
||||
|
||||
public static IObservable<(TSource prev, TSource curr)> PairWithPrevious<TSource>(this IObservable<TSource> source) {
|
||||
return source.Scan<TSource, (TSource prev, TSource curr)>((default(TSource), default(TSource)), (last, next) => (last.curr, next));
|
||||
}
|
||||
public static IObservable<(TSource prev, TSource curr)> PairWithPrevious<TSource>(this IObservable<TSource> source) =>
|
||||
source.Scan<TSource, (TSource prev, TSource curr)>((default(TSource), default(TSource)), (last, next) => (last.curr, next));
|
||||
|
||||
public static async Task<T> FirstAsyncTask<T>(this IObservable<T> source) =>
|
||||
await source.FirstAsync();
|
||||
|
||||
public static async Task<T> FirstAsyncTask<T>(this IObservable<T> source, Func<T, bool> predicate) =>
|
||||
await source.FirstAsync(predicate);
|
||||
|
||||
public static async Task<(T result, bool success)> FirstAsyncTask<T>(this IObservable<T> source, TimeSpan timeout) =>
|
||||
await source.Select(val => (val, true)).Merge(Observable.Return((default(T), false)).Delay(timeout)).FirstAsync();
|
||||
|
||||
public static async Task<(T result, bool success)> FirstAsyncTask<T>(this IObservable<T> source, Func<T, bool> predicate, TimeSpan timeout) =>
|
||||
await source.Where(predicate).Select(val => (val, true)).Merge(Observable.Return((default(T), false)).Delay(timeout)).FirstAsync();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Collections.Specialized;
|
||||
using System.Linq;
|
||||
|
||||
namespace mbts.collections
|
||||
{
|
||||
public static class ObservantDictionary {
|
||||
public static ObservantDictionary<TKey, TValue, TModel> Create<TKey, TModel, TValue>(ObservableCollection<TModel> models, Func<TModel, TKey> key_selector, Func<TModel, TValue> value_selector) =>
|
||||
new ObservantDictionary<TKey, TValue, TModel>(models, key_selector, value_selector);
|
||||
|
||||
public static ObservantDictionary<TKey, TView, TModel> Create<TKey, TModel, TView>(ObservableCollection<TModel> models, Func<TModel, TKey> key_selector, Func<TModel, TView> view_selector, IEqualityComparer<TKey> comparer) =>
|
||||
new ObservantDictionary<TKey, TView, TModel>(models, key_selector, view_selector, comparer);
|
||||
}
|
||||
|
||||
public class ObservantDictionary<TKey, TValue, TModel> : Dictionary<TKey, TValue> {
|
||||
readonly ObservableCollection<TModel> _models;
|
||||
readonly Func<TModel, TKey> _key;
|
||||
readonly Func<TModel, TValue> _value;
|
||||
|
||||
public ObservantDictionary(ObservableCollection<TModel> models, Func<TModel, TKey> key_selector, Func<TModel, TValue> view_selector)
|
||||
: this(models, key_selector, view_selector, EqualityComparer<TKey>.Default) { }
|
||||
|
||||
public ObservantDictionary(ObservableCollection<TModel> models, Func<TModel, TKey> key_selector, Func<TModel, TValue> value_selector, IEqualityComparer<TKey> comparer) : base(comparer) {
|
||||
_key = key_selector;
|
||||
_value = value_selector;
|
||||
_models = models;
|
||||
foreach (TModel m in _models) _add(m);
|
||||
_models.CollectionChanged += _models_CollectionChanged;
|
||||
}
|
||||
|
||||
public event Action<TValue, TModel> ValueCreated;
|
||||
public event Action<TValue> ValueDestroyed;
|
||||
|
||||
void _models_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) {
|
||||
switch (e.Action) {
|
||||
case NotifyCollectionChangedAction.Add: foreach (TModel m in e.NewItems) _add(m); break;
|
||||
case NotifyCollectionChangedAction.Remove: foreach (TModel m in e.OldItems) _remove(m); break;
|
||||
case NotifyCollectionChangedAction.Replace:
|
||||
foreach (TModel m in e.NewItems) _add(m);
|
||||
foreach (TModel m in e.OldItems) _remove(m);
|
||||
break;
|
||||
case NotifyCollectionChangedAction.Reset:
|
||||
var old_views = Values.ToLArray();
|
||||
Clear();
|
||||
foreach (TValue v in old_views) ValueDestroyed?.Invoke(v);
|
||||
foreach (TModel m in _models) _add(m);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void _add(TModel m) {
|
||||
TKey k = _key(m);
|
||||
TValue v = _value(m);
|
||||
Add(k, v);
|
||||
ValueCreated?.Invoke(v, m);
|
||||
}
|
||||
|
||||
void _remove(TModel m) {
|
||||
TKey k = _key(m);
|
||||
TValue v = this[k];
|
||||
Remove(k);
|
||||
ValueDestroyed?.Invoke(v);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -34,25 +34,39 @@ namespace mbts.ui.controls
|
||||
|
||||
#region DataContextChanged
|
||||
|
||||
private void OnDataContextChanged(object sender, DependencyPropertyChangedEventArgs e) {
|
||||
Disposable.dispose(ref _cell_selection_handler);
|
||||
void OnDataContextChanged(object sender, DependencyPropertyChangedEventArgs e) {
|
||||
Disposable.dispose(ref _selection_handler);
|
||||
var hcs = e.NewValue as IHandleCellSelection;
|
||||
if (hcs != null) _cell_selection_handler = new MyCellSelectionHandler(this, hcs);
|
||||
if (hcs != null) _selection_handler = new CellSelectionHandler(this, hcs);
|
||||
else {
|
||||
var hrs = e.NewValue as IHandleRowSelection;
|
||||
if (hrs != null) _selection_handler = new RowSelectionHandler(this, hrs);
|
||||
}
|
||||
}
|
||||
|
||||
private MyCellSelectionHandler _cell_selection_handler;
|
||||
IDisposable _selection_handler;
|
||||
|
||||
private class MyCellSelectionHandler : IDisposable
|
||||
{
|
||||
public MyCellSelectionHandler(DataGridEx owner, IHandleCellSelection vm) {
|
||||
private class CellSelectionHandler : IDisposable {
|
||||
public CellSelectionHandler(DataGridEx owner, IHandleCellSelection vm) {
|
||||
_vm = vm;
|
||||
_owner = owner;
|
||||
_owner.SelectedCellsChanged += OnSelectedCellsChanged;
|
||||
}
|
||||
private readonly DataGridEx _owner;
|
||||
private readonly IHandleCellSelection _vm;
|
||||
private void OnSelectedCellsChanged(object sender, SelectedCellsChangedEventArgs e) { _vm.cell_selection_changed(e.AddedCells, e.RemovedCells); }
|
||||
public void Dispose() { _owner.SelectedCellsChanged -= OnSelectedCellsChanged; }
|
||||
readonly DataGridEx _owner;
|
||||
readonly IHandleCellSelection _vm;
|
||||
void OnSelectedCellsChanged(object sender, SelectedCellsChangedEventArgs e) => _vm.cell_selection_changed(e.AddedCells, e.RemovedCells);
|
||||
public void Dispose() => _owner.SelectedCellsChanged -= OnSelectedCellsChanged;
|
||||
}
|
||||
|
||||
private class RowSelectionHandler : IDisposable {
|
||||
public RowSelectionHandler(DataGridEx owner, IHandleRowSelection vm) {
|
||||
_vm = vm;
|
||||
(_owner = owner).SelectionChanged += OnSelectionChanged;
|
||||
}
|
||||
readonly DataGridEx _owner;
|
||||
readonly IHandleRowSelection _vm;
|
||||
void OnSelectionChanged(object sender, SelectionChangedEventArgs e) => _vm.row_selection_changed(e);
|
||||
public void Dispose() => _owner.SelectionChanged -= OnSelectionChanged;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -340,7 +340,7 @@ namespace mbts.spark
|
||||
readonly Func<IEnumerable<TValue>, TState> _get_state;
|
||||
readonly ObservableCollectionEx<TValue> _selected_items = new ObservableCollectionEx<TValue>();
|
||||
|
||||
void _selected_items_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { _raise_filter_changed(); }
|
||||
void _selected_items_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) => _raise_filter_changed();
|
||||
|
||||
protected override bool _get_active() => _selected_items.Count > 0;
|
||||
protected override bool _filter(TValue value) => selected_items.Contains(value);
|
||||
@@ -369,6 +369,43 @@ namespace mbts.spark
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region DiscreteValuesOneof
|
||||
public class DiscreteValuesOneof<TRow, TValue, TState> : FilterBase<TRow, IEnumerable<TValue>, TState>
|
||||
{
|
||||
//public DiscreteValuesOneof
|
||||
public DiscreteValuesOneof(Func<TRow, IEnumerable<TValue>> get_row_vals, Func<IEnumerable<TValue>, TState> get_state, Func<TState, Task<IEnumerable<TValue>>> load_state, string prop_name) : base(get_row_vals, prop_name) {
|
||||
_get_row_vals = get_row_vals;
|
||||
_get_state = get_state;
|
||||
_load_state = load_state;
|
||||
}
|
||||
|
||||
readonly Func<TState, Task<IEnumerable<TValue>>> _load_state;
|
||||
readonly Func<IEnumerable<TValue>, TState> _get_state;
|
||||
readonly Func<TRow, IEnumerable<TValue>> _get_row_vals;
|
||||
readonly ObservableCollectionEx<TValue> _selected_items = new ObservableCollectionEx<TValue>();
|
||||
|
||||
void _selected_items_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) => _raise_filter_changed();
|
||||
|
||||
protected override bool _get_active() => _selected_items.Count > 0;
|
||||
protected override bool _filter(IEnumerable<TValue> value) => value.Any(_selected_items.Contains);
|
||||
public override async void load_state(TState state) {
|
||||
if (state != null) {
|
||||
_selected_items.CollectionChanged -= _selected_items_CollectionChanged;
|
||||
int n_tries = 0;
|
||||
var e_items = await _load_state(state);
|
||||
var l_items = e_items.ToList();
|
||||
while (!l_items.All(items.Contains) && ++n_tries < 50) await Task.Delay(100);
|
||||
_selected_items.sync_with(l_items);
|
||||
_raise_filter_changed();
|
||||
_selected_items.CollectionChanged += _selected_items_CollectionChanged;
|
||||
}
|
||||
}
|
||||
public override TState get_state() => _get_state(_selected_items);
|
||||
public ObservableCollection<TValue> items { get; set; }
|
||||
public IObservableCollectionEx<TValue> selected_items => _selected_items;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region RegexFinder
|
||||
public class RegexFinder<TRow> : FilterBase<TRow, string, string>
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace mbts.ui.controls
|
||||
@@ -10,7 +11,12 @@ namespace mbts.ui.controls
|
||||
|
||||
public static class CellSelectionMapper
|
||||
{
|
||||
public static void apply_changes<TRow, TCol>(ref IDictionary<TRow, HashSet<TCol>> selection_map, IList<DataGridCellInfo> added, IList<DataGridCellInfo> removed) where TRow : class {
|
||||
public static void apply_changes<TRow, TCol>(IDictionary<TRow, HashSet<TCol>> selection_map, IList<DataGridCellInfo> added, IList<DataGridCellInfo> removed, ObservableCollection<TRow> selected_rows) where TRow : class {
|
||||
apply_changes(selection_map, added, removed);
|
||||
selected_rows.sync_with(selection_map.Keys);
|
||||
}
|
||||
|
||||
public static void apply_changes<TRow, TCol>(IDictionary<TRow, HashSet<TCol>> selection_map, IList<DataGridCellInfo> added, IList<DataGridCellInfo> removed) where TRow : class {
|
||||
foreach (var cell_info in removed) {
|
||||
var row = cell_info.Item as TRow;
|
||||
if (row != null) {
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Windows.Controls;
|
||||
|
||||
namespace mbts.ui.controls
|
||||
{
|
||||
interface IHandleRowSelection
|
||||
{
|
||||
void row_selection_changed(SelectionChangedEventArgs e);
|
||||
}
|
||||
|
||||
static class RowSelectionHelper
|
||||
{
|
||||
public static void apply_changes<TRow>(ICollection<TRow> selected_rows, SelectionChangedEventArgs e) {
|
||||
if (e.RemovedItems != null) foreach (TRow row in e.RemovedItems) selected_rows.Remove(row);
|
||||
if (e.AddedItems != null) foreach (TRow row in e.AddedItems) selected_rows.Add(row);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -26,7 +26,7 @@
|
||||
IsDefault="{TemplateBinding IsOkDefault}"
|
||||
Command="{TemplateBinding OKCommand}"
|
||||
CommandParameter="{TemplateBinding OKCommandParameter}"
|
||||
u:Behavior.CloseWindow="True"
|
||||
u:Behavior.CloseWindow="{TemplateBinding CloseOnOK}"
|
||||
Style="{DynamicResource CommonButton}" />
|
||||
|
||||
<Button Grid.Column="1"
|
||||
|
||||
@@ -17,11 +17,13 @@ namespace mbts.ui.controls
|
||||
public static readonly DependencyProperty IsOkDefaultProperty = DependencyProperty.Register("IsOkDefault", typeof(bool), typeof(DialogSkirtOKCancel), new PropertyMetadata(true));
|
||||
public static readonly DependencyProperty OKCommandProperty = DependencyProperty.Register("OKCommand", typeof(ICommand), typeof(DialogSkirtOKCancel));
|
||||
public static readonly DependencyProperty OKCommandParameterProperty = DependencyProperty.Register("OKCommandParameter", typeof(object), typeof(DialogSkirtOKCancel));
|
||||
public static readonly DependencyProperty CloseOnOKProperty = DependencyProperty.Register(nameof(CloseOnOK), typeof(bool), typeof(DialogSkirtOKCancel), new PropertyMetadata(true));
|
||||
|
||||
public bool IsOkDefault { get { return (bool)GetValue(IsOkDefaultProperty); } set { SetValue(IsOkDefaultProperty, value); } }
|
||||
[Bindable(true)]
|
||||
public ICommand OKCommand { get { return GetValue(OKCommandProperty) as ICommand; } set { SetValue(OKCommandProperty, value); } }
|
||||
[Bindable(true)]
|
||||
public object OKCommandParameter { get { return GetValue(OKCommandParameterProperty); } set { SetValue(OKCommandParameterProperty, value); } }
|
||||
public bool CloseOnOK { get => (bool)GetValue(CloseOnOKProperty); set => SetValue(CloseOnOKProperty, value); }
|
||||
}
|
||||
}
|
||||
@@ -10,11 +10,13 @@
|
||||
<SolidColorBrush x:Key="StartMenuPressedBorderBrush" Color="#FFC29B29" />
|
||||
<SolidColorBrush x:Key="StartMenuPressedBackground" Color="#FFE3C085" />
|
||||
|
||||
<Color x:Key="Button.Static.BackgroundColor">#E1E1E1</Color>
|
||||
<Color x:Key="Button.MouseOver.BackgroundColor">#210080FF</Color>
|
||||
<Color x:Key="Button.MouseOver.BorderColor">#80DADADA</Color>
|
||||
<Color x:Key="Button.MousePressed.BackgroundColor">#400080FF</Color>
|
||||
<Color x:Key="Button.MousePressed.BorderColor">#90006CD9</Color>
|
||||
|
||||
<SolidColorBrush x:Key="Button.Static.BackgroundBrush" Color="{StaticResource Button.Static.BackgroundColor}" />
|
||||
<SolidColorBrush x:Key="Button.MouseOver.BackgroundBrush" Color="{StaticResource Button.MouseOver.BackgroundColor}" />
|
||||
<SolidColorBrush x:Key="Button.MouseOver.BorderBrush" Color="{StaticResource Button.MouseOver.BorderColor}" />
|
||||
<SolidColorBrush x:Key="Button.MousePressed.BackgroundBrush" Color="{StaticResource Button.MousePressed.BackgroundColor}" />
|
||||
@@ -471,7 +473,7 @@
|
||||
<Style BasedOn="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" TargetType="{x:Type Button}">
|
||||
<Setter Property="BorderBrush" Value="{StaticResource AccentColor1}" />
|
||||
<Setter Property="BorderThickness" Value="1" />
|
||||
<Setter Property="Background" Value="#e1e1e1" />
|
||||
<Setter Property="Background" Value="{StaticResource Button.Static.BackgroundBrush}" />
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsDefault" Value="True">
|
||||
<Setter Property="Background" Value="{StaticResource AccentColor1}" />
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<Setter Property="Margin" Value="0" />
|
||||
<Setter Property="FontSize" Value="12" />
|
||||
</Style>
|
||||
|
||||
|
||||
<ControlTemplate x:Key="DataGridColumnHeaderTemplateWithSortArrow" TargetType="DataGridColumnHeader">
|
||||
<Grid>
|
||||
<themes:DataGridHeaderBorder BorderBrush="{TemplateBinding BorderBrush}"
|
||||
@@ -175,6 +175,9 @@
|
||||
<Setter Property="BorderBrush" Value="LightGray"/>
|
||||
<Setter Property="Cursor" Value="Hand"/>
|
||||
</Trigger>
|
||||
<Trigger Property="Content" Value="{x:Null}">
|
||||
<Setter Property="Visibility" Value="Collapsed"/>
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</c:PopupControl.Style>
|
||||
@@ -303,7 +306,7 @@
|
||||
</ControlTemplate>
|
||||
|
||||
<ControlTemplate x:Key="DataGridCellStaticBackgroundTemplate" TargetType="DataGridCell">
|
||||
<Border Background="{Binding Path=(c:DataGridEx.CellStaticBackground), RelativeSource={RelativeSource TemplatedParent}}"
|
||||
<Border Background="{Binding Path=(c:DataGridEx.CellStaticBackground), RelativeSource={RelativeSource TemplatedParent}}"
|
||||
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
|
||||
VerticalAlignment="{TemplateBinding VerticalAlignment}"
|
||||
BorderBrush="{TemplateBinding BorderBrush}"
|
||||
@@ -315,7 +318,7 @@
|
||||
</Grid>
|
||||
</Border>
|
||||
</ControlTemplate>
|
||||
|
||||
|
||||
<Style x:Key="DataGridCellBaseStyle" TargetType="DataGridCell">
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
<Setter Property="BorderBrush" Value="Transparent" />
|
||||
@@ -355,7 +358,7 @@
|
||||
<Setter Property="Padding" Value="2,0"/>
|
||||
<Setter Property="Template" Value="{StaticResource DataGridCellStaticBackgroundTemplate}"/>
|
||||
</Style>
|
||||
|
||||
|
||||
<Style TargetType="{x:Type DataGrid}">
|
||||
<Setter Property="UseLayoutRounding" Value="True" />
|
||||
<Setter Property="ColumnHeaderStyle" Value="{StaticResource {x:Type DataGridColumnHeader}}" />
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:sp="clr-namespace:mbts.spark"
|
||||
xmlns:converters="clr-namespace:mbts.ui.converters"
|
||||
xmlns:c="clr-namespace:mbts.ui.controls"
|
||||
xmlns:ui="clr-namespace:mbts.ui"
|
||||
@@ -178,7 +179,7 @@
|
||||
<Button Grid.Row="2" Grid.Column="1" Command="{Binding remove_criteria_command}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="60" Margin="5,0,0,10" Visibility="{Binding is_edit_mode, Converter={StaticResource BoolToVisibility}}">
|
||||
<AccessText>_Remove</AccessText>
|
||||
</Button>
|
||||
<c:DialogSkirtOKCancel Grid.Row="3" Grid.ColumnSpan="2" OKCommand="{Binding ok_button_command}" />
|
||||
<c:DialogSkirtOKCancel Grid.Row="3" Grid.ColumnSpan="2" OKCommand="{Binding ok_button_command}" CloseOnOK="{Binding CloseOnOK, RelativeSource={RelativeSource AncestorType=sp:ContractPickerView}}"/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
@@ -26,10 +26,12 @@ namespace mbts.spark
|
||||
partial class ContractPickerView : UserControl
|
||||
{
|
||||
|
||||
// Do not remove empty constructor (otherwise it cannot be used in xaml files)
|
||||
public ContractPickerView() : this(null) { }
|
||||
public ContractPickerView(ContractPickerModel context)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.DataContext = context;
|
||||
if (context != null) this.DataContext = context;
|
||||
|
||||
_exchanges.SelectionChanged += exchanges_changed;
|
||||
_security_types.SelectionChanged += security_types_changed;
|
||||
@@ -105,6 +107,8 @@ namespace mbts.spark
|
||||
((ContractPickerModel)DataContext).criteria_selection_changed(_criteria.SelectedItem as SecurityCriteriaClause);
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty CloseOnOKProperty = DependencyProperty.Register(nameof(CloseOnOK), typeof(bool), typeof(ContractPickerView), new PropertyMetadata(true));
|
||||
public bool CloseOnOK { get => (bool)GetValue(CloseOnOKProperty); set => SetValue(CloseOnOKProperty, value); }
|
||||
}
|
||||
|
||||
//[Export(typeof(IShellModule))]
|
||||
@@ -147,4 +151,4 @@ namespace mbts.spark
|
||||
x.Show();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -42,6 +42,14 @@ namespace mbts.spark
|
||||
public static async Task<SecurityImmutable> get_security_async(IBus bus, uint security_key) =>
|
||||
await bus.subscribe(SparkTags.SecuritiesTag).Where(map => map.ContainsKey(security_key)).Select(map => map[security_key].security).FirstAsync();
|
||||
|
||||
public static async Task<SecurityMD?> get_security_md_async(IBus bus, uint security_key, TimeSpan timeout) {
|
||||
var lookup = await bus.subscribe(SparkTags.SecuritiesTag).Select(map => {
|
||||
SecurityMD smd;
|
||||
return map.TryGetValue(security_key, out smd) ? new SecurityMD?(smd) : default;
|
||||
}).Where(smd => smd.HasValue).FirstAsyncTask(timeout);
|
||||
return lookup.result;
|
||||
}
|
||||
|
||||
public static async Task<(SecurityMD result, bool success)> get_security_md_async(Func<IReadOnlyDictionary<uint, SecurityMD>> get_map, uint security_key) =>
|
||||
await get_security_md_async(get_map, security_key, TimeSpan.FromSeconds(0.1), 10);
|
||||
|
||||
|
||||
@@ -14,24 +14,23 @@ using System.Windows.Data;
|
||||
|
||||
namespace mbts.spark
|
||||
{
|
||||
abstract class SecurityGrid<TRow, TRowModel, TCol> : DisposableViewModelBase, IHandleCellSelection where TRow : class, ISecurityRow {
|
||||
protected SecurityGrid(IObservable<IEnumerable<TRowModel>> row_models, IEnumerable<SortingCriteria> sorting_criteria) : this(new RXObservableCollection<TRowModel>(row_models), sorting_criteria) { }
|
||||
protected SecurityGrid(IRXCollection<TRowModel> row_models, IEnumerable<SortingCriteria> sorting_criteria) {
|
||||
abstract class SecurityGridBase<TRow, TRowModel> : DisposableViewModelBase where TRow : class, ISecurityRow
|
||||
{
|
||||
protected SecurityGridBase(IObservable<IEnumerable<TRowModel>> row_models, IEnumerable<SortingCriteria> sorting_criteria) : this(new RXObservableCollection<TRowModel>(row_models), sorting_criteria) { }
|
||||
protected SecurityGridBase(IRXCollection<TRowModel> row_models, IEnumerable<SortingCriteria> sorting_criteria) {
|
||||
_rows_model = row_models;
|
||||
_rows_vm = new ObservableAutoWrapper<TRow, TRowModel>(_rows_model, row_factory);
|
||||
_rows_vm.ViewDestroyed += on_row_removed;
|
||||
_rows_vm.ViewCreated += on_row_added;
|
||||
_resources.Add(Disposable.Create(() => _rows_vm.Clear()));
|
||||
selected_securities = new ObservableAutoWrapper<SecurityImmutable, TRow>(selected_rows, r => r.security);
|
||||
rows_view = CollectionViewSource.GetDefaultView(_rows_vm);
|
||||
rows_view.SetSortingCriteria(sorting_criteria != null && sorting_criteria.Any() ? sorting_criteria : get_default_sorting());
|
||||
_current_cell = backing<DataGridCellInfo>(nameof(current_cell));
|
||||
}
|
||||
|
||||
protected readonly IList<IDisposable> _resources = new List<IDisposable>();
|
||||
protected readonly IRXCollection<TRowModel> _rows_model;
|
||||
protected readonly ObservableAutoWrapper<TRow, TRowModel> _rows_vm;
|
||||
protected readonly Property<DataGridCellInfo> _current_cell;
|
||||
protected IDictionary<TRow, HashSet<TCol>> _selection_map = new Dictionary<TRow, HashSet<TCol>>();
|
||||
|
||||
protected abstract TRow row_factory(TRowModel row_model);
|
||||
protected virtual void on_row_removed(TRow row) { }
|
||||
@@ -39,44 +38,68 @@ namespace mbts.spark
|
||||
protected virtual IEnumerable<SortingCriteria> get_default_sorting() { return Enumerable.Empty<SortingCriteria>(); }
|
||||
|
||||
public ICollectionView rows_view { get; }
|
||||
public ObservableCollection<TRow> selected_rows { get; } = new ObservableCollection<TRow>();
|
||||
public virtual TRow current_row { get; }
|
||||
public abstract IObservable<TRow> current_row_observable { get; }
|
||||
public ObservableCollection<SecurityImmutable> selected_securities { get; }
|
||||
public SecurityImmutable? current_security => current_row?.security;
|
||||
public IObservable<SecurityImmutable?> current_security_observable => current_row_observable.Select(r => r?.security).DistinctUntilChanged();
|
||||
}
|
||||
|
||||
abstract class SecurityGrid<TRow, TRowModel> : SecurityGridBase<TRow, TRowModel>, IHandleRowSelection where TRow : class, ISecurityRow
|
||||
{
|
||||
protected SecurityGrid(IObservable<IEnumerable<TRowModel>> row_models, IEnumerable<SortingCriteria> sorting_criteria) : this(new RXObservableCollection<TRowModel>(row_models), sorting_criteria) { }
|
||||
protected SecurityGrid(IRXCollection<TRowModel> row_models, IEnumerable<SortingCriteria> sorting_criteria) : base(row_models, sorting_criteria) =>
|
||||
_current_row = backing(nameof(current_row), default(TRow));
|
||||
|
||||
readonly Property<TRow> _current_row;
|
||||
|
||||
public new TRow current_row { get => _current_row.Value; set => _current_row.Value = value; }
|
||||
public override IObservable<TRow> current_row_observable => _current_row.Select(v => v.newval);
|
||||
|
||||
void IHandleRowSelection.row_selection_changed(SelectionChangedEventArgs e) => RowSelectionHelper.apply_changes(selected_rows, e);
|
||||
}
|
||||
|
||||
abstract class SecurityGrid<TRow, TRowModel, TCol> : SecurityGridBase<TRow, TRowModel>, IHandleCellSelection where TRow : class, ISecurityRow
|
||||
{
|
||||
protected SecurityGrid(IObservable<IEnumerable<TRowModel>> row_models, IEnumerable<SortingCriteria> sorting_criteria) : this(new RXObservableCollection<TRowModel>(row_models), sorting_criteria) { }
|
||||
protected SecurityGrid(IRXCollection<TRowModel> row_models, IEnumerable<SortingCriteria> sorting_criteria) : base(row_models, sorting_criteria) =>
|
||||
_current_cell = backing<DataGridCellInfo>(nameof(current_cell));
|
||||
|
||||
readonly Property<DataGridCellInfo> _current_cell;
|
||||
IDictionary<TRow, HashSet<TCol>> _selection_map = new Dictionary<TRow, HashSet<TCol>>();
|
||||
|
||||
public DataGridCellInfo current_cell {
|
||||
get => _current_cell.Value;
|
||||
set { if (value.IsValid) _current_cell.Value = value; }
|
||||
}
|
||||
public TRow current_row => _current_cell.Value.Item as TRow;
|
||||
public SecurityImmutable? current_security => (_current_cell.Value.Item as TRow)?.security;
|
||||
public IObservable<TRow> current_row_observable => _current_cell.Select(v => v.newval.Item as TRow);
|
||||
public IObservable<SecurityImmutable?> current_security_observable => current_row_observable.Select(r => r?.security).DistinctUntilChanged();
|
||||
public ObservableCollection<SecurityImmutable> selected_securities { get; } = new ObservableCollection<SecurityImmutable>();
|
||||
public override TRow current_row => _current_cell.Value.Item as TRow;
|
||||
public override IObservable<TRow> current_row_observable => _current_cell.Select(v => v.newval.Item as TRow);
|
||||
public IDictionary<TRow, HashSet<TCol>> get_selection_map() => new Dictionary<TRow, HashSet<TCol>>(_selection_map);
|
||||
|
||||
public void cell_selection_changed(IList<DataGridCellInfo> added, IList<DataGridCellInfo> removed) {
|
||||
CellSelectionMapper.apply_changes(ref _selection_map, added, removed);
|
||||
selected_securities.sync_with(_selection_map.Keys.Select(r => r.security));
|
||||
}
|
||||
|
||||
protected override void Dispose(bool disposing) => Disposable.dispose(_resources);
|
||||
public void cell_selection_changed(IList<DataGridCellInfo> added, IList<DataGridCellInfo> removed) =>
|
||||
CellSelectionMapper.apply_changes(_selection_map, added, removed, selected_rows);
|
||||
}
|
||||
|
||||
static class SecurityGridExtensions
|
||||
{
|
||||
public static IObservable<SecurityMD?> current_security_md_observable<TRow, TRowModel, TCol>(this SecurityGrid<TRow, TRowModel, TCol> security_grid, IBus bus)
|
||||
public static IObservable<SecurityMD?> current_security_md_observable<TRow, TRowModel>(this SecurityGridBase<TRow, TRowModel> security_grid, IBus bus)
|
||||
where TRow : class, ISecurityRow =>
|
||||
current_security_md_observable(security_grid, bus.subscribe(SparkTags.SecuritiesTag));
|
||||
|
||||
public static IObservable<SecurityMD?> current_security_md_observable<TRow, TRowModel, TCol>(this SecurityGrid<TRow, TRowModel, TCol> security_grid, IObservable<IReadOnlyDictionary<uint, SecurityMD>> md)
|
||||
public static IObservable<SecurityMD?> current_security_md_observable<TRow, TRowModel>(this SecurityGridBase<TRow, TRowModel> security_grid, IObservable<IReadOnlyDictionary<uint, SecurityMD>> md)
|
||||
where TRow : class, ISecurityRow =>
|
||||
security_grid.current_security_observable
|
||||
.CombineLatest(md, (s, m) => (s, m))
|
||||
.Select(sm => sm.s.HasValue && sm.m != null && sm.m.TryGetValue(sm.s.Value.Id, out SecurityMD smd) ? new SecurityMD?(smd) : null);
|
||||
|
||||
|
||||
public static IObservable<SecurityMD> current_security_md_observable_straight<TRow, TRowModel, TCol>(this SecurityGrid<TRow, TRowModel, TCol> security_grid, IReadOnlyDictionary<uint, SecurityMD> map)
|
||||
public static IObservable<SecurityMD> current_security_md_observable_straight<TRow, TRowModel>(this SecurityGridBase<TRow, TRowModel> security_grid, IReadOnlyDictionary<uint, SecurityMD> map)
|
||||
where TRow : class, ISecurityRow =>
|
||||
from s in security_grid.current_security_observable
|
||||
where s.HasValue
|
||||
select map[s.Value.Id];
|
||||
|
||||
public static IObservable<IReadOnlyList<SecurityImmutable>> selected_securities_observable<TRow, TRowModel, TCol>(this SecurityGrid<TRow, TRowModel, TCol> security_grid)
|
||||
public static IObservable<IReadOnlyList<SecurityImmutable>> selected_securities_observable<TRow, TRowModel>(this SecurityGridBase<TRow, TRowModel> security_grid)
|
||||
where TRow : class, ISecurityRow =>
|
||||
security_grid.selected_securities.ObserveSelf();
|
||||
}
|
||||
|
||||
@@ -7,6 +7,11 @@ using System.Reactive.Linq;
|
||||
|
||||
namespace mbts.spark
|
||||
{
|
||||
abstract class SecurityMDGrid<TRow, TRowModel> : SecurityGrid<TRow, TRowModel> where TRow : class, ISecurityMDRow {
|
||||
protected SecurityMDGrid(IObservable<IEnumerable<TRowModel>> row_models, IEnumerable<SortingCriteria> sorting_criteria) : base(row_models, sorting_criteria) { }
|
||||
public IObservable<SecurityMD?> current_security_md => current_row_observable.Select(r => r?.md).DistinctUntilChanged(EqualityComparer.CreateNullable<SecurityMD, SecurityImmutable>(md => md.security));
|
||||
}
|
||||
|
||||
abstract class SecurityMDGrid<TRow, TRowModel, TCol> : SecurityGrid<TRow, TRowModel, TCol> where TRow : class, ISecurityMDRow {
|
||||
protected SecurityMDGrid(IObservable<IEnumerable<TRowModel>> row_models, IEnumerable<SortingCriteria> sorting_criteria) : base(row_models, sorting_criteria) { }
|
||||
public IObservable<SecurityMD?> current_security_md => current_row_observable.Select(r => r?.md).DistinctUntilChanged(EqualityComparer.CreateNullable<SecurityMD, SecurityImmutable>(md => md.security));
|
||||
|
||||
Reference in new issue
Block a user