public DataViewOptions() { this.Mode = DataViewMode.Undefined; this.StrategyName = null; this.Symbol = null; this.ColumnItem = null; }
public static IFieldOptions Create(PropertyInfo property, IDisplayListItemList list) { var result = new DisplayListFieldOptions(); result.Columns = new List<ColumnItem>(); if (list != null) { Type baseType = list.GetType().BaseType; if (baseType != null) { Type itemType = baseType.GetGenericArguments()[1]; PropertyInfo[] properties = itemType.GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy); foreach (PropertyInfo prop in properties) { if (prop.Name.Equals("DLOrderId")) continue; var displayAttribute = (DisplayAttribute) (from d in prop.GetCustomAttributes(typeof (DisplayAttribute), false) select d).FirstOrDefault(); if (displayAttribute == null || string.IsNullOrEmpty(displayAttribute.Name)) continue; var column = new ColumnItem(); column.Header = displayAttribute.GetName(); column.ColumnName = prop.Name.ToCamelCase(); column.ColumnType = prop.GetFieldType().ToString(); column.SystemName = prop.Name; result.Columns.Add(column); } } } return result; }
public ChargeHistogramPlot(Dictionary<int, int> histogram, string name) : base(name) { var axis = new CategoryAxis { Position = AxisPosition.Bottom, MinorStep = 1, LabelField = "Charge States", AbsoluteMinimum = 0, GapWidth = 0 }; // Count axis var linearAxis = new LinearAxis { Position = AxisPosition.Left, MaximumPadding = .15, AbsoluteMinimum = 1, Minimum = 0, MinimumPadding = 1 }; Model.IsLegendVisible = true; Model.Axes.Add(axis); Model.Axes.Add(linearAxis); // Add the data to the view model var data = new ColumnSeries { ValueField = "Value", StrokeThickness = 1, LabelFormatString = "{0}", }; var colors = new ColorTypeIterator(); foreach (var key in histogram.Keys) { axis.Labels.Add(key.ToString()); int number = histogram[key]; var column = new ColumnItem(number) { Color = colors.GetColor(key) }; data.Items.Add(column); } m_xAxis = axis; Model.Series.Add(data); Model.Axes[0].MajorGridlineStyle = LineStyle.Solid; Model.Axes[1].MajorGridlineStyle = LineStyle.Solid; }
public void GetColumnsFromDefaultLayout(string processSystemName, Action<ColumnCollection> callback) { var filter = GetLayoutFilter(processSystemName); TheDynamicTypeManager.BeginGetList<ILayoutList<ILayoutInfo>>(Constants.LayoutProcessName, (o, r) => { if (r.Error != null) { return; } var defaultLayout = (ILayoutInfo)r.Object[0]; var layoutViewModel = new NewLayoutViewModel { Id = defaultLayout.Id, AccountId = defaultLayout.AccountId, LayoutString = defaultLayout.LayoutDefinition, IsAdminLayout = defaultLayout.IsAdminLayout ?? false, IsDefault = defaultLayout.IsDefault ?? false, Name = defaultLayout.Name, }; layoutViewModel.Parse(layoutViewModel.LayoutString); var type = TheDynamicTypeManager.GetListType(processSystemName).BaseType.GetGenericArguments()[1]; var columnCollection = new ColumnCollection(); for (int i = 0; i < layoutViewModel.LayoutColumns.Count; i++) { var layoutColumn = layoutViewModel.LayoutColumns[i]; var property = type.GetProperty(layoutColumn.SystemName); var column = new ColumnItem(null, null) { Header = layoutColumn.Header, ColumnName = layoutColumn.SystemName, Width = layoutColumn.Width.HasValue ? layoutColumn.Width.Value : 0, Order = i, Property = property }; columnCollection.Add(column); } callback(columnCollection); }, filterExpression: filter.ToJSON(), pageSize: 1); }
public NetworkOutputModel(double[] output, double min, double max) { Model = new PlotModel(); var catAxis = new CategoryAxis() { Position = AxisPosition.Bottom }; catAxis.LabelField = "Name"; catAxis.ItemsSource = Enumerable.Range(0, output.Length).Select(i => new { Name = i.ToString() }); Model.Axes.Add(catAxis); Model.Axes.Add(new LinearAxis() { Position = AxisPosition.Left, Minimum = min, Maximum = max }); var highest = output.Max(); var data = new List<ColumnItem>(); for(int i = 0; i < output.Length; i++) { var val = output[i]; var colm = new ColumnItem(val); if(val == highest) { colm.Color = OxyColors.Green; } else { colm.Color = OxyColors.Red; } data.Add(colm); } Model.Series.Add(new ColumnSeries() { ItemsSource = data }); }
public static MultiCrossRefResult Create(ICrossRefItemList itemList, PropertyInfo property, int totalRowCount, int pageNumber) { var customAttribute = property.GetCustomAttribute<CrossRefFieldAttribute>(); var ColumnList = new List<ColumnItem>(); var displaySystemNameList = customAttribute.DisplayFieldList.Split('|'); if (itemList != null && itemList.Count != 0) { var baseType = itemList.GetType().BaseType; if (baseType != null) { if (itemList != null) { Type mcrType = baseType.GetGenericArguments()[1]; PropertyInfo[] properties = mcrType.GetProperties(BindingFlags.Public | BindingFlags.Instance | BindingFlags.FlattenHierarchy); foreach (PropertyInfo prop in properties) { var displayAttribute = (DisplayAttribute)(from d in prop.GetCustomAttributes(typeof(DisplayAttribute), false) select d).FirstOrDefault(); if (displayAttribute == null || string.IsNullOrEmpty(displayAttribute.Name)) continue; var column = new ColumnItem(); column.Header = displayAttribute.GetName(); column.ColumnName = prop.Name.ToCamelCase(); column.ColumnType = prop.GetFieldType().ToString(); column.SystemName = prop.Name; ColumnList.Add(column); } } var itemType = baseType.GetGenericArguments()[1]; var multiCrossReferenceModel = new List<MultiCrossReferenceModel>(); foreach (var row in itemList) { var item = new MultiCrossReferenceModel { Id = (int)row.GetType().GetProperty(Constants.IdColumnName).GetValue(row) }; foreach (var column in ColumnList) { var propertyInfo = itemType.GetPropertyByFullName(column.SystemName); if (propertyInfo == null) continue; var columnValue = FieldValueExtractor.GetPropertyStringValue(propertyInfo, propertyInfo.GetValue(row), column.ColumnType); item.Values[column.SystemName] = columnValue; } multiCrossReferenceModel.Add(item); } return new MultiCrossRefResult { ItemList = multiCrossReferenceModel, ColumnList = ColumnList, TotalRowCount = totalRowCount, PageNumber = pageNumber }; } } return null; }
private void InitializeComponent() { ItemGrid itemGrid = new ItemGrid(); ItemGrid itemGrid2 = new ItemGrid(); ColumnItem columnItem = new ColumnItem(); ColumnItem columnItem2 = new ColumnItem(); ColumnItem columnItem3 = new ColumnItem(); ColumnItem columnItem4 = new ColumnItem(); ItemGrid itemGrid3 = new ItemGrid(); ItemGrid itemGrid4 = new ItemGrid(); ItemGrid itemGrid5 = new ItemGrid(); ItemGrid itemGrid6 = new ItemGrid(); ItemGrid itemGrid7 = new ItemGrid(); ItemGrid itemGrid8 = new ItemGrid(); ItemGrid itemGrid9 = new ItemGrid(); ItemGrid itemGrid10 = new ItemGrid(); ItemGrid itemGrid11 = new ItemGrid(); ItemGrid itemGrid12 = new ItemGrid(); ItemGrid itemGrid13 = new ItemGrid(); ItemGrid itemGrid14 = new ItemGrid(); ItemGrid itemGrid15 = new ItemGrid(); ItemGrid itemGrid16 = new ItemGrid(); ItemGrid itemGrid17 = new ItemGrid(); ItemGrid itemGrid18 = new ItemGrid(); ItemGrid itemGrid19 = new ItemGrid(); ItemGrid itemGrid20 = new ItemGrid(); ItemGrid itemGrid21 = new ItemGrid(); ItemGrid itemGrid22 = new ItemGrid(); ItemGrid itemGrid23 = new ItemGrid(); ItemGrid itemGrid24 = new ItemGrid(); ItemGrid itemGrid25 = new ItemGrid(); ItemGrid itemGrid26 = new ItemGrid(); ItemGrid itemGrid27 = new ItemGrid(); ItemGrid itemGrid28 = new ItemGrid(); ItemGrid itemGrid29 = new ItemGrid(); ItemGrid itemGrid30 = new ItemGrid(); ItemGrid itemGrid31 = new ItemGrid(); ItemGrid itemGrid32 = new ItemGrid(); ItemGrid itemGrid33 = new ItemGrid(); ItemGrid itemGrid34 = new ItemGrid(); ItemGrid itemGrid35 = new ItemGrid(); ItemGrid itemGrid36 = new ItemGrid(); ItemGrid itemGrid37 = new ItemGrid(); ItemGrid itemGrid38 = new ItemGrid(); ItemGrid itemGrid39 = new ItemGrid(); ItemGrid itemGrid40 = new ItemGrid(); ItemGrid itemGrid41 = new ItemGrid(); ItemGrid itemGrid42 = new ItemGrid(); ItemGrid itemGrid43 = new ItemGrid(); ItemGrid itemGrid44 = new ItemGrid(); ItemGrid itemGrid45 = new ItemGrid(); ItemGrid itemGrid46 = new ItemGrid(); ItemGrid itemGrid47 = new ItemGrid(); ItemGrid itemGrid48 = new ItemGrid(); ItemGrid itemGrid49 = new ItemGrid(); ItemGrid itemGrid50 = new ItemGrid(); ItemGrid itemGrid51 = new ItemGrid(); ItemGrid itemGrid52 = new ItemGrid(); this.intzaInfo4 = new IntzaCustomGrid(); this.intzaDeal = new SortGrid(); this.intzaInfo3 = new IntzaCustomGrid(); this.intzaInfo2 = new IntzaCustomGrid(); this.intzaInfo1 = new IntzaCustomGrid(); this.intzaInfo5 = new IntzaCustomGrid(); base.SuspendLayout(); this.intzaInfo4.AllowDrop = true; this.intzaInfo4.BackColor = Color.FromArgb(30, 30, 30); this.intzaInfo4.CanDrag = false; this.intzaInfo4.IsAutoRepaint = true; this.intzaInfo4.IsDroped = false; itemGrid.AdjustFontSize = 0f; itemGrid.Alignment = StringAlignment.Near; itemGrid.BackColor = Color.FromArgb(30, 30, 30); itemGrid.Changed = false; itemGrid.FieldType = ItemType.Label; itemGrid.FontColor = Color.White; itemGrid.FontStyle = FontStyle.Regular; itemGrid.Height = 1f; itemGrid.IsBlink = 0; itemGrid.Name = "lbRejectDesc"; itemGrid.Text = "Reject Desc"; itemGrid.ValueFormat = FormatType.Text; itemGrid.Visible = true; itemGrid.Width = 30; itemGrid.X = 0; itemGrid.Y = 0f; itemGrid2.AdjustFontSize = 0f; itemGrid2.Alignment = StringAlignment.Near; itemGrid2.BackColor = Color.FromArgb(30, 30, 30); itemGrid2.Changed = false; itemGrid2.FieldType = ItemType.Text; itemGrid2.FontColor = Color.Yellow; itemGrid2.FontStyle = FontStyle.Regular; itemGrid2.Height = 1f; itemGrid2.IsBlink = 0; itemGrid2.Name = "tbRejectDesc"; itemGrid2.Text = ""; itemGrid2.ValueFormat = FormatType.Text; itemGrid2.Visible = true; itemGrid2.Width = 100; itemGrid2.X = 15; itemGrid2.Y = 0f; this.intzaInfo4.Items.Add(itemGrid); this.intzaInfo4.Items.Add(itemGrid2); this.intzaInfo4.LineColor = Color.Red; this.intzaInfo4.Location = new Point(2, 147); this.intzaInfo4.Name = "intzaInfo4"; this.intzaInfo4.Size = new Size(506, 19); this.intzaInfo4.TabIndex = 160; this.intzaDeal.AllowDrop = true; this.intzaDeal.BackColor = Color.FromArgb(30, 30, 30); this.intzaDeal.CanBlink = false; this.intzaDeal.CanDrag = false; this.intzaDeal.CanGetMouseMove = false; columnItem.Alignment = StringAlignment.Center; columnItem.BackColor = Color.FromArgb(64, 64, 64); columnItem.ColumnAlignment = StringAlignment.Center; columnItem.FontColor = Color.LightGray; columnItem.MyStyle = FontStyle.Regular; columnItem.Name = "confirm"; columnItem.Text = "Confirm"; columnItem.ValueFormat = FormatType.Text; columnItem.Visible = true; columnItem.Width = 25; columnItem2.Alignment = StringAlignment.Far; columnItem2.BackColor = Color.FromArgb(64, 64, 64); columnItem2.ColumnAlignment = StringAlignment.Center; columnItem2.FontColor = Color.LightGray; columnItem2.MyStyle = FontStyle.Regular; columnItem2.Name = "volume"; columnItem2.Text = "Vol"; columnItem2.ValueFormat = FormatType.Volume; columnItem2.Visible = true; columnItem2.Width = 25; columnItem3.Alignment = StringAlignment.Far; columnItem3.BackColor = Color.FromArgb(64, 64, 64); columnItem3.ColumnAlignment = StringAlignment.Center; columnItem3.FontColor = Color.LightGray; columnItem3.MyStyle = FontStyle.Regular; columnItem3.Name = "price"; columnItem3.Text = "Price"; columnItem3.ValueFormat = FormatType.Price; columnItem3.Visible = true; columnItem3.Width = 25; columnItem4.Alignment = StringAlignment.Far; columnItem4.BackColor = Color.FromArgb(64, 64, 64); columnItem4.ColumnAlignment = StringAlignment.Center; columnItem4.FontColor = Color.LightGray; columnItem4.MyStyle = FontStyle.Regular; columnItem4.Name = "time"; columnItem4.Text = "Time"; columnItem4.ValueFormat = FormatType.Text; columnItem4.Visible = true; columnItem4.Width = 25; this.intzaDeal.Columns.Add(columnItem); this.intzaDeal.Columns.Add(columnItem2); this.intzaDeal.Columns.Add(columnItem3); this.intzaDeal.Columns.Add(columnItem4); this.intzaDeal.CurrentScroll = 0; this.intzaDeal.FocusItemIndex = -1; this.intzaDeal.ForeColor = Color.Black; this.intzaDeal.GridColor = Color.FromArgb(45, 45, 45); this.intzaDeal.HeaderPctHeight = 100f; this.intzaDeal.IsAutoRepaint = true; this.intzaDeal.IsDrawFullRow = true; this.intzaDeal.IsDrawGrid = true; this.intzaDeal.IsDrawHeader = true; this.intzaDeal.IsScrollable = true; this.intzaDeal.Location = new Point(509, 3); this.intzaDeal.MainColumn = ""; this.intzaDeal.Name = "intzaDeal"; this.intzaDeal.Rows = 0; this.intzaDeal.RowSelectColor = Color.FromArgb(95, 158, 160); this.intzaDeal.RowSelectType = 0; this.intzaDeal.RowsVisible = 0; this.intzaDeal.Size = new Size(236, 183); this.intzaDeal.SortColumnName = ""; this.intzaDeal.SortType = SortType.Desc; this.intzaDeal.TabIndex = 159; this.intzaInfo3.AllowDrop = true; this.intzaInfo3.BackColor = Color.FromArgb(30, 30, 30); this.intzaInfo3.CanDrag = false; this.intzaInfo3.IsAutoRepaint = true; this.intzaInfo3.IsDroped = false; itemGrid3.AdjustFontSize = 0f; itemGrid3.Alignment = StringAlignment.Near; itemGrid3.BackColor = Color.FromArgb(30, 30, 30); itemGrid3.Changed = false; itemGrid3.FieldType = ItemType.Label; itemGrid3.FontColor = Color.White; itemGrid3.FontStyle = FontStyle.Regular; itemGrid3.Height = 1f; itemGrid3.IsBlink = 0; itemGrid3.Name = "lbType"; itemGrid3.Text = "Type"; itemGrid3.ValueFormat = FormatType.Text; itemGrid3.Visible = true; itemGrid3.Width = 50; itemGrid3.X = 0; itemGrid3.Y = 0f; itemGrid4.AdjustFontSize = 0f; itemGrid4.Alignment = StringAlignment.Far; itemGrid4.BackColor = Color.FromArgb(30, 30, 30); itemGrid4.Changed = false; itemGrid4.FieldType = ItemType.Text; itemGrid4.FontColor = Color.Yellow; itemGrid4.FontStyle = FontStyle.Regular; itemGrid4.Height = 1f; itemGrid4.IsBlink = 0; itemGrid4.Name = "tbType"; itemGrid4.Text = ""; itemGrid4.ValueFormat = FormatType.Text; itemGrid4.Visible = true; itemGrid4.Width = 50; itemGrid4.X = 50; itemGrid4.Y = 0f; itemGrid5.AdjustFontSize = 0f; itemGrid5.Alignment = StringAlignment.Near; itemGrid5.BackColor = Color.FromArgb(30, 30, 30); itemGrid5.Changed = false; itemGrid5.FieldType = ItemType.Label; itemGrid5.FontColor = Color.White; itemGrid5.FontStyle = FontStyle.Regular; itemGrid5.Height = 1f; itemGrid5.IsBlink = 0; itemGrid5.Name = "lbStatusM"; itemGrid5.Text = "Status Desc"; itemGrid5.ValueFormat = FormatType.Text; itemGrid5.Visible = true; itemGrid5.Width = 39; itemGrid5.X = 0; itemGrid5.Y = 1f; itemGrid6.AdjustFontSize = 0f; itemGrid6.Alignment = StringAlignment.Far; itemGrid6.BackColor = Color.FromArgb(30, 30, 30); itemGrid6.Changed = false; itemGrid6.FieldType = ItemType.Text; itemGrid6.FontColor = Color.Yellow; itemGrid6.FontStyle = FontStyle.Regular; itemGrid6.Height = 1f; itemGrid6.IsBlink = 0; itemGrid6.Name = "tbStatusM"; itemGrid6.Text = ""; itemGrid6.ValueFormat = FormatType.Text; itemGrid6.Visible = true; itemGrid6.Width = 60; itemGrid6.X = 39; itemGrid6.Y = 1f; itemGrid7.AdjustFontSize = 0f; itemGrid7.Alignment = StringAlignment.Near; itemGrid7.BackColor = Color.FromArgb(30, 30, 30); itemGrid7.Changed = false; itemGrid7.FieldType = ItemType.Label; itemGrid7.FontColor = Color.White; itemGrid7.FontStyle = FontStyle.Regular; itemGrid7.Height = 1f; itemGrid7.IsBlink = 0; itemGrid7.Name = "lbCanceller"; itemGrid7.Text = "Canceller"; itemGrid7.ValueFormat = FormatType.Text; itemGrid7.Visible = true; itemGrid7.Width = 50; itemGrid7.X = 0; itemGrid7.Y = 2f; itemGrid8.AdjustFontSize = 0f; itemGrid8.Alignment = StringAlignment.Far; itemGrid8.BackColor = Color.FromArgb(30, 30, 30); itemGrid8.Changed = false; itemGrid8.FieldType = ItemType.Text; itemGrid8.FontColor = Color.Yellow; itemGrid8.FontStyle = FontStyle.Regular; itemGrid8.Height = 1f; itemGrid8.IsBlink = 0; itemGrid8.Name = "tbCanceller"; itemGrid8.Text = ""; itemGrid8.ValueFormat = FormatType.Text; itemGrid8.Visible = true; itemGrid8.Width = 50; itemGrid8.X = 50; itemGrid8.Y = 2f; itemGrid9.AdjustFontSize = 0f; itemGrid9.Alignment = StringAlignment.Near; itemGrid9.BackColor = Color.FromArgb(30, 30, 30); itemGrid9.Changed = false; itemGrid9.FieldType = ItemType.Label; itemGrid9.FontColor = Color.White; itemGrid9.FontStyle = FontStyle.Regular; itemGrid9.Height = 1f; itemGrid9.IsBlink = 0; itemGrid9.Name = "lbCancelTime"; itemGrid9.Text = "Cancel Time"; itemGrid9.ValueFormat = FormatType.Text; itemGrid9.Visible = true; itemGrid9.Width = 50; itemGrid9.X = 0; itemGrid9.Y = 3f; itemGrid10.AdjustFontSize = 0f; itemGrid10.Alignment = StringAlignment.Far; itemGrid10.BackColor = Color.FromArgb(30, 30, 30); itemGrid10.Changed = false; itemGrid10.FieldType = ItemType.Text; itemGrid10.FontColor = Color.Yellow; itemGrid10.FontStyle = FontStyle.Regular; itemGrid10.Height = 1f; itemGrid10.IsBlink = 0; itemGrid10.Name = "tbCancelTime"; itemGrid10.Text = ""; itemGrid10.ValueFormat = FormatType.Text; itemGrid10.Visible = true; itemGrid10.Width = 50; itemGrid10.X = 50; itemGrid10.Y = 3f; itemGrid11.AdjustFontSize = 0f; itemGrid11.Alignment = StringAlignment.Near; itemGrid11.BackColor = Color.FromArgb(30, 30, 30); itemGrid11.Changed = false; itemGrid11.FieldType = ItemType.Label; itemGrid11.FontColor = Color.White; itemGrid11.FontStyle = FontStyle.Regular; itemGrid11.Height = 1f; itemGrid11.IsBlink = 0; itemGrid11.Name = "lbStopSeries"; itemGrid11.Text = "Stop Series"; itemGrid11.ValueFormat = FormatType.Text; itemGrid11.Visible = true; itemGrid11.Width = 50; itemGrid11.X = 0; itemGrid11.Y = 4f; itemGrid12.AdjustFontSize = 0f; itemGrid12.Alignment = StringAlignment.Far; itemGrid12.BackColor = Color.FromArgb(30, 30, 30); itemGrid12.Changed = false; itemGrid12.FieldType = ItemType.Text; itemGrid12.FontColor = Color.Cyan; itemGrid12.FontStyle = FontStyle.Regular; itemGrid12.Height = 1f; itemGrid12.IsBlink = 0; itemGrid12.Name = "tbStopSeries"; itemGrid12.Text = ""; itemGrid12.ValueFormat = FormatType.Text; itemGrid12.Visible = true; itemGrid12.Width = 50; itemGrid12.X = 50; itemGrid12.Y = 4f; itemGrid13.AdjustFontSize = 0f; itemGrid13.Alignment = StringAlignment.Near; itemGrid13.BackColor = Color.FromArgb(30, 30, 30); itemGrid13.Changed = false; itemGrid13.FieldType = ItemType.Label; itemGrid13.FontColor = Color.White; itemGrid13.FontStyle = FontStyle.Regular; itemGrid13.Height = 1f; itemGrid13.IsBlink = 0; itemGrid13.Name = "lbStopPrice"; itemGrid13.Text = "Stop Price"; itemGrid13.ValueFormat = FormatType.Text; itemGrid13.Visible = true; itemGrid13.Width = 50; itemGrid13.X = 0; itemGrid13.Y = 5f; itemGrid14.AdjustFontSize = 0f; itemGrid14.Alignment = StringAlignment.Far; itemGrid14.BackColor = Color.FromArgb(30, 30, 30); itemGrid14.Changed = false; itemGrid14.FieldType = ItemType.Text; itemGrid14.FontColor = Color.Yellow; itemGrid14.FontStyle = FontStyle.Regular; itemGrid14.Height = 1f; itemGrid14.IsBlink = 0; itemGrid14.Name = "tbStopPrice"; itemGrid14.Text = ""; itemGrid14.ValueFormat = FormatType.Text; itemGrid14.Visible = true; itemGrid14.Width = 50; itemGrid14.X = 50; itemGrid14.Y = 5f; itemGrid15.AdjustFontSize = 0f; itemGrid15.Alignment = StringAlignment.Near; itemGrid15.BackColor = Color.FromArgb(30, 30, 30); itemGrid15.Changed = false; itemGrid15.FieldType = ItemType.Label; itemGrid15.FontColor = Color.White; itemGrid15.FontStyle = FontStyle.Regular; itemGrid15.Height = 1f; itemGrid15.IsBlink = 0; itemGrid15.Name = "lbStopCond"; itemGrid15.Text = "Stop Cond"; itemGrid15.ValueFormat = FormatType.Text; itemGrid15.Visible = true; itemGrid15.Width = 50; itemGrid15.X = 0; itemGrid15.Y = 6f; itemGrid16.AdjustFontSize = 0f; itemGrid16.Alignment = StringAlignment.Far; itemGrid16.BackColor = Color.FromArgb(30, 30, 30); itemGrid16.Changed = false; itemGrid16.FieldType = ItemType.Text; itemGrid16.FontColor = Color.Yellow; itemGrid16.FontStyle = FontStyle.Regular; itemGrid16.Height = 1f; itemGrid16.IsBlink = 0; itemGrid16.Name = "tbStopCond"; itemGrid16.Text = ""; itemGrid16.ValueFormat = FormatType.Text; itemGrid16.Visible = true; itemGrid16.Width = 50; itemGrid16.X = 50; itemGrid16.Y = 6f; itemGrid17.AdjustFontSize = 0f; itemGrid17.Alignment = StringAlignment.Near; itemGrid17.BackColor = Color.FromArgb(30, 30, 30); itemGrid17.Changed = false; itemGrid17.FieldType = ItemType.Label; itemGrid17.FontColor = Color.White; itemGrid17.FontStyle = FontStyle.Regular; itemGrid17.Height = 1f; itemGrid17.IsBlink = 0; itemGrid17.Name = "lbRejectCode"; itemGrid17.Text = "Reject Code"; itemGrid17.ValueFormat = FormatType.Text; itemGrid17.Visible = true; itemGrid17.Width = 50; itemGrid17.X = 0; itemGrid17.Y = 7f; itemGrid18.AdjustFontSize = 0f; itemGrid18.Alignment = StringAlignment.Far; itemGrid18.BackColor = Color.FromArgb(30, 30, 30); itemGrid18.Changed = false; itemGrid18.FieldType = ItemType.Text; itemGrid18.FontColor = Color.Yellow; itemGrid18.FontStyle = FontStyle.Regular; itemGrid18.Height = 1f; itemGrid18.IsBlink = 0; itemGrid18.Name = "tbRejectCode"; itemGrid18.Text = ""; itemGrid18.ValueFormat = FormatType.Text; itemGrid18.Visible = true; itemGrid18.Width = 50; itemGrid18.X = 50; itemGrid18.Y = 7f; this.intzaInfo3.Items.Add(itemGrid3); this.intzaInfo3.Items.Add(itemGrid4); this.intzaInfo3.Items.Add(itemGrid5); this.intzaInfo3.Items.Add(itemGrid6); this.intzaInfo3.Items.Add(itemGrid7); this.intzaInfo3.Items.Add(itemGrid8); this.intzaInfo3.Items.Add(itemGrid9); this.intzaInfo3.Items.Add(itemGrid10); this.intzaInfo3.Items.Add(itemGrid11); this.intzaInfo3.Items.Add(itemGrid12); this.intzaInfo3.Items.Add(itemGrid13); this.intzaInfo3.Items.Add(itemGrid14); this.intzaInfo3.Items.Add(itemGrid15); this.intzaInfo3.Items.Add(itemGrid16); this.intzaInfo3.Items.Add(itemGrid17); this.intzaInfo3.Items.Add(itemGrid18); this.intzaInfo3.LineColor = Color.Red; this.intzaInfo3.Location = new Point(324, 3); this.intzaInfo3.Margin = new Padding(0); this.intzaInfo3.Name = "intzaInfo3"; this.intzaInfo3.Size = new Size(184, 143); this.intzaInfo3.TabIndex = 158; this.intzaInfo2.AllowDrop = true; this.intzaInfo2.BackColor = Color.FromArgb(30, 30, 30); this.intzaInfo2.CanDrag = false; this.intzaInfo2.IsAutoRepaint = true; this.intzaInfo2.IsDroped = false; itemGrid19.AdjustFontSize = 0f; itemGrid19.Alignment = StringAlignment.Near; itemGrid19.BackColor = Color.FromArgb(30, 30, 30); itemGrid19.Changed = false; itemGrid19.FieldType = ItemType.Label; itemGrid19.FontColor = Color.White; itemGrid19.FontStyle = FontStyle.Regular; itemGrid19.Height = 1f; itemGrid19.IsBlink = 0; itemGrid19.Name = "lbValidate"; itemGrid19.Text = "Validate"; itemGrid19.ValueFormat = FormatType.Volume; itemGrid19.Visible = true; itemGrid19.Width = 58; itemGrid19.X = 0; itemGrid19.Y = 0f; itemGrid20.AdjustFontSize = 0f; itemGrid20.Alignment = StringAlignment.Far; itemGrid20.BackColor = Color.FromArgb(30, 30, 30); itemGrid20.Changed = false; itemGrid20.FieldType = ItemType.Text; itemGrid20.FontColor = Color.Yellow; itemGrid20.FontStyle = FontStyle.Regular; itemGrid20.Height = 1f; itemGrid20.IsBlink = 0; itemGrid20.Name = "tbValidate"; itemGrid20.Text = ""; itemGrid20.ValueFormat = FormatType.Text; itemGrid20.Visible = true; itemGrid20.Width = 42; itemGrid20.X = 58; itemGrid20.Y = 0f; itemGrid21.AdjustFontSize = 0f; itemGrid21.Alignment = StringAlignment.Near; itemGrid21.BackColor = Color.FromArgb(30, 30, 30); itemGrid21.Changed = false; itemGrid21.FieldType = ItemType.Label; itemGrid21.FontColor = Color.White; itemGrid21.FontStyle = FontStyle.Regular; itemGrid21.Height = 1f; itemGrid21.IsBlink = 0; itemGrid21.Name = "lbAccount"; itemGrid21.Text = "Account"; itemGrid21.ValueFormat = FormatType.Text; itemGrid21.Visible = true; itemGrid21.Width = 40; itemGrid21.X = 0; itemGrid21.Y = 1f; itemGrid22.AdjustFontSize = 0f; itemGrid22.Alignment = StringAlignment.Far; itemGrid22.BackColor = Color.FromArgb(30, 30, 30); itemGrid22.Changed = false; itemGrid22.FieldType = ItemType.Text; itemGrid22.FontColor = Color.Cyan; itemGrid22.FontStyle = FontStyle.Regular; itemGrid22.Height = 1f; itemGrid22.IsBlink = 0; itemGrid22.Name = "tbAccount"; itemGrid22.Text = ""; itemGrid22.ValueFormat = FormatType.Text; itemGrid22.Visible = true; itemGrid22.Width = 55; itemGrid22.X = 45; itemGrid22.Y = 1f; itemGrid23.AdjustFontSize = 0f; itemGrid23.Alignment = StringAlignment.Near; itemGrid23.BackColor = Color.FromArgb(30, 30, 30); itemGrid23.Changed = false; itemGrid23.FieldType = ItemType.Label; itemGrid23.FontColor = Color.White; itemGrid23.FontStyle = FontStyle.Regular; itemGrid23.Height = 1f; itemGrid23.IsBlink = 0; itemGrid23.Name = "lbStatus"; itemGrid23.Text = "Status"; itemGrid23.ValueFormat = FormatType.Text; itemGrid23.Visible = true; itemGrid23.Width = 58; itemGrid23.X = 0; itemGrid23.Y = 2f; itemGrid24.AdjustFontSize = 0f; itemGrid24.Alignment = StringAlignment.Far; itemGrid24.BackColor = Color.FromArgb(30, 30, 30); itemGrid24.Changed = false; itemGrid24.FieldType = ItemType.Text; itemGrid24.FontColor = Color.Cyan; itemGrid24.FontStyle = FontStyle.Regular; itemGrid24.Height = 1f; itemGrid24.IsBlink = 0; itemGrid24.Name = "tbStatus"; itemGrid24.Text = ""; itemGrid24.ValueFormat = FormatType.Text; itemGrid24.Visible = true; itemGrid24.Width = 42; itemGrid24.X = 58; itemGrid24.Y = 2f; itemGrid25.AdjustFontSize = 0f; itemGrid25.Alignment = StringAlignment.Near; itemGrid25.BackColor = Color.FromArgb(30, 30, 30); itemGrid25.Changed = false; itemGrid25.FieldType = ItemType.Label; itemGrid25.FontColor = Color.White; itemGrid25.FontStyle = FontStyle.Regular; itemGrid25.Height = 1f; itemGrid25.IsBlink = 0; itemGrid25.Name = "lbEntryTime"; itemGrid25.Text = "Entry Time"; itemGrid25.ValueFormat = FormatType.Text; itemGrid25.Visible = true; itemGrid25.Width = 58; itemGrid25.X = 0; itemGrid25.Y = 3f; itemGrid26.AdjustFontSize = 0f; itemGrid26.Alignment = StringAlignment.Far; itemGrid26.BackColor = Color.FromArgb(30, 30, 30); itemGrid26.Changed = false; itemGrid26.FieldType = ItemType.Text; itemGrid26.FontColor = Color.Yellow; itemGrid26.FontStyle = FontStyle.Regular; itemGrid26.Height = 1f; itemGrid26.IsBlink = 0; itemGrid26.Name = "tbEntryTime"; itemGrid26.Text = ""; itemGrid26.ValueFormat = FormatType.Text; itemGrid26.Visible = true; itemGrid26.Width = 42; itemGrid26.X = 58; itemGrid26.Y = 3f; itemGrid27.AdjustFontSize = 0f; itemGrid27.Alignment = StringAlignment.Near; itemGrid27.BackColor = Color.FromArgb(30, 30, 30); itemGrid27.Changed = false; itemGrid27.FieldType = ItemType.Label; itemGrid27.FontColor = Color.White; itemGrid27.FontStyle = FontStyle.Regular; itemGrid27.Height = 1f; itemGrid27.IsBlink = 0; itemGrid27.Name = "lbQuote"; itemGrid27.Text = "Quote"; itemGrid27.ValueFormat = FormatType.Text; itemGrid27.Visible = true; itemGrid27.Width = 58; itemGrid27.X = 0; itemGrid27.Y = 4f; itemGrid28.AdjustFontSize = 0f; itemGrid28.Alignment = StringAlignment.Far; itemGrid28.BackColor = Color.FromArgb(30, 30, 30); itemGrid28.Changed = false; itemGrid28.FieldType = ItemType.Text; itemGrid28.FontColor = Color.Yellow; itemGrid28.FontStyle = FontStyle.Regular; itemGrid28.Height = 1f; itemGrid28.IsBlink = 0; itemGrid28.Name = "tbQuote"; itemGrid28.Text = ""; itemGrid28.ValueFormat = FormatType.Text; itemGrid28.Visible = true; itemGrid28.Width = 42; itemGrid28.X = 58; itemGrid28.Y = 4f; itemGrid29.AdjustFontSize = 0f; itemGrid29.Alignment = StringAlignment.Near; itemGrid29.BackColor = Color.FromArgb(30, 30, 30); itemGrid29.Changed = false; itemGrid29.FieldType = ItemType.Label; itemGrid29.FontColor = Color.White; itemGrid29.FontStyle = FontStyle.Regular; itemGrid29.Height = 1f; itemGrid29.IsBlink = 0; itemGrid29.Name = "lbQuoteTime"; itemGrid29.Text = "Quote Time"; itemGrid29.ValueFormat = FormatType.Text; itemGrid29.Visible = true; itemGrid29.Width = 58; itemGrid29.X = 0; itemGrid29.Y = 5f; itemGrid30.AdjustFontSize = 0f; itemGrid30.Alignment = StringAlignment.Far; itemGrid30.BackColor = Color.FromArgb(30, 30, 30); itemGrid30.Changed = false; itemGrid30.FieldType = ItemType.Text; itemGrid30.FontColor = Color.Yellow; itemGrid30.FontStyle = FontStyle.Regular; itemGrid30.Height = 1f; itemGrid30.IsBlink = 0; itemGrid30.Name = "tbQuoteTime"; itemGrid30.Text = ""; itemGrid30.ValueFormat = FormatType.Text; itemGrid30.Visible = true; itemGrid30.Width = 42; itemGrid30.X = 58; itemGrid30.Y = 5f; itemGrid31.AdjustFontSize = 0f; itemGrid31.Alignment = StringAlignment.Near; itemGrid31.BackColor = Color.FromArgb(30, 30, 30); itemGrid31.Changed = false; itemGrid31.FieldType = ItemType.Label; itemGrid31.FontColor = Color.White; itemGrid31.FontStyle = FontStyle.Regular; itemGrid31.Height = 1f; itemGrid31.IsBlink = 0; itemGrid31.Name = "lbOrigPrice"; itemGrid31.Text = "Original Price"; itemGrid31.ValueFormat = FormatType.Text; itemGrid31.Visible = true; itemGrid31.Width = 58; itemGrid31.X = 0; itemGrid31.Y = 6f; itemGrid32.AdjustFontSize = 0f; itemGrid32.Alignment = StringAlignment.Far; itemGrid32.BackColor = Color.FromArgb(30, 30, 30); itemGrid32.Changed = false; itemGrid32.FieldType = ItemType.Text; itemGrid32.FontColor = Color.Red; itemGrid32.FontStyle = FontStyle.Regular; itemGrid32.Height = 1f; itemGrid32.IsBlink = 0; itemGrid32.Name = "tbOrigPrice"; itemGrid32.Text = ""; itemGrid32.ValueFormat = FormatType.Text; itemGrid32.Visible = true; itemGrid32.Width = 42; itemGrid32.X = 58; itemGrid32.Y = 6f; itemGrid33.AdjustFontSize = 0f; itemGrid33.Alignment = StringAlignment.Near; itemGrid33.BackColor = Color.FromArgb(30, 30, 30); itemGrid33.Changed = false; itemGrid33.FieldType = ItemType.Label; itemGrid33.FontColor = Color.White; itemGrid33.FontStyle = FontStyle.Regular; itemGrid33.Height = 1f; itemGrid33.IsBlink = 0; itemGrid33.Name = "lbEntryId"; itemGrid33.Text = "Entry Id"; itemGrid33.ValueFormat = FormatType.Text; itemGrid33.Visible = true; itemGrid33.Width = 58; itemGrid33.X = 0; itemGrid33.Y = 7f; itemGrid34.AdjustFontSize = 0f; itemGrid34.Alignment = StringAlignment.Far; itemGrid34.BackColor = Color.FromArgb(30, 30, 30); itemGrid34.Changed = false; itemGrid34.FieldType = ItemType.Text; itemGrid34.FontColor = Color.Yellow; itemGrid34.FontStyle = FontStyle.Regular; itemGrid34.Height = 1f; itemGrid34.IsBlink = 0; itemGrid34.Name = "tbEntryId"; itemGrid34.Text = ""; itemGrid34.ValueFormat = FormatType.Text; itemGrid34.Visible = true; itemGrid34.Width = 42; itemGrid34.X = 58; itemGrid34.Y = 7f; this.intzaInfo2.Items.Add(itemGrid19); this.intzaInfo2.Items.Add(itemGrid20); this.intzaInfo2.Items.Add(itemGrid21); this.intzaInfo2.Items.Add(itemGrid22); this.intzaInfo2.Items.Add(itemGrid23); this.intzaInfo2.Items.Add(itemGrid24); this.intzaInfo2.Items.Add(itemGrid25); this.intzaInfo2.Items.Add(itemGrid26); this.intzaInfo2.Items.Add(itemGrid27); this.intzaInfo2.Items.Add(itemGrid28); this.intzaInfo2.Items.Add(itemGrid29); this.intzaInfo2.Items.Add(itemGrid30); this.intzaInfo2.Items.Add(itemGrid31); this.intzaInfo2.Items.Add(itemGrid32); this.intzaInfo2.Items.Add(itemGrid33); this.intzaInfo2.Items.Add(itemGrid34); this.intzaInfo2.LineColor = Color.Red; this.intzaInfo2.Location = new Point(163, 3); this.intzaInfo2.Name = "intzaInfo2"; this.intzaInfo2.Size = new Size(159, 143); this.intzaInfo2.TabIndex = 157; this.intzaInfo1.AllowDrop = true; this.intzaInfo1.BackColor = Color.FromArgb(30, 30, 30); this.intzaInfo1.CanDrag = false; this.intzaInfo1.IsAutoRepaint = true; this.intzaInfo1.IsDroped = false; itemGrid35.AdjustFontSize = 0f; itemGrid35.Alignment = StringAlignment.Near; itemGrid35.BackColor = Color.FromArgb(30, 30, 30); itemGrid35.Changed = false; itemGrid35.FieldType = ItemType.Label; itemGrid35.FontColor = Color.White; itemGrid35.FontStyle = FontStyle.Regular; itemGrid35.Height = 1f; itemGrid35.IsBlink = 0; itemGrid35.Name = "lbOrderNumber"; itemGrid35.Text = "Order No."; itemGrid35.ValueFormat = FormatType.Text; itemGrid35.Visible = true; itemGrid35.Width = 55; itemGrid35.X = 0; itemGrid35.Y = 0f; itemGrid36.AdjustFontSize = 0f; itemGrid36.Alignment = StringAlignment.Far; itemGrid36.BackColor = Color.FromArgb(30, 30, 30); itemGrid36.Changed = false; itemGrid36.FieldType = ItemType.Text; itemGrid36.FontColor = Color.Cyan; itemGrid36.FontStyle = FontStyle.Regular; itemGrid36.Height = 1f; itemGrid36.IsBlink = 0; itemGrid36.Name = "tbOrderNumber"; itemGrid36.Text = ""; itemGrid36.ValueFormat = FormatType.Text; itemGrid36.Visible = true; itemGrid36.Width = 45; itemGrid36.X = 55; itemGrid36.Y = 0f; itemGrid37.AdjustFontSize = 0f; itemGrid37.Alignment = StringAlignment.Near; itemGrid37.BackColor = Color.FromArgb(30, 30, 30); itemGrid37.Changed = false; itemGrid37.FieldType = ItemType.Label; itemGrid37.FontColor = Color.White; itemGrid37.FontStyle = FontStyle.Regular; itemGrid37.Height = 1f; itemGrid37.IsBlink = 0; itemGrid37.Name = "lbPosition"; itemGrid37.Text = "Position"; itemGrid37.ValueFormat = FormatType.Text; itemGrid37.Visible = true; itemGrid37.Width = 55; itemGrid37.X = 0; itemGrid37.Y = 1f; itemGrid38.AdjustFontSize = 0f; itemGrid38.Alignment = StringAlignment.Far; itemGrid38.BackColor = Color.FromArgb(30, 30, 30); itemGrid38.Changed = false; itemGrid38.FieldType = ItemType.Text; itemGrid38.FontColor = Color.Yellow; itemGrid38.FontStyle = FontStyle.Regular; itemGrid38.Height = 1f; itemGrid38.IsBlink = 0; itemGrid38.Name = "tbPosition"; itemGrid38.Text = ""; itemGrid38.ValueFormat = FormatType.Text; itemGrid38.Visible = true; itemGrid38.Width = 45; itemGrid38.X = 55; itemGrid38.Y = 1f; itemGrid39.AdjustFontSize = 0f; itemGrid39.Alignment = StringAlignment.Near; itemGrid39.BackColor = Color.FromArgb(30, 30, 30); itemGrid39.Changed = false; itemGrid39.FieldType = ItemType.Label; itemGrid39.FontColor = Color.White; itemGrid39.FontStyle = FontStyle.Regular; itemGrid39.Height = 1f; itemGrid39.IsBlink = 0; itemGrid39.Name = "lbSide"; itemGrid39.Text = "Side"; itemGrid39.ValueFormat = FormatType.Text; itemGrid39.Visible = true; itemGrid39.Width = 55; itemGrid39.X = 0; itemGrid39.Y = 2f; itemGrid40.AdjustFontSize = 0f; itemGrid40.Alignment = StringAlignment.Far; itemGrid40.BackColor = Color.FromArgb(30, 30, 30); itemGrid40.Changed = false; itemGrid40.FieldType = ItemType.Text; itemGrid40.FontColor = Color.White; itemGrid40.FontStyle = FontStyle.Regular; itemGrid40.Height = 1f; itemGrid40.IsBlink = 0; itemGrid40.Name = "tbSide"; itemGrid40.Text = ""; itemGrid40.ValueFormat = FormatType.Text; itemGrid40.Visible = true; itemGrid40.Width = 45; itemGrid40.X = 55; itemGrid40.Y = 2f; itemGrid41.AdjustFontSize = 0f; itemGrid41.Alignment = StringAlignment.Near; itemGrid41.BackColor = Color.FromArgb(30, 30, 30); itemGrid41.Changed = false; itemGrid41.FieldType = ItemType.Label; itemGrid41.FontColor = Color.White; itemGrid41.FontStyle = FontStyle.Regular; itemGrid41.Height = 1f; itemGrid41.IsBlink = 0; itemGrid41.Name = "lbStock"; itemGrid41.Text = "Symbol"; itemGrid41.ValueFormat = FormatType.Text; itemGrid41.Visible = true; itemGrid41.Width = 40; itemGrid41.X = 0; itemGrid41.Y = 3f; itemGrid42.AdjustFontSize = 0f; itemGrid42.Alignment = StringAlignment.Far; itemGrid42.BackColor = Color.FromArgb(30, 30, 30); itemGrid42.Changed = false; itemGrid42.FieldType = ItemType.Text; itemGrid42.FontColor = Color.Yellow; itemGrid42.FontStyle = FontStyle.Regular; itemGrid42.Height = 1f; itemGrid42.IsBlink = 0; itemGrid42.Name = "tbStock"; itemGrid42.Text = ""; itemGrid42.ValueFormat = FormatType.Text; itemGrid42.Visible = true; itemGrid42.Width = 60; itemGrid42.X = 40; itemGrid42.Y = 3f; itemGrid43.AdjustFontSize = 0f; itemGrid43.Alignment = StringAlignment.Near; itemGrid43.BackColor = Color.FromArgb(30, 30, 30); itemGrid43.Changed = false; itemGrid43.FieldType = ItemType.Label; itemGrid43.FontColor = Color.White; itemGrid43.FontStyle = FontStyle.Regular; itemGrid43.Height = 1f; itemGrid43.IsBlink = 0; itemGrid43.Name = "lbVolume"; itemGrid43.Text = "Volume"; itemGrid43.ValueFormat = FormatType.Text; itemGrid43.Visible = true; itemGrid43.Width = 55; itemGrid43.X = 0; itemGrid43.Y = 4f; itemGrid44.AdjustFontSize = 0f; itemGrid44.Alignment = StringAlignment.Far; itemGrid44.BackColor = Color.FromArgb(30, 30, 30); itemGrid44.Changed = false; itemGrid44.FieldType = ItemType.Text; itemGrid44.FontColor = Color.Yellow; itemGrid44.FontStyle = FontStyle.Regular; itemGrid44.Height = 1f; itemGrid44.IsBlink = 0; itemGrid44.Name = "tbVolume"; itemGrid44.Text = ""; itemGrid44.ValueFormat = FormatType.Volume; itemGrid44.Visible = true; itemGrid44.Width = 45; itemGrid44.X = 55; itemGrid44.Y = 4f; itemGrid45.AdjustFontSize = 0f; itemGrid45.Alignment = StringAlignment.Near; itemGrid45.BackColor = Color.FromArgb(30, 30, 30); itemGrid45.Changed = false; itemGrid45.FieldType = ItemType.Label; itemGrid45.FontColor = Color.White; itemGrid45.FontStyle = FontStyle.Regular; itemGrid45.Height = 1f; itemGrid45.IsBlink = 0; itemGrid45.Name = "lbPrice"; itemGrid45.Text = "Price"; itemGrid45.ValueFormat = FormatType.Text; itemGrid45.Visible = true; itemGrid45.Width = 55; itemGrid45.X = 0; itemGrid45.Y = 5f; itemGrid46.AdjustFontSize = 0f; itemGrid46.Alignment = StringAlignment.Far; itemGrid46.BackColor = Color.FromArgb(30, 30, 30); itemGrid46.Changed = false; itemGrid46.FieldType = ItemType.Text; itemGrid46.FontColor = Color.Yellow; itemGrid46.FontStyle = FontStyle.Regular; itemGrid46.Height = 1f; itemGrid46.IsBlink = 0; itemGrid46.Name = "tbPrice"; itemGrid46.Text = ""; itemGrid46.ValueFormat = FormatType.Text; itemGrid46.Visible = true; itemGrid46.Width = 45; itemGrid46.X = 55; itemGrid46.Y = 5f; itemGrid47.AdjustFontSize = 0f; itemGrid47.Alignment = StringAlignment.Near; itemGrid47.BackColor = Color.FromArgb(30, 30, 30); itemGrid47.Changed = false; itemGrid47.FieldType = ItemType.Label; itemGrid47.FontColor = Color.White; itemGrid47.FontStyle = FontStyle.Regular; itemGrid47.Height = 1f; itemGrid47.IsBlink = 0; itemGrid47.Name = "lbMatched"; itemGrid47.Text = "Matched"; itemGrid47.ValueFormat = FormatType.Text; itemGrid47.Visible = true; itemGrid47.Width = 55; itemGrid47.X = 0; itemGrid47.Y = 6f; itemGrid48.AdjustFontSize = 0f; itemGrid48.Alignment = StringAlignment.Far; itemGrid48.BackColor = Color.FromArgb(30, 30, 30); itemGrid48.Changed = false; itemGrid48.FieldType = ItemType.Text; itemGrid48.FontColor = Color.Cyan; itemGrid48.FontStyle = FontStyle.Regular; itemGrid48.Height = 1f; itemGrid48.IsBlink = 0; itemGrid48.Name = "tbMatched"; itemGrid48.Text = ""; itemGrid48.ValueFormat = FormatType.Volume; itemGrid48.Visible = true; itemGrid48.Width = 45; itemGrid48.X = 55; itemGrid48.Y = 6f; itemGrid49.AdjustFontSize = 0f; itemGrid49.Alignment = StringAlignment.Near; itemGrid49.BackColor = Color.FromArgb(30, 30, 30); itemGrid49.Changed = false; itemGrid49.FieldType = ItemType.Label; itemGrid49.FontColor = Color.White; itemGrid49.FontStyle = FontStyle.Regular; itemGrid49.Height = 1f; itemGrid49.IsBlink = 0; itemGrid49.Name = "lbPublished"; itemGrid49.Text = "Published"; itemGrid49.ValueFormat = FormatType.Text; itemGrid49.Visible = true; itemGrid49.Width = 55; itemGrid49.X = 0; itemGrid49.Y = 7f; itemGrid50.AdjustFontSize = 0f; itemGrid50.Alignment = StringAlignment.Far; itemGrid50.BackColor = Color.FromArgb(30, 30, 30); itemGrid50.Changed = false; itemGrid50.FieldType = ItemType.Text; itemGrid50.FontColor = Color.Cyan; itemGrid50.FontStyle = FontStyle.Regular; itemGrid50.Height = 1f; itemGrid50.IsBlink = 0; itemGrid50.Name = "tbPublished"; itemGrid50.Text = ""; itemGrid50.ValueFormat = FormatType.Volume; itemGrid50.Visible = true; itemGrid50.Width = 45; itemGrid50.X = 55; itemGrid50.Y = 7f; this.intzaInfo1.Items.Add(itemGrid35); this.intzaInfo1.Items.Add(itemGrid36); this.intzaInfo1.Items.Add(itemGrid37); this.intzaInfo1.Items.Add(itemGrid38); this.intzaInfo1.Items.Add(itemGrid39); this.intzaInfo1.Items.Add(itemGrid40); this.intzaInfo1.Items.Add(itemGrid41); this.intzaInfo1.Items.Add(itemGrid42); this.intzaInfo1.Items.Add(itemGrid43); this.intzaInfo1.Items.Add(itemGrid44); this.intzaInfo1.Items.Add(itemGrid45); this.intzaInfo1.Items.Add(itemGrid46); this.intzaInfo1.Items.Add(itemGrid47); this.intzaInfo1.Items.Add(itemGrid48); this.intzaInfo1.Items.Add(itemGrid49); this.intzaInfo1.Items.Add(itemGrid50); this.intzaInfo1.LineColor = Color.Red; this.intzaInfo1.Location = new Point(2, 3); this.intzaInfo1.Name = "intzaInfo1"; this.intzaInfo1.Size = new Size(159, 143); this.intzaInfo1.TabIndex = 156; this.intzaInfo5.AllowDrop = true; this.intzaInfo5.BackColor = Color.FromArgb(30, 30, 30); this.intzaInfo5.CanDrag = false; this.intzaInfo5.IsAutoRepaint = true; this.intzaInfo5.IsDroped = false; itemGrid51.AdjustFontSize = 0f; itemGrid51.Alignment = StringAlignment.Near; itemGrid51.BackColor = Color.FromArgb(30, 30, 30); itemGrid51.Changed = false; itemGrid51.FieldType = ItemType.Label; itemGrid51.FontColor = Color.White; itemGrid51.FontStyle = FontStyle.Regular; itemGrid51.Height = 1f; itemGrid51.IsBlink = 0; itemGrid51.Name = "lbTfexOrdNo "; itemGrid51.Text = "TFEX Order No."; itemGrid51.ValueFormat = FormatType.Text; itemGrid51.Visible = true; itemGrid51.Width = 22; itemGrid51.X = 0; itemGrid51.Y = 0f; itemGrid52.AdjustFontSize = 0f; itemGrid52.Alignment = StringAlignment.Near; itemGrid52.BackColor = Color.FromArgb(30, 30, 30); itemGrid52.Changed = false; itemGrid52.FieldType = ItemType.Text; itemGrid52.FontColor = Color.Yellow; itemGrid52.FontStyle = FontStyle.Regular; itemGrid52.Height = 1f; itemGrid52.IsBlink = 0; itemGrid52.Name = "tbTfexOrdNo"; itemGrid52.Text = ""; itemGrid52.ValueFormat = FormatType.Text; itemGrid52.Visible = true; itemGrid52.Width = 100; itemGrid52.X = 22; itemGrid52.Y = 0f; this.intzaInfo5.Items.Add(itemGrid51); this.intzaInfo5.Items.Add(itemGrid52); this.intzaInfo5.LineColor = Color.Red; this.intzaInfo5.Location = new Point(2, 167); this.intzaInfo5.Name = "intzaInfo5"; this.intzaInfo5.Size = new Size(506, 19); this.intzaInfo5.TabIndex = 161; base.AutoScaleDimensions = new SizeF(7f, 15f); base.AutoScaleMode = AutoScaleMode.Font; this.BackColor = Color.FromArgb(20, 20, 20); base.ClientSize = new Size(748, 189); base.Controls.Add(this.intzaInfo5); base.Controls.Add(this.intzaInfo4); base.Controls.Add(this.intzaDeal); base.Controls.Add(this.intzaInfo3); base.Controls.Add(this.intzaInfo2); base.Controls.Add(this.intzaInfo1); this.Font = new Font("Microsoft Sans Serif", 9f); base.FormBorderStyle = FormBorderStyle.FixedToolWindow; base.Name = "frmViewOrderInfoTFEX"; this.Text = "frmViewOrderInfoTFEX"; base.Load += new EventHandler(this.frmViewOrderInfoTFEX_Load); base.Shown += new EventHandler(this.frmViewOrderInfoTFEX_Shown); base.Enter += new EventHandler(this.frmViewOrderInfoTFEX_Enter); base.Leave += new EventHandler(this.frmViewOrderInfoTFEX_Leave); base.KeyDown += new KeyEventHandler(this.frmViewOrderInfoTFEX_KeyDown); base.ResumeLayout(false); }
private void InitializeComponent() { ColumnItem columnItem = new ColumnItem(); ColumnItem columnItem2 = new ColumnItem(); ColumnItem columnItem3 = new ColumnItem(); ColumnItem columnItem4 = new ColumnItem(); this.label9 = new Label(); this.cbDcaTiming2 = new ComboBox(); this.lb3Stock = new Label(); this.cbDcaStock = new ComboBox(); this.cbDcaTiming = new ComboBox(); this.lb3ToDate = new Label(); this.lb3StartDate = new Label(); this.lb3Timing = new Label(); this.dateTimePicker2 = new DateTimePicker(); this.tbDcaBudget = new TextBox(); this.dateTimePicker1 = new DateTimePicker(); this.lb3Budget = new Label(); this.gridDcaSimm = new ExpandGrid(); this.btnDcaSimlulate = new Button(); this.btnSendOrder = new Button(); this.tbPin = new TextBox(); this.lbPin = new Label(); this.btnPzClose = new Button(); base.SuspendLayout(); this.label9.AutoSize = true; this.label9.BackColor = Color.FromArgb(64, 64, 64); this.label9.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 222); this.label9.ForeColor = Color.LightGray; this.label9.Location = new Point(18, 9); this.label9.Name = "label9"; this.label9.Padding = new Padding(3); this.label9.Size = new Size(167, 19); this.label9.TabIndex = 133; this.label9.Tag = "-1"; this.label9.Text = "Create Dollar Cost Average"; this.label9.TextAlign = ContentAlignment.MiddleLeft; this.cbDcaTiming2.DropDownStyle = ComboBoxStyle.DropDownList; this.cbDcaTiming2.FormattingEnabled = true; this.cbDcaTiming2.Items.AddRange(new object[] { "Every Day", "Every Week", "Every Month" }); this.cbDcaTiming2.Location = new Point(90, 176); this.cbDcaTiming2.Name = "cbDcaTiming2"; this.cbDcaTiming2.Size = new Size(95, 21); this.cbDcaTiming2.TabIndex = 135; this.lb3Stock.AutoSize = true; this.lb3Stock.ForeColor = Color.LightGray; this.lb3Stock.Location = new Point(40, 49); this.lb3Stock.Margin = new Padding(2, 0, 2, 0); this.lb3Stock.Name = "lb3Stock"; this.lb3Stock.Size = new Size(41, 13); this.lb3Stock.TabIndex = 131; this.lb3Stock.Text = "Symbol"; this.lb3Stock.TextAlign = ContentAlignment.MiddleLeft; this.cbDcaStock.AutoCompleteMode = AutoCompleteMode.Suggest; this.cbDcaStock.AutoCompleteSource = AutoCompleteSource.ListItems; this.cbDcaStock.BackColor = Color.FromArgb(224, 224, 224); this.cbDcaStock.FlatStyle = FlatStyle.Popup; this.cbDcaStock.ForeColor = Color.Black; this.cbDcaStock.FormattingEnabled = true; this.cbDcaStock.Location = new Point(89, 46); this.cbDcaStock.MaxLength = 20; this.cbDcaStock.Name = "cbDcaStock"; this.cbDcaStock.Size = new Size(95, 21); this.cbDcaStock.TabIndex = 130; this.cbDcaStock.KeyPress += new KeyPressEventHandler(this.cbDcaStock_KeyPress); this.cbDcaStock.KeyDown += new KeyEventHandler(this.cbDcaStock_KeyDown); this.cbDcaTiming.DropDownStyle = ComboBoxStyle.DropDownList; this.cbDcaTiming.FormattingEnabled = true; this.cbDcaTiming.Items.AddRange(new object[] { "Every Day", "Every Week", "Every Month" }); this.cbDcaTiming.Location = new Point(90, 149); this.cbDcaTiming.Name = "cbDcaTiming"; this.cbDcaTiming.Size = new Size(95, 21); this.cbDcaTiming.TabIndex = 134; this.cbDcaTiming.SelectedIndexChanged += new EventHandler(this.cbDcaTiming_SelectedIndexChanged); this.lb3ToDate.AutoSize = true; this.lb3ToDate.ForeColor = Color.Gainsboro; this.lb3ToDate.Location = new Point(29, 103); this.lb3ToDate.Margin = new Padding(2, 0, 2, 0); this.lb3ToDate.Name = "lb3ToDate"; this.lb3ToDate.Size = new Size(52, 13); this.lb3ToDate.TabIndex = 120; this.lb3ToDate.Text = "End Date"; this.lb3ToDate.TextAlign = ContentAlignment.MiddleLeft; this.lb3StartDate.AutoSize = true; this.lb3StartDate.ForeColor = Color.Gainsboro; this.lb3StartDate.Location = new Point(26, 77); this.lb3StartDate.Margin = new Padding(2, 0, 2, 0); this.lb3StartDate.Name = "lb3StartDate"; this.lb3StartDate.Size = new Size(55, 13); this.lb3StartDate.TabIndex = 109; this.lb3StartDate.Text = "Start Date"; this.lb3StartDate.TextAlign = ContentAlignment.MiddleLeft; this.lb3Timing.AutoSize = true; this.lb3Timing.ForeColor = Color.LightGray; this.lb3Timing.Location = new Point(43, 153); this.lb3Timing.Margin = new Padding(2, 0, 2, 0); this.lb3Timing.Name = "lb3Timing"; this.lb3Timing.Size = new Size(38, 13); this.lb3Timing.TabIndex = 127; this.lb3Timing.Text = "Timing"; this.lb3Timing.TextAlign = ContentAlignment.MiddleLeft; this.dateTimePicker2.Format = DateTimePickerFormat.Short; this.dateTimePicker2.Location = new Point(89, 99); this.dateTimePicker2.MaxDate = new DateTime(2020, 12, 31, 0, 0, 0, 0); this.dateTimePicker2.MinDate = new DateTime(2015, 1, 1, 0, 0, 0, 0); this.dateTimePicker2.Name = "dateTimePicker2"; this.dateTimePicker2.Size = new Size(95, 20); this.dateTimePicker2.TabIndex = 132; this.tbDcaBudget.BackColor = Color.FromArgb(224, 224, 224); this.tbDcaBudget.BorderStyle = BorderStyle.FixedSingle; this.tbDcaBudget.Location = new Point(90, 123); this.tbDcaBudget.Margin = new Padding(2, 3, 2, 3); this.tbDcaBudget.MaxLength = 10; this.tbDcaBudget.Name = "tbDcaBudget"; this.tbDcaBudget.Size = new Size(95, 20); this.tbDcaBudget.TabIndex = 133; this.tbDcaBudget.TextChanged += new EventHandler(this.tbDcaBudget_TextChanged); this.tbDcaBudget.KeyDown += new KeyEventHandler(this.tbDcaBudget_KeyDown); this.dateTimePicker1.Format = DateTimePickerFormat.Short; this.dateTimePicker1.Location = new Point(90, 73); this.dateTimePicker1.MaxDate = new DateTime(2020, 12, 31, 0, 0, 0, 0); this.dateTimePicker1.MinDate = new DateTime(2015, 1, 1, 0, 0, 0, 0); this.dateTimePicker1.Name = "dateTimePicker1"; this.dateTimePicker1.Size = new Size(95, 20); this.dateTimePicker1.TabIndex = 131; this.lb3Budget.AutoSize = true; this.lb3Budget.ForeColor = Color.LightGray; this.lb3Budget.Location = new Point(40, 127); this.lb3Budget.Margin = new Padding(2, 0, 2, 0); this.lb3Budget.Name = "lb3Budget"; this.lb3Budget.Size = new Size(41, 13); this.lb3Budget.TabIndex = 11; this.lb3Budget.Text = "Budget"; this.lb3Budget.TextAlign = ContentAlignment.MiddleLeft; this.gridDcaSimm.AllowDrop = true; this.gridDcaSimm.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); this.gridDcaSimm.BackColor = Color.FromArgb(20, 20, 20); this.gridDcaSimm.CanBlink = true; this.gridDcaSimm.CanDrag = false; this.gridDcaSimm.CanGetMouseMove = false; columnItem.Alignment = StringAlignment.Center; columnItem.BackColor = Color.FromArgb(64, 64, 64); columnItem.FontColor = Color.LightGray; columnItem.IsExpand = false; columnItem.MyStyle = FontStyle.Regular; columnItem.Name = "no"; columnItem.Text = "No."; columnItem.ValueFormat = FormatType.Text; columnItem.Visible = true; columnItem.Width = 20; columnItem2.Alignment = StringAlignment.Center; columnItem2.BackColor = Color.FromArgb(64, 64, 64); columnItem2.FontColor = Color.LightGray; columnItem2.IsExpand = false; columnItem2.MyStyle = FontStyle.Regular; columnItem2.Name = "date"; columnItem2.Text = "Date"; columnItem2.ValueFormat = FormatType.Text; columnItem2.Visible = true; columnItem2.Width = 40; columnItem3.Alignment = StringAlignment.Far; columnItem3.BackColor = Color.FromArgb(64, 64, 64); columnItem3.FontColor = Color.LightGray; columnItem3.IsExpand = false; columnItem3.MyStyle = FontStyle.Regular; columnItem3.Name = "budget"; columnItem3.Text = "Budget"; columnItem3.ValueFormat = FormatType.Volume; columnItem3.Visible = true; columnItem3.Width = 40; columnItem4.Alignment = StringAlignment.Near; columnItem4.BackColor = Color.FromArgb(64, 64, 64); columnItem4.FontColor = Color.LightGray; columnItem4.IsExpand = false; columnItem4.MyStyle = FontStyle.Regular; columnItem4.Name = "tmp_date"; columnItem4.Text = "None"; columnItem4.ValueFormat = FormatType.Text; columnItem4.Visible = false; columnItem4.Width = 10; this.gridDcaSimm.Columns.Add(columnItem); this.gridDcaSimm.Columns.Add(columnItem2); this.gridDcaSimm.Columns.Add(columnItem3); this.gridDcaSimm.Columns.Add(columnItem4); this.gridDcaSimm.CurrentScroll = 0; this.gridDcaSimm.FocusItemIndex = -1; this.gridDcaSimm.ForeColor = Color.Black; this.gridDcaSimm.GridColor = Color.FromArgb(50, 50, 50); this.gridDcaSimm.HeaderPctHeight = 100f; this.gridDcaSimm.IsAutoRepaint = true; this.gridDcaSimm.IsDrawGrid = true; this.gridDcaSimm.IsDrawHeader = true; this.gridDcaSimm.IsScrollable = true; this.gridDcaSimm.Location = new Point(211, 9); this.gridDcaSimm.MainColumn = ""; this.gridDcaSimm.Name = "gridDcaSimm"; this.gridDcaSimm.Rows = 0; this.gridDcaSimm.RowSelectColor = Color.FromArgb(50, 50, 50); this.gridDcaSimm.RowSelectType = 0; this.gridDcaSimm.Size = new Size(493, 287); this.gridDcaSimm.SortColumnName = ""; this.gridDcaSimm.SortType = SortType.Desc; this.gridDcaSimm.TabIndex = 135; this.btnDcaSimlulate.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.btnDcaSimlulate.BackColor = Color.Transparent; this.btnDcaSimlulate.Cursor = Cursors.Hand; this.btnDcaSimlulate.FlatAppearance.BorderColor = Color.DimGray; this.btnDcaSimlulate.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnDcaSimlulate.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnDcaSimlulate.FlatStyle = FlatStyle.Flat; this.btnDcaSimlulate.ForeColor = Color.LightGray; this.btnDcaSimlulate.Image = Resources._1_4type_bt; this.btnDcaSimlulate.Location = new Point(113, 212); this.btnDcaSimlulate.Name = "btnDcaSimlulate"; this.btnDcaSimlulate.Size = new Size(71, 22); this.btnDcaSimlulate.TabIndex = 134; this.btnDcaSimlulate.TabStop = false; this.btnDcaSimlulate.Text = "Simulate"; this.btnDcaSimlulate.UseVisualStyleBackColor = false; this.btnDcaSimlulate.Click += new EventHandler(this.btnDcaSimlulate_Click); this.btnSendOrder.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); this.btnSendOrder.AutoEllipsis = true; this.btnSendOrder.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.btnSendOrder.BackColor = Color.Transparent; this.btnSendOrder.Cursor = Cursors.Hand; this.btnSendOrder.FlatAppearance.BorderColor = Color.DimGray; this.btnSendOrder.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnSendOrder.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnSendOrder.FlatStyle = FlatStyle.Flat; this.btnSendOrder.ForeColor = Color.WhiteSmoke; this.btnSendOrder.Image = Resources.no_side_button; this.btnSendOrder.Location = new Point(585, 305); this.btnSendOrder.MaximumSize = new Size(65, 22); this.btnSendOrder.Name = "btnSendOrder"; this.btnSendOrder.Size = new Size(57, 22); this.btnSendOrder.TabIndex = 149; this.btnSendOrder.TabStop = false; this.btnSendOrder.Text = "Send"; this.btnSendOrder.UseVisualStyleBackColor = false; this.btnSendOrder.Click += new EventHandler(this.btnSendOrder_Click); this.tbPin.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); this.tbPin.AutoCompleteMode = AutoCompleteMode.SuggestAppend; this.tbPin.AutoCompleteSource = AutoCompleteSource.CustomSource; this.tbPin.BackColor = Color.FromArgb(224, 224, 224); this.tbPin.BorderStyle = BorderStyle.FixedSingle; this.tbPin.CharacterCasing = CharacterCasing.Upper; this.tbPin.Location = new Point(523, 306); this.tbPin.Margin = new Padding(2, 3, 2, 3); this.tbPin.MaxLength = 10; this.tbPin.Name = "tbPin"; this.tbPin.PasswordChar = '*'; this.tbPin.Size = new Size(55, 20); this.tbPin.TabIndex = 147; this.lbPin.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); this.lbPin.AutoSize = true; this.lbPin.ForeColor = Color.LightGray; this.lbPin.Location = new Point(494, 310); this.lbPin.Margin = new Padding(2, 0, 2, 0); this.lbPin.Name = "lbPin"; this.lbPin.Size = new Size(25, 13); this.lbPin.TabIndex = 148; this.lbPin.Text = "PIN"; this.lbPin.TextAlign = ContentAlignment.MiddleLeft; this.btnPzClose.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right); this.btnPzClose.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.btnPzClose.BackColor = Color.Transparent; this.btnPzClose.Cursor = Cursors.Hand; this.btnPzClose.FlatAppearance.BorderColor = Color.DimGray; this.btnPzClose.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnPzClose.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnPzClose.FlatStyle = FlatStyle.Flat; this.btnPzClose.ForeColor = Color.LightGray; this.btnPzClose.Image = Resources._1_4type_bt; this.btnPzClose.Location = new Point(648, 305); this.btnPzClose.Name = "btnPzClose"; this.btnPzClose.Size = new Size(57, 22); this.btnPzClose.TabIndex = 146; this.btnPzClose.TabStop = false; this.btnPzClose.Text = "Cancel"; this.btnPzClose.UseVisualStyleBackColor = false; this.btnPzClose.Click += new EventHandler(this.btnPzClose_Click); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; this.BackColor = Color.FromArgb(30, 30, 30); base.ClientSize = new Size(714, 334); base.Controls.Add(this.btnSendOrder); base.Controls.Add(this.tbPin); base.Controls.Add(this.lbPin); base.Controls.Add(this.btnPzClose); base.Controls.Add(this.gridDcaSimm); base.Controls.Add(this.btnDcaSimlulate); base.Controls.Add(this.label9); base.Controls.Add(this.lb3Budget); base.Controls.Add(this.cbDcaTiming2); base.Controls.Add(this.dateTimePicker1); base.Controls.Add(this.lb3Stock); base.Controls.Add(this.tbDcaBudget); base.Controls.Add(this.cbDcaStock); base.Controls.Add(this.dateTimePicker2); base.Controls.Add(this.cbDcaTiming); base.Controls.Add(this.lb3Timing); base.Controls.Add(this.lb3ToDate); base.Controls.Add(this.lb3StartDate); base.FormBorderStyle = FormBorderStyle.None; base.Name = "frmDcaCreateNew"; this.Text = "frmDcaCreateNew"; base.ResumeLayout(false); base.PerformLayout(); }
private PlotModel createBaseModel(DoubleRange? range, string title, double[] x, double[] y, bool discrete) { var plotModel = new PlotModel(); plotModel.Series.Clear(); plotModel.Axes.Clear(); double ymin = y.FirstOrDefault(a => !Double.IsNaN(a) && !Double.IsInfinity(a)); double ymax = ymin; for (int i = 0; i < y.Length; i++) { if (Double.IsNaN(y[i]) || Double.IsInfinity(y[i])) continue; if (y[i] > ymax) ymax = y[i]; if (y[i] < ymin) ymin = y[i]; } double maxGrace = ymax * 0.1; double minGrace = ymin * 0.1; if (!discrete) { var xAxis = new OxyPlot.Axes.LinearAxis() { Position = AxisPosition.Bottom, Minimum = range.Value.Min, Maximum = range.Value.Max, Key = "xAxis", MajorGridlineStyle = LineStyle.Solid, MinorGridlineStyle = LineStyle.Dot, IntervalLength = 80 }; var yAxis = new LinearAxis() { Position = AxisPosition.Left, Minimum = ymin - minGrace, Maximum = ymax + maxGrace, Key = "yAxis", MajorGridlineStyle = LineStyle.Solid, MinorGridlineStyle = LineStyle.Dot, Title = title }; plotModel.Axes.Add(xAxis); plotModel.Axes.Add(yAxis); var lineSeries = new LineSeries { YAxisKey = yAxis.Key, XAxisKey = xAxis.Key, StrokeThickness = 2, MarkerSize = 3, MarkerStroke = OxyColor.FromRgb(0, 0, 0), MarkerType = MarkerType.None, Smooth = true, }; for (int i = 0; i < x.Length; i++) { if (Double.IsNaN(y[i]) || Double.IsInfinity(y[i])) continue; lineSeries.Points.Add(new DataPoint(x[i], y[i])); } plotModel.Series.Add(lineSeries); } else { var xAxis = new OxyPlot.Axes.CategoryAxis() { Position = AxisPosition.Bottom, Key = "xAxis", MajorGridlineStyle = LineStyle.Solid, MinorGridlineStyle = LineStyle.Dot, }; var yAxis = new LinearAxis() { Position = AxisPosition.Left, Minimum = ymin - minGrace, Maximum = ymax + maxGrace, Key = "yAxis", MajorGridlineStyle = LineStyle.Solid, MinorGridlineStyle = LineStyle.Dot, Title = title }; plotModel.Axes.Add(xAxis); plotModel.Axes.Add(yAxis); var boxSeries = new ColumnSeries { YAxisKey = yAxis.Key, XAxisKey = xAxis.Key, StrokeThickness = 2, ColumnWidth = 1, }; for (int i = 0; i < x.Length; i++) { xAxis.Labels.Add(x[i].ToString("G2")); var item = new ColumnItem(y[i]); boxSeries.Items.Add(item); } plotModel.Series.Add(boxSeries); } var formattable = instance as IFormattable; if (formattable != null) { plotModel.Title = formattable.ToString("G3", CultureInfo.CurrentUICulture); } else { plotModel.Title = instance.ToString(); } plotModel.TitlePadding = 2; plotModel.TitleFontSize = 15; plotModel.TitleFontWeight = 1; plotModel.TitlePadding = 2; return plotModel; }
private void InitializeComponent() { this.components = new Container(); ColumnItem columnItem = new ColumnItem(); ColumnItem columnItem2 = new ColumnItem(); ColumnItem columnItem3 = new ColumnItem(); ColumnItem columnItem4 = new ColumnItem(); ColumnItem columnItem5 = new ColumnItem(); ColumnItem columnItem6 = new ColumnItem(); ColumnItem columnItem7 = new ColumnItem(); ColumnItem columnItem8 = new ColumnItem(); ColumnItem columnItem9 = new ColumnItem(); ColumnItem columnItem10 = new ColumnItem(); ColumnItem columnItem11 = new ColumnItem(); ColumnItem columnItem12 = new ColumnItem(); ColumnItem columnItem13 = new ColumnItem(); ColumnItem columnItem14 = new ColumnItem(); ColumnItem columnItem15 = new ColumnItem(); ColumnItem columnItem16 = new ColumnItem(); ColumnItem columnItem17 = new ColumnItem(); ColumnItem columnItem18 = new ColumnItem(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmAutoTrade)); ColumnItem columnItem19 = new ColumnItem(); ColumnItem columnItem20 = new ColumnItem(); ColumnItem columnItem21 = new ColumnItem(); ColumnItem columnItem22 = new ColumnItem(); ColumnItem columnItem23 = new ColumnItem(); ColumnItem columnItem24 = new ColumnItem(); ColumnItem columnItem25 = new ColumnItem(); ColumnItem columnItem26 = new ColumnItem(); ColumnItem columnItem27 = new ColumnItem(); ColumnItem columnItem28 = new ColumnItem(); ColumnItem columnItem29 = new ColumnItem(); ColumnItem columnItem30 = new ColumnItem(); ColumnItem columnItem31 = new ColumnItem(); ColumnItem columnItem32 = new ColumnItem(); ColumnItem columnItem33 = new ColumnItem(); this.btnClear = new Button(); this.btnSendOrder = new Button(); this.btnSendLocalOrder = new Button(); this.tbPin = new TextBox(); this.lbPin = new Label(); this.cb1Price = new ComboBox(); this.cb1Stock = new ComboBox(); this.lb1Stock = new Label(); this.lbPrice = new Label(); this.lbVolume = new Label(); this.tb1Volume = new TextBox(); this.panelTop = new Panel(); this.lbExpire = new Label(); this.cbExpire = new ComboBox(); this.panelPZ = new Panel(); this.gridPzMain = new ExpandGrid(); this.btnPzCreateNew = new Button(); this.btnPzCancel = new Button(); this.btnPzReload = new Button(); this.panelDCA = new Panel(); this.gridDcaMain = new ExpandGrid(); this.btnDcaCreate = new Button(); this.btn3Cancel = new Button(); this.btnDcaReload = new Button(); this.panType2 = new Panel(); this.label8 = new Label(); this.lb2ValueCutloss = new Label(); this.cb2ValueCutloss = new ComboBox(); this.cb2PriceBreak = new ComboBox(); this.label7 = new Label(); this.lb2ValueTrailingStop = new Label(); this.cb2ValueTrailingStop = new ComboBox(); this.cb2PriceSMA = new ComboBox(); this.label5 = new Label(); this.cb2OperCutloss = new ComboBox(); this.cb2OperTrailingStop = new ComboBox(); this.cb2OperTakeProfit = new ComboBox(); this.chb2CutLossCond = new CheckBox(); this.chb2TrailingStopCond = new CheckBox(); this.chb2TakeProfitCond = new CheckBox(); this.lb2ValueTakeProfit = new Label(); this.cb2ValueTakeProfit = new ComboBox(); this.cb2PriceLast = new ComboBox(); this.chbGroupCancel = new CheckBox(); this.label3 = new Label(); this.tb2Volume = new TextBox(); this.label4 = new Label(); this.btnTypePZ = new Button(); this.panType1 = new Panel(); this.cb1Condition = new ComboBox(); this.lb1Value = new Label(); this.cb1Value = new ComboBox(); this.lbStopOrderField = new Label(); this.btnTypeDCA = new Button(); this.btnTypeMM = new Button(); this.btnSell = new Button(); this.btnBuy = new Button(); this.btnType2 = new Button(); this.btnType1 = new Button(); this.lbPattern = new Label(); this.tStripMenu = new ToolStrip(); this.tslbStatus = new ToolStripLabel(); this.tscbStatus = new ToolStripComboBox(); this.tslbStock = new ToolStripLabel(); this.tstbStock = new ToolStripTextBox(); this.tslbSide = new ToolStripLabel(); this.tscbSide = new ToolStripComboBox(); this.tsbtnClearCondition = new ToolStripButton(); this.tsbtnCancelOrder = new ToolStripButton(); this.tsbtnSearch = new ToolStripButton(); this.panel1 = new Panel(); this.intzaOrder = new ExpandGrid(); this.lbAutoTradeLoading = new Label(); this.toolTip1 = new ToolTip(this.components); this.panelTop.SuspendLayout(); this.panelPZ.SuspendLayout(); this.panelDCA.SuspendLayout(); this.panType2.SuspendLayout(); this.panType1.SuspendLayout(); this.tStripMenu.SuspendLayout(); this.panel1.SuspendLayout(); base.SuspendLayout(); this.btnClear.AutoEllipsis = true; this.btnClear.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.btnClear.BackColor = Color.Transparent; this.btnClear.Cursor = Cursors.Hand; this.btnClear.FlatAppearance.BorderColor = Color.DimGray; this.btnClear.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnClear.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnClear.FlatStyle = FlatStyle.Flat; this.btnClear.ForeColor = Color.WhiteSmoke; this.btnClear.Location = new Point(620, 394); this.btnClear.MaximumSize = new Size(58, 23); this.btnClear.Name = "btnClear"; this.btnClear.Size = new Size(54, 22); this.btnClear.TabIndex = 103; this.btnClear.TabStop = false; this.btnClear.Text = "Clear"; this.btnClear.UseVisualStyleBackColor = false; this.btnClear.Click += new EventHandler(this.btnClear_Click); this.btnSendOrder.AutoEllipsis = true; this.btnSendOrder.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.btnSendOrder.BackColor = Color.Transparent; this.btnSendOrder.Cursor = Cursors.Hand; this.btnSendOrder.FlatAppearance.BorderColor = Color.DimGray; this.btnSendOrder.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnSendOrder.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnSendOrder.FlatStyle = FlatStyle.Flat; this.btnSendOrder.ForeColor = Color.WhiteSmoke; this.btnSendOrder.Location = new Point(560, 394); this.btnSendOrder.MaximumSize = new Size(58, 23); this.btnSendOrder.Name = "btnSendOrder"; this.btnSendOrder.Size = new Size(54, 22); this.btnSendOrder.TabIndex = 102; this.btnSendOrder.TabStop = false; this.btnSendOrder.Text = "Send"; this.btnSendOrder.UseVisualStyleBackColor = false; this.btnSendOrder.Click += new EventHandler(this.btnSendOrder_Click); this.btnSendLocalOrder.AutoEllipsis = true; this.btnSendLocalOrder.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.btnSendLocalOrder.BackColor = Color.Transparent; this.btnSendLocalOrder.Cursor = Cursors.Hand; this.btnSendLocalOrder.FlatAppearance.BorderColor = Color.DimGray; this.btnSendLocalOrder.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnSendLocalOrder.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnSendLocalOrder.FlatStyle = FlatStyle.Flat; this.btnSendLocalOrder.ForeColor = Color.WhiteSmoke; this.btnSendLocalOrder.Location = new Point(560, 394); this.btnSendLocalOrder.MaximumSize = new Size(58, 23); this.btnSendLocalOrder.Name = "btnSendLocalOrder"; this.btnSendLocalOrder.Size = new Size(54, 22); this.btnSendLocalOrder.TabIndex = 102; this.btnSendLocalOrder.TabStop = false; this.btnSendLocalOrder.Text = "Send"; this.btnSendLocalOrder.UseVisualStyleBackColor = false; this.btnSendLocalOrder.Click += new EventHandler(this.btnSendLocalOrder_Click); this.lbAutoTradeLoading.AutoSize = true; this.lbAutoTradeLoading.BackColor = Color.FromArgb(64, 64, 64); this.lbAutoTradeLoading.BorderStyle = BorderStyle.FixedSingle; this.lbAutoTradeLoading.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 222); this.lbAutoTradeLoading.ForeColor = Color.Yellow; this.lbAutoTradeLoading.Location = new Point(602, 166); this.lbAutoTradeLoading.Name = "lbAutoTradeLoading"; this.lbAutoTradeLoading.Padding = new Padding(5, 3, 5, 3); this.lbAutoTradeLoading.Size = new Size(69, 21); this.lbAutoTradeLoading.TabIndex = 73; this.lbAutoTradeLoading.Text = "Loading ..."; this.lbAutoTradeLoading.TextAlign = ContentAlignment.MiddleCenter; this.lbAutoTradeLoading.Visible = false; this.tbPin.AutoCompleteMode = AutoCompleteMode.SuggestAppend; this.tbPin.AutoCompleteSource = AutoCompleteSource.CustomSource; this.tbPin.BackColor = Color.FromArgb(224, 224, 224); this.tbPin.BorderStyle = BorderStyle.FixedSingle; this.tbPin.CharacterCasing = CharacterCasing.Upper; this.tbPin.Location = new Point(500, 395); this.tbPin.Margin = new Padding(2, 3, 2, 3); this.tbPin.MaxLength = 10; this.tbPin.Name = "tbPin"; this.tbPin.PasswordChar = '*'; this.tbPin.Size = new Size(55, 20); this.tbPin.TabIndex = 7; this.tbPin.KeyDown += new KeyEventHandler(this.tbPin_KeyDown); this.tbPin.Leave += new EventHandler(this.controlOrder_Leave); this.tbPin.Enter += new EventHandler(this.controlOrder_Enter); this.lbPin.AutoSize = true; this.lbPin.ForeColor = Color.LightGray; this.lbPin.Location = new Point(473, 399); this.lbPin.Margin = new Padding(2, 0, 2, 0); this.lbPin.Name = "lbPin"; this.lbPin.Size = new Size(25, 13); this.lbPin.TabIndex = 90; this.lbPin.Text = "PIN"; this.lbPin.TextAlign = ContentAlignment.MiddleLeft; this.cb1Price.AllowDrop = true; this.cb1Price.AutoCompleteCustomSource.AddRange(new string[] { "", "ATO", "ATC", "MP", "MO", "ML" }); this.cb1Price.AutoCompleteMode = AutoCompleteMode.Append; this.cb1Price.AutoCompleteSource = AutoCompleteSource.CustomSource; this.cb1Price.BackColor = Color.FromArgb(224, 224, 224); this.cb1Price.FlatStyle = FlatStyle.Popup; this.cb1Price.ForeColor = Color.Black; this.cb1Price.FormattingEnabled = true; this.cb1Price.Location = new Point(311, 30); this.cb1Price.Name = "cb1Price"; this.cb1Price.Size = new Size(57, 21); this.cb1Price.TabIndex = 118; this.cb1Price.Leave += new EventHandler(this.controlOrder_Leave); this.cb1Price.Enter += new EventHandler(this.controlOrder_Enter); this.cb1Price.KeyPress += new KeyPressEventHandler(this.cbPrice_KeyPress); this.cb1Price.KeyDown += new KeyEventHandler(this.cb1Price_KeyDown); this.cb1Stock.AutoCompleteMode = AutoCompleteMode.Suggest; this.cb1Stock.AutoCompleteSource = AutoCompleteSource.ListItems; this.cb1Stock.BackColor = Color.FromArgb(224, 224, 224); this.cb1Stock.FlatStyle = FlatStyle.Popup; this.cb1Stock.ForeColor = Color.Black; this.cb1Stock.FormattingEnabled = true; this.cb1Stock.Location = new Point(180, 6); this.cb1Stock.MaxLength = 20; this.cb1Stock.Name = "cb1Stock"; this.cb1Stock.Size = new Size(100, 21); this.cb1Stock.TabIndex = 0; this.cb1Stock.Leave += new EventHandler(this.controlOrder_Leave); this.cb1Stock.Enter += new EventHandler(this.controlOrder_Enter); this.cb1Stock.KeyPress += new KeyPressEventHandler(this.cbPrice_KeyPress); this.cb1Stock.KeyDown += new KeyEventHandler(this.cbStock_KeyDown); this.lb1Stock.AutoSize = true; this.lb1Stock.ForeColor = Color.LightGray; this.lb1Stock.Location = new Point(134, 10); this.lb1Stock.Margin = new Padding(2, 0, 2, 0); this.lb1Stock.Name = "lb1Stock"; this.lb1Stock.Size = new Size(41, 13); this.lb1Stock.TabIndex = 100; this.lb1Stock.Text = "Symbol"; this.lb1Stock.TextAlign = ContentAlignment.MiddleLeft; this.lbPrice.AutoSize = true; this.lbPrice.ForeColor = Color.LightGray; this.lbPrice.Location = new Point(276, 34); this.lbPrice.Margin = new Padding(2, 0, 2, 0); this.lbPrice.Name = "lbPrice"; this.lbPrice.Size = new Size(31, 13); this.lbPrice.TabIndex = 13; this.lbPrice.Text = "Price"; this.lbPrice.TextAlign = ContentAlignment.MiddleLeft; this.lbVolume.AutoSize = true; this.lbVolume.ForeColor = Color.LightGray; this.lbVolume.Location = new Point(383, 34); this.lbVolume.Margin = new Padding(2, 0, 2, 0); this.lbVolume.Name = "lbVolume"; this.lbVolume.Size = new Size(42, 13); this.lbVolume.TabIndex = 11; this.lbVolume.Text = "Volume"; this.lbVolume.TextAlign = ContentAlignment.MiddleLeft; this.tb1Volume.BackColor = Color.FromArgb(224, 224, 224); this.tb1Volume.BorderStyle = BorderStyle.FixedSingle; this.tb1Volume.Location = new Point(428, 30); this.tb1Volume.Margin = new Padding(2, 3, 2, 3); this.tb1Volume.MaxLength = 10; this.tb1Volume.Name = "tb1Volume"; this.tb1Volume.Size = new Size(59, 20); this.tb1Volume.TabIndex = 119; this.tb1Volume.TextChanged += new EventHandler(this.tb1Volume_TextChanged); this.tb1Volume.KeyDown += new KeyEventHandler(this.tb1Volume_KeyDown); this.tb1Volume.Leave += new EventHandler(this.controlOrder_Leave); this.tb1Volume.Enter += new EventHandler(this.controlOrder_Enter); this.panelTop.BackColor = Color.FromArgb(20, 20, 20); this.panelTop.Controls.Add(this.lbExpire); this.panelTop.Controls.Add(this.cbExpire); this.panelTop.Controls.Add(this.panelPZ); this.panelTop.Controls.Add(this.panelDCA); this.panelTop.Controls.Add(this.panType2); this.panelTop.Controls.Add(this.btnTypePZ); this.panelTop.Controls.Add(this.panType1); this.panelTop.Controls.Add(this.btnTypeDCA); this.panelTop.Controls.Add(this.btnTypeMM); this.panelTop.Controls.Add(this.btnClear); this.panelTop.Controls.Add(this.lb1Stock); this.panelTop.Controls.Add(this.btnSendOrder); this.panelTop.Controls.Add(this.btnSendLocalOrder); this.panelTop.Controls.Add(this.cb1Stock); this.panelTop.Controls.Add(this.tbPin); this.panelTop.Controls.Add(this.lbPin); this.panelTop.Controls.Add(this.btnSell); this.panelTop.Controls.Add(this.btnBuy); this.panelTop.Controls.Add(this.btnType2); this.panelTop.Controls.Add(this.btnType1); this.panelTop.Controls.Add(this.lbPattern); this.panelTop.Controls.Add(this.lbAutoTradeLoading); this.panelTop.Dock = DockStyle.Top; this.panelTop.Location = new Point(0, 0); this.panelTop.Name = "panelTop"; this.panelTop.Padding = new Padding(2); this.panelTop.Size = new Size(697, 424); this.panelTop.TabIndex = 113; this.lbExpire.AutoSize = true; this.lbExpire.ForeColor = Color.LightGray; this.lbExpire.Location = new Point(334, 400); this.lbExpire.Margin = new Padding(2, 0, 2, 0); this.lbExpire.Name = "lbExpire"; this.lbExpire.Size = new Size(36, 13); this.lbExpire.TabIndex = 127; this.lbExpire.Text = "Expire"; this.lbExpire.TextAlign = ContentAlignment.MiddleLeft; this.cbExpire.DropDownStyle = ComboBoxStyle.DropDownList; this.cbExpire.FlatStyle = FlatStyle.Flat; this.cbExpire.ForeColor = Color.FromArgb(192, 0, 0); this.cbExpire.FormattingEnabled = true; this.cbExpire.Items.AddRange(new object[] { "End Day", "30 Days", "60 Days", "90 Days", "180 Days" }); this.cbExpire.Location = new Point(375, 396); this.cbExpire.Margin = new Padding(2); this.cbExpire.Name = "cbExpire"; this.cbExpire.Size = new Size(70, 21); this.cbExpire.TabIndex = 126; this.panelPZ.BackColor = Color.FromArgb(30, 30, 30); this.panelPZ.Controls.Add(this.gridPzMain); this.panelPZ.Controls.Add(this.btnPzCreateNew); this.panelPZ.Controls.Add(this.btnPzCancel); this.panelPZ.Controls.Add(this.btnPzReload); this.panelPZ.Location = new Point(7, 193); this.panelPZ.Name = "panelPZ"; this.panelPZ.Size = new Size(673, 105); this.panelPZ.TabIndex = 124; this.panelPZ.Visible = false; this.gridPzMain.AllowDrop = true; this.gridPzMain.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); this.gridPzMain.BackColor = Color.FromArgb(20, 20, 20); this.gridPzMain.CanBlink = true; this.gridPzMain.CanDrag = false; this.gridPzMain.CanGetMouseMove = false; columnItem.Alignment = StringAlignment.Center; columnItem.BackColor = Color.FromArgb(64, 64, 64); columnItem.FontColor = Color.LightGray; columnItem.IsExpand = false; columnItem.MyStyle = FontStyle.Regular; columnItem.Name = "refno"; columnItem.Text = "Ref No."; columnItem.ValueFormat = FormatType.Text; columnItem.Visible = true; columnItem.Width = 7; columnItem2.Alignment = StringAlignment.Near; columnItem2.BackColor = Color.FromArgb(64, 64, 64); columnItem2.FontColor = Color.LightGray; columnItem2.IsExpand = false; columnItem2.MyStyle = FontStyle.Regular; columnItem2.Name = "stock"; columnItem2.Text = "Symbol"; columnItem2.ValueFormat = FormatType.Text; columnItem2.Visible = true; columnItem2.Width = 14; columnItem3.Alignment = StringAlignment.Far; columnItem3.BackColor = Color.FromArgb(64, 64, 64); columnItem3.FontColor = Color.LightGray; columnItem3.IsExpand = false; columnItem3.MyStyle = FontStyle.Regular; columnItem3.Name = "budget"; columnItem3.Text = "Budget"; columnItem3.ValueFormat = FormatType.Volume; columnItem3.Visible = true; columnItem3.Width = 12; columnItem4.Alignment = StringAlignment.Center; columnItem4.BackColor = Color.FromArgb(64, 64, 64); columnItem4.FontColor = Color.LightGray; columnItem4.IsExpand = false; columnItem4.MyStyle = FontStyle.Regular; columnItem4.Name = "start_price"; columnItem4.Text = "Start Price"; columnItem4.ValueFormat = FormatType.Text; columnItem4.Visible = true; columnItem4.Width = 8; columnItem5.Alignment = StringAlignment.Center; columnItem5.BackColor = Color.FromArgb(64, 64, 64); columnItem5.FontColor = Color.LightGray; columnItem5.IsExpand = false; columnItem5.MyStyle = FontStyle.Regular; columnItem5.Name = "no_steps"; columnItem5.Text = "Segment"; columnItem5.ValueFormat = FormatType.Text; columnItem5.Visible = true; columnItem5.Width = 9; columnItem6.Alignment = StringAlignment.Center; columnItem6.BackColor = Color.FromArgb(64, 64, 64); columnItem6.FontColor = Color.LightGray; columnItem6.IsExpand = false; columnItem6.MyStyle = FontStyle.Regular; columnItem6.Name = "depth_pct"; columnItem6.Text = "%Chg"; columnItem6.ValueFormat = FormatType.Text; columnItem6.Visible = true; columnItem6.Width = 8; columnItem7.Alignment = StringAlignment.Far; columnItem7.BackColor = Color.FromArgb(64, 64, 64); columnItem7.FontColor = Color.LightGray; columnItem7.IsExpand = false; columnItem7.MyStyle = FontStyle.Regular; columnItem7.Name = "matvol"; columnItem7.Text = "M-Volume"; columnItem7.ValueFormat = FormatType.Volume; columnItem7.Visible = true; columnItem7.Width = 11; columnItem8.Alignment = StringAlignment.Far; columnItem8.BackColor = Color.FromArgb(64, 64, 64); columnItem8.FontColor = Color.LightGray; columnItem8.IsExpand = false; columnItem8.MyStyle = FontStyle.Regular; columnItem8.Name = "matval"; columnItem8.Text = "Cost"; columnItem8.ValueFormat = FormatType.Volume; columnItem8.Visible = true; columnItem8.Width = 11; columnItem9.Alignment = StringAlignment.Far; columnItem9.BackColor = Color.FromArgb(64, 64, 64); columnItem9.FontColor = Color.LightGray; columnItem9.IsExpand = false; columnItem9.MyStyle = FontStyle.Regular; columnItem9.Name = "avg"; columnItem9.Text = "Avg"; columnItem9.ValueFormat = FormatType.Price; columnItem9.Visible = true; columnItem9.Width = 8; columnItem10.Alignment = StringAlignment.Center; columnItem10.BackColor = Color.FromArgb(64, 64, 64); columnItem10.FontColor = Color.LightGray; columnItem10.IsExpand = false; columnItem10.MyStyle = FontStyle.Regular; columnItem10.Name = "status"; columnItem10.Text = "Status"; columnItem10.ValueFormat = FormatType.Text; columnItem10.Visible = true; columnItem10.Width = 11; this.gridPzMain.Columns.Add(columnItem); this.gridPzMain.Columns.Add(columnItem2); this.gridPzMain.Columns.Add(columnItem3); this.gridPzMain.Columns.Add(columnItem4); this.gridPzMain.Columns.Add(columnItem5); this.gridPzMain.Columns.Add(columnItem6); this.gridPzMain.Columns.Add(columnItem7); this.gridPzMain.Columns.Add(columnItem8); this.gridPzMain.Columns.Add(columnItem9); this.gridPzMain.Columns.Add(columnItem10); this.gridPzMain.CurrentScroll = 0; this.gridPzMain.FocusItemIndex = -1; this.gridPzMain.ForeColor = Color.Black; this.gridPzMain.GridColor = Color.FromArgb(50, 50, 50); this.gridPzMain.HeaderPctHeight = 100f; this.gridPzMain.IsAutoRepaint = true; this.gridPzMain.IsDrawGrid = true; this.gridPzMain.IsDrawHeader = true; this.gridPzMain.IsScrollable = true; this.gridPzMain.Location = new Point(8, 35); this.gridPzMain.MainColumn = ""; this.gridPzMain.Name = "gridPzMain"; this.gridPzMain.Rows = 0; this.gridPzMain.RowSelectColor = Color.FromArgb(50, 50, 50); this.gridPzMain.RowSelectType = 3; this.gridPzMain.Size = new Size(657, 61); this.gridPzMain.SortColumnName = ""; this.gridPzMain.SortType = SortType.Desc; this.gridPzMain.TabIndex = 130; this.gridPzMain.TableMouseDoubleClick += new ExpandGrid.TableMouseDoubleClickEventHandler(this.gridPzMain_TableMouseDoubleClick); this.btnPzCreateNew.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.btnPzCreateNew.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.btnPzCreateNew.BackColor = Color.Transparent; this.btnPzCreateNew.Cursor = Cursors.Hand; this.btnPzCreateNew.FlatAppearance.BorderColor = Color.DimGray; this.btnPzCreateNew.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnPzCreateNew.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnPzCreateNew.FlatStyle = FlatStyle.Flat; this.btnPzCreateNew.ForeColor = Color.WhiteSmoke; this.btnPzCreateNew.Image = Resources.blue_tab; this.btnPzCreateNew.Location = new Point(547, 7); this.btnPzCreateNew.MaximumSize = new Size(58, 23); this.btnPzCreateNew.Name = "btnPzCreateNew"; this.btnPzCreateNew.Size = new Size(54, 22); this.btnPzCreateNew.TabIndex = 139; this.btnPzCreateNew.TabStop = false; this.btnPzCreateNew.Text = "Create"; this.btnPzCreateNew.UseVisualStyleBackColor = false; this.btnPzCreateNew.Click += new EventHandler(this.btnPzCreateNew_Click); this.btnPzCancel.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.btnPzCancel.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.btnPzCancel.BackColor = Color.Transparent; this.btnPzCancel.Cursor = Cursors.Hand; this.btnPzCancel.FlatAppearance.BorderColor = Color.DimGray; this.btnPzCancel.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnPzCancel.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnPzCancel.FlatStyle = FlatStyle.Flat; this.btnPzCancel.ForeColor = Color.WhiteSmoke; this.btnPzCancel.Image = Resources.sell_button; this.btnPzCancel.Location = new Point(607, 7); this.btnPzCancel.MaximumSize = new Size(58, 23); this.btnPzCancel.Name = "btnPzCancel"; this.btnPzCancel.Size = new Size(54, 22); this.btnPzCancel.TabIndex = 132; this.btnPzCancel.TabStop = false; this.btnPzCancel.Text = "Cancel"; this.btnPzCancel.UseVisualStyleBackColor = false; this.btnPzCancel.Click += new EventHandler(this.btnPzCancel_Click); this.btnPzReload.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.btnPzReload.BackColor = Color.Transparent; this.btnPzReload.Cursor = Cursors.Hand; this.btnPzReload.FlatAppearance.BorderColor = Color.DimGray; this.btnPzReload.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnPzReload.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnPzReload.FlatStyle = FlatStyle.Flat; this.btnPzReload.ForeColor = Color.LightGray; this.btnPzReload.Image = Resources._1_4type_bt; this.btnPzReload.Location = new Point(8, 7); this.btnPzReload.MaximumSize = new Size(58, 23); this.btnPzReload.Name = "btnPzReload"; this.btnPzReload.Size = new Size(54, 22); this.btnPzReload.TabIndex = 131; this.btnPzReload.TabStop = false; this.btnPzReload.Text = "Reload"; this.btnPzReload.UseVisualStyleBackColor = false; this.btnPzReload.Click += new EventHandler(this.btnPzReload_Click); this.panelDCA.BackColor = Color.FromArgb(30, 30, 30); this.panelDCA.Controls.Add(this.gridDcaMain); this.panelDCA.Controls.Add(this.btnDcaCreate); this.panelDCA.Controls.Add(this.btn3Cancel); this.panelDCA.Controls.Add(this.btnDcaReload); this.panelDCA.Location = new Point(6, 303); this.panelDCA.Name = "panelDCA"; this.panelDCA.Size = new Size(673, 88); this.panelDCA.TabIndex = 122; this.panelDCA.Visible = false; this.gridDcaMain.AllowDrop = true; this.gridDcaMain.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); this.gridDcaMain.BackColor = Color.FromArgb(20, 20, 20); this.gridDcaMain.CanBlink = true; this.gridDcaMain.CanDrag = false; this.gridDcaMain.CanGetMouseMove = false; columnItem11.Alignment = StringAlignment.Center; columnItem11.BackColor = Color.FromArgb(64, 64, 64); columnItem11.FontColor = Color.LightGray; columnItem11.IsExpand = false; columnItem11.MyStyle = FontStyle.Regular; columnItem11.Name = "refno"; columnItem11.Text = "Ref No."; columnItem11.ValueFormat = FormatType.Text; columnItem11.Visible = true; columnItem11.Width = 10; columnItem12.Alignment = StringAlignment.Near; columnItem12.BackColor = Color.FromArgb(64, 64, 64); columnItem12.FontColor = Color.LightGray; columnItem12.IsExpand = false; columnItem12.MyStyle = FontStyle.Regular; columnItem12.Name = "stock"; columnItem12.Text = "Symbol"; columnItem12.ValueFormat = FormatType.Text; columnItem12.Visible = true; columnItem12.Width = 15; columnItem13.Alignment = StringAlignment.Far; columnItem13.BackColor = Color.FromArgb(64, 64, 64); columnItem13.FontColor = Color.LightGray; columnItem13.IsExpand = false; columnItem13.MyStyle = FontStyle.Regular; columnItem13.Name = "budget"; columnItem13.Text = "Budget"; columnItem13.ValueFormat = FormatType.Volume; columnItem13.Visible = true; columnItem13.Width = 13; columnItem14.Alignment = StringAlignment.Center; columnItem14.BackColor = Color.FromArgb(64, 64, 64); columnItem14.FontColor = Color.LightGray; columnItem14.IsExpand = false; columnItem14.MyStyle = FontStyle.Regular; columnItem14.Name = "period"; columnItem14.Text = "Period"; columnItem14.ValueFormat = FormatType.Text; columnItem14.Visible = true; columnItem14.Width = 12; columnItem15.Alignment = StringAlignment.Center; columnItem15.BackColor = Color.FromArgb(64, 64, 64); columnItem15.FontColor = Color.LightGray; columnItem15.IsExpand = false; columnItem15.MyStyle = FontStyle.Regular; columnItem15.Name = "startdate"; columnItem15.Text = "Start Date"; columnItem15.ValueFormat = FormatType.Text; columnItem15.Visible = true; columnItem15.Width = 12; columnItem16.Alignment = StringAlignment.Center; columnItem16.BackColor = Color.FromArgb(64, 64, 64); columnItem16.FontColor = Color.LightGray; columnItem16.IsExpand = false; columnItem16.MyStyle = FontStyle.Regular; columnItem16.Name = "enddate"; columnItem16.Text = "End Date"; columnItem16.ValueFormat = FormatType.Text; columnItem16.Visible = true; columnItem16.Width = 12; columnItem17.Alignment = StringAlignment.Far; columnItem17.BackColor = Color.FromArgb(64, 64, 64); columnItem17.FontColor = Color.LightGray; columnItem17.IsExpand = false; columnItem17.MyStyle = FontStyle.Regular; columnItem17.Name = "matvol"; columnItem17.Text = "Matched"; columnItem17.ValueFormat = FormatType.Volume; columnItem17.Visible = true; columnItem17.Width = 12; columnItem18.Alignment = StringAlignment.Center; columnItem18.BackColor = Color.FromArgb(64, 64, 64); columnItem18.FontColor = Color.LightGray; columnItem18.IsExpand = false; columnItem18.MyStyle = FontStyle.Regular; columnItem18.Name = "status"; columnItem18.Text = "Status"; columnItem18.ValueFormat = FormatType.Text; columnItem18.Visible = true; columnItem18.Width = 14; this.gridDcaMain.Columns.Add(columnItem11); this.gridDcaMain.Columns.Add(columnItem12); this.gridDcaMain.Columns.Add(columnItem13); this.gridDcaMain.Columns.Add(columnItem14); this.gridDcaMain.Columns.Add(columnItem15); this.gridDcaMain.Columns.Add(columnItem16); this.gridDcaMain.Columns.Add(columnItem17); this.gridDcaMain.Columns.Add(columnItem18); this.gridDcaMain.CurrentScroll = 0; this.gridDcaMain.FocusItemIndex = -1; this.gridDcaMain.ForeColor = Color.Black; this.gridDcaMain.GridColor = Color.FromArgb(30, 30, 30); this.gridDcaMain.HeaderPctHeight = 100f; this.gridDcaMain.IsAutoRepaint = true; this.gridDcaMain.IsDrawGrid = true; this.gridDcaMain.IsDrawHeader = true; this.gridDcaMain.IsScrollable = true; this.gridDcaMain.Location = new Point(8, 35); this.gridDcaMain.MainColumn = ""; this.gridDcaMain.Name = "gridDcaMain"; this.gridDcaMain.Rows = 0; this.gridDcaMain.RowSelectColor = Color.FromArgb(50, 50, 50); this.gridDcaMain.RowSelectType = 3; this.gridDcaMain.Size = new Size(660, 44); this.gridDcaMain.SortColumnName = ""; this.gridDcaMain.SortType = SortType.Desc; this.gridDcaMain.TabIndex = 130; this.gridDcaMain.TableMouseDoubleClick += new ExpandGrid.TableMouseDoubleClickEventHandler(this.grid3_TableMouseDoubleClick); this.btnDcaCreate.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.btnDcaCreate.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.btnDcaCreate.BackColor = Color.Transparent; this.btnDcaCreate.Cursor = Cursors.Hand; this.btnDcaCreate.FlatAppearance.BorderColor = Color.DimGray; this.btnDcaCreate.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnDcaCreate.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnDcaCreate.FlatStyle = FlatStyle.Flat; this.btnDcaCreate.ForeColor = Color.WhiteSmoke; this.btnDcaCreate.Image = Resources.blue_tab; this.btnDcaCreate.Location = new Point(544, 7); this.btnDcaCreate.MaximumSize = new Size(58, 23); this.btnDcaCreate.Name = "btnDcaCreate"; this.btnDcaCreate.Size = new Size(54, 22); this.btnDcaCreate.TabIndex = 139; this.btnDcaCreate.TabStop = false; this.btnDcaCreate.Text = "Create"; this.btnDcaCreate.UseVisualStyleBackColor = false; this.btnDcaCreate.Click += new EventHandler(this.btnDcaCreate_Click); this.btn3Cancel.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.btn3Cancel.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.btn3Cancel.BackColor = Color.Transparent; this.btn3Cancel.Cursor = Cursors.Hand; this.btn3Cancel.FlatAppearance.BorderColor = Color.DimGray; this.btn3Cancel.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btn3Cancel.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btn3Cancel.FlatStyle = FlatStyle.Flat; this.btn3Cancel.ForeColor = Color.WhiteSmoke; this.btn3Cancel.Image = Resources.sell_button; this.btn3Cancel.Location = new Point(607, 7); this.btn3Cancel.MaximumSize = new Size(58, 23); this.btn3Cancel.Name = "btn3Cancel"; this.btn3Cancel.Size = new Size(54, 22); this.btn3Cancel.TabIndex = 132; this.btn3Cancel.TabStop = false; this.btn3Cancel.Text = "Cancel"; this.btn3Cancel.UseVisualStyleBackColor = false; this.btn3Cancel.Click += new EventHandler(this.btnDcaCancel_Click); this.btnDcaReload.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.btnDcaReload.BackColor = Color.Transparent; this.btnDcaReload.Cursor = Cursors.Hand; this.btnDcaReload.FlatAppearance.BorderColor = Color.DimGray; this.btnDcaReload.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnDcaReload.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnDcaReload.FlatStyle = FlatStyle.Flat; this.btnDcaReload.ForeColor = Color.LightGray; this.btnDcaReload.Image = Resources._1_4type_bt; this.btnDcaReload.Location = new Point(8, 7); this.btnDcaReload.MaximumSize = new Size(58, 23); this.btnDcaReload.Name = "btnDcaReload"; this.btnDcaReload.Size = new Size(54, 22); this.btnDcaReload.TabIndex = 131; this.btnDcaReload.TabStop = false; this.btnDcaReload.Text = "Reload"; this.btnDcaReload.UseVisualStyleBackColor = false; this.btnDcaReload.Click += new EventHandler(this.btnDcaReload_Click); this.panType2.BackColor = Color.FromArgb(30, 30, 30); this.panType2.Controls.Add(this.label8); this.panType2.Controls.Add(this.lb2ValueCutloss); this.panType2.Controls.Add(this.cb2ValueCutloss); this.panType2.Controls.Add(this.cb2PriceBreak); this.panType2.Controls.Add(this.label7); this.panType2.Controls.Add(this.lb2ValueTrailingStop); this.panType2.Controls.Add(this.cb2ValueTrailingStop); this.panType2.Controls.Add(this.cb2PriceSMA); this.panType2.Controls.Add(this.label5); this.panType2.Controls.Add(this.cb2OperCutloss); this.panType2.Controls.Add(this.cb2OperTrailingStop); this.panType2.Controls.Add(this.cb2OperTakeProfit); this.panType2.Controls.Add(this.chb2CutLossCond); this.panType2.Controls.Add(this.chb2TrailingStopCond); this.panType2.Controls.Add(this.chb2TakeProfitCond); this.panType2.Controls.Add(this.lb2ValueTakeProfit); this.panType2.Controls.Add(this.cb2ValueTakeProfit); this.panType2.Controls.Add(this.cb2PriceLast); this.panType2.Controls.Add(this.chbGroupCancel); this.panType2.Controls.Add(this.label3); this.panType2.Controls.Add(this.tb2Volume); this.panType2.Controls.Add(this.label4); this.panType2.Location = new Point(7, 93); this.panType2.Name = "panType2"; this.panType2.Size = new Size(673, 99); this.panType2.TabIndex = 118; this.panType2.Visible = false; this.label8.AutoSize = true; this.label8.ForeColor = Color.LightGray; this.label8.Location = new Point(11, 5); this.label8.Margin = new Padding(2, 0, 2, 0); this.label8.Name = "label8"; this.label8.Size = new Size(76, 13); this.label8.TabIndex = 134; this.label8.Text = "Sell Conditions"; this.label8.TextAlign = ContentAlignment.MiddleLeft; this.lb2ValueCutloss.AutoSize = true; this.lb2ValueCutloss.ForeColor = Color.LightGray; this.lb2ValueCutloss.Location = new Point(190, 74); this.lb2ValueCutloss.Margin = new Padding(2, 0, 2, 0); this.lb2ValueCutloss.Name = "lb2ValueCutloss"; this.lb2ValueCutloss.Size = new Size(37, 13); this.lb2ValueCutloss.TabIndex = 133; this.lb2ValueCutloss.Text = "Period"; this.lb2ValueCutloss.TextAlign = ContentAlignment.MiddleLeft; this.cb2ValueCutloss.AutoCompleteSource = AutoCompleteSource.CustomSource; this.cb2ValueCutloss.BackColor = Color.FromArgb(224, 224, 224); this.cb2ValueCutloss.FlatStyle = FlatStyle.Popup; this.cb2ValueCutloss.ForeColor = Color.Black; this.cb2ValueCutloss.FormattingEnabled = true; this.cb2ValueCutloss.Location = new Point(231, 70); this.cb2ValueCutloss.Name = "cb2ValueCutloss"; this.cb2ValueCutloss.Size = new Size(70, 21); this.cb2ValueCutloss.TabIndex = 126; this.cb2ValueCutloss.Leave += new EventHandler(this.controlOrder_Leave); this.cb2ValueCutloss.Enter += new EventHandler(this.controlOrder_Enter); this.cb2ValueCutloss.KeyDown += new KeyEventHandler(this.cb2ValueCutloss_KeyDown); this.cb2PriceBreak.AllowDrop = true; this.cb2PriceBreak.AutoCompleteCustomSource.AddRange(new string[] { "", "ATO", "ATC", "MP", "MO", "ML" }); this.cb2PriceBreak.AutoCompleteMode = AutoCompleteMode.Append; this.cb2PriceBreak.AutoCompleteSource = AutoCompleteSource.CustomSource; this.cb2PriceBreak.BackColor = Color.FromArgb(224, 224, 224); this.cb2PriceBreak.Enabled = false; this.cb2PriceBreak.FlatStyle = FlatStyle.Popup; this.cb2PriceBreak.ForeColor = Color.Black; this.cb2PriceBreak.FormattingEnabled = true; this.cb2PriceBreak.Location = new Point(346, 70); this.cb2PriceBreak.Name = "cb2PriceBreak"; this.cb2PriceBreak.Size = new Size(57, 21); this.cb2PriceBreak.TabIndex = 127; this.cb2PriceBreak.Text = "MP"; this.cb2PriceBreak.Leave += new EventHandler(this.controlOrder_Leave); this.cb2PriceBreak.Enter += new EventHandler(this.controlOrder_Enter); this.cb2PriceBreak.KeyPress += new KeyPressEventHandler(this.cbPrice_KeyPress); this.label7.AutoSize = true; this.label7.ForeColor = Color.LightGray; this.label7.Location = new Point(311, 74); this.label7.Margin = new Padding(2, 0, 2, 0); this.label7.Name = "label7"; this.label7.Size = new Size(31, 13); this.label7.TabIndex = 128; this.label7.Text = "Price"; this.label7.TextAlign = ContentAlignment.MiddleLeft; this.lb2ValueTrailingStop.AutoSize = true; this.lb2ValueTrailingStop.ForeColor = Color.LightGray; this.lb2ValueTrailingStop.Location = new Point(190, 51); this.lb2ValueTrailingStop.Margin = new Padding(2, 0, 2, 0); this.lb2ValueTrailingStop.Name = "lb2ValueTrailingStop"; this.lb2ValueTrailingStop.Size = new Size(37, 13); this.lb2ValueTrailingStop.TabIndex = 127; this.lb2ValueTrailingStop.Text = "Period"; this.lb2ValueTrailingStop.TextAlign = ContentAlignment.MiddleLeft; this.cb2ValueTrailingStop.AutoCompleteSource = AutoCompleteSource.CustomSource; this.cb2ValueTrailingStop.BackColor = Color.FromArgb(224, 224, 224); this.cb2ValueTrailingStop.FlatStyle = FlatStyle.Popup; this.cb2ValueTrailingStop.ForeColor = Color.Black; this.cb2ValueTrailingStop.FormattingEnabled = true; this.cb2ValueTrailingStop.Location = new Point(231, 47); this.cb2ValueTrailingStop.Name = "cb2ValueTrailingStop"; this.cb2ValueTrailingStop.Size = new Size(70, 21); this.cb2ValueTrailingStop.TabIndex = 123; this.cb2ValueTrailingStop.Leave += new EventHandler(this.controlOrder_Leave); this.cb2ValueTrailingStop.Enter += new EventHandler(this.controlOrder_Enter); this.cb2ValueTrailingStop.KeyDown += new KeyEventHandler(this.cb2ValueTrailingStop_KeyDown); this.cb2PriceSMA.AllowDrop = true; this.cb2PriceSMA.AutoCompleteCustomSource.AddRange(new string[] { "", "ATO", "ATC", "MP", "MO", "ML" }); this.cb2PriceSMA.AutoCompleteMode = AutoCompleteMode.Append; this.cb2PriceSMA.AutoCompleteSource = AutoCompleteSource.CustomSource; this.cb2PriceSMA.BackColor = Color.FromArgb(224, 224, 224); this.cb2PriceSMA.Enabled = false; this.cb2PriceSMA.FlatStyle = FlatStyle.Popup; this.cb2PriceSMA.ForeColor = Color.Black; this.cb2PriceSMA.FormattingEnabled = true; this.cb2PriceSMA.Location = new Point(346, 47); this.cb2PriceSMA.Name = "cb2PriceSMA"; this.cb2PriceSMA.Size = new Size(57, 21); this.cb2PriceSMA.TabIndex = 124; this.cb2PriceSMA.Text = "MP"; this.cb2PriceSMA.Leave += new EventHandler(this.controlOrder_Leave); this.cb2PriceSMA.Enter += new EventHandler(this.controlOrder_Enter); this.cb2PriceSMA.KeyPress += new KeyPressEventHandler(this.cbPrice_KeyPress); this.label5.AutoSize = true; this.label5.ForeColor = Color.LightGray; this.label5.Location = new Point(311, 51); this.label5.Margin = new Padding(2, 0, 2, 0); this.label5.Name = "label5"; this.label5.Size = new Size(31, 13); this.label5.TabIndex = 122; this.label5.Text = "Price"; this.label5.TextAlign = ContentAlignment.MiddleLeft; this.cb2OperCutloss.DropDownStyle = ComboBoxStyle.DropDownList; this.cb2OperCutloss.FlatStyle = FlatStyle.Flat; this.cb2OperCutloss.FormattingEnabled = true; this.cb2OperCutloss.Items.AddRange(new object[] { "Last <", "Break Low <" }); this.cb2OperCutloss.Location = new Point(98, 70); this.cb2OperCutloss.Margin = new Padding(2); this.cb2OperCutloss.Name = "cb2OperCutloss"; this.cb2OperCutloss.Size = new Size(85, 21); this.cb2OperCutloss.TabIndex = 121; this.cb2OperCutloss.SelectedIndexChanged += new EventHandler(this.cb2OperCutloss_SelectedIndexChanged); this.cb2OperCutloss.Leave += new EventHandler(this.controlOrder_Leave); this.cb2OperCutloss.Enter += new EventHandler(this.controlOrder_Enter); this.cb2OperCutloss.KeyDown += new KeyEventHandler(this.cb2OperCutloss_KeyDown); this.cb2OperTrailingStop.DropDownStyle = ComboBoxStyle.DropDownList; this.cb2OperTrailingStop.FlatStyle = FlatStyle.Flat; this.cb2OperTrailingStop.FormattingEnabled = true; this.cb2OperTrailingStop.Items.AddRange(new object[] { "SMA <", "Break Low <" }); this.cb2OperTrailingStop.Location = new Point(98, 47); this.cb2OperTrailingStop.Margin = new Padding(2); this.cb2OperTrailingStop.Name = "cb2OperTrailingStop"; this.cb2OperTrailingStop.Size = new Size(85, 21); this.cb2OperTrailingStop.TabIndex = 122; this.cb2OperTrailingStop.SelectedIndexChanged += new EventHandler(this.cb2OperTrailingStop_SelectedIndexChanged); this.cb2OperTrailingStop.Leave += new EventHandler(this.controlOrder_Leave); this.cb2OperTrailingStop.Enter += new EventHandler(this.controlOrder_Enter); this.cb2OperTrailingStop.KeyDown += new KeyEventHandler(this.cb2OperTrailingStop_KeyDown); this.cb2OperTakeProfit.DropDownStyle = ComboBoxStyle.DropDownList; this.cb2OperTakeProfit.FlatStyle = FlatStyle.Flat; this.cb2OperTakeProfit.FormattingEnabled = true; this.cb2OperTakeProfit.Items.AddRange(new object[] { "Last >=" }); this.cb2OperTakeProfit.Location = new Point(98, 24); this.cb2OperTakeProfit.Margin = new Padding(2); this.cb2OperTakeProfit.Name = "cb2OperTakeProfit"; this.cb2OperTakeProfit.Size = new Size(85, 21); this.cb2OperTakeProfit.TabIndex = 117; this.cb2OperTakeProfit.SelectedIndexChanged += new EventHandler(this.cb2OperTakeProfit_SelectedIndexChanged); this.cb2OperTakeProfit.Leave += new EventHandler(this.controlOrder_Leave); this.cb2OperTakeProfit.Enter += new EventHandler(this.controlOrder_Enter); this.cb2OperTakeProfit.KeyDown += new KeyEventHandler(this.cb2OperTakeProfit_KeyDown); this.chb2CutLossCond.AutoSize = true; this.chb2CutLossCond.ForeColor = Color.LightGray; this.chb2CutLossCond.Location = new Point(14, 72); this.chb2CutLossCond.Margin = new Padding(2); this.chb2CutLossCond.Name = "chb2CutLossCond"; this.chb2CutLossCond.Size = new Size(67, 17); this.chb2CutLossCond.TabIndex = 125; this.chb2CutLossCond.Text = "Cut Loss"; this.chb2CutLossCond.UseVisualStyleBackColor = true; this.chb2TrailingStopCond.AutoSize = true; this.chb2TrailingStopCond.ForeColor = Color.LightGray; this.chb2TrailingStopCond.Location = new Point(14, 49); this.chb2TrailingStopCond.Margin = new Padding(2); this.chb2TrailingStopCond.Name = "chb2TrailingStopCond"; this.chb2TrailingStopCond.Size = new Size(85, 17); this.chb2TrailingStopCond.TabIndex = 121; this.chb2TrailingStopCond.Text = "Trailing Stop"; this.chb2TrailingStopCond.UseVisualStyleBackColor = true; this.chb2TakeProfitCond.AutoSize = true; this.chb2TakeProfitCond.ForeColor = Color.LightGray; this.chb2TakeProfitCond.Location = new Point(14, 27); this.chb2TakeProfitCond.Margin = new Padding(2); this.chb2TakeProfitCond.Name = "chb2TakeProfitCond"; this.chb2TakeProfitCond.Size = new Size(78, 17); this.chb2TakeProfitCond.TabIndex = 116; this.chb2TakeProfitCond.Text = "Take Profit"; this.chb2TakeProfitCond.UseVisualStyleBackColor = true; this.lb2ValueTakeProfit.AutoSize = true; this.lb2ValueTakeProfit.ForeColor = Color.LightGray; this.lb2ValueTakeProfit.Location = new Point(193, 28); this.lb2ValueTakeProfit.Margin = new Padding(2, 0, 2, 0); this.lb2ValueTakeProfit.Name = "lb2ValueTakeProfit"; this.lb2ValueTakeProfit.Size = new Size(34, 13); this.lb2ValueTakeProfit.TabIndex = 115; this.lb2ValueTakeProfit.Text = "Value"; this.lb2ValueTakeProfit.TextAlign = ContentAlignment.MiddleLeft; this.cb2ValueTakeProfit.AutoCompleteSource = AutoCompleteSource.CustomSource; this.cb2ValueTakeProfit.BackColor = Color.FromArgb(224, 224, 224); this.cb2ValueTakeProfit.FlatStyle = FlatStyle.Popup; this.cb2ValueTakeProfit.ForeColor = Color.Black; this.cb2ValueTakeProfit.FormattingEnabled = true; this.cb2ValueTakeProfit.Location = new Point(231, 24); this.cb2ValueTakeProfit.Name = "cb2ValueTakeProfit"; this.cb2ValueTakeProfit.Size = new Size(70, 21); this.cb2ValueTakeProfit.TabIndex = 118; this.cb2ValueTakeProfit.Leave += new EventHandler(this.controlOrder_Leave); this.cb2ValueTakeProfit.Enter += new EventHandler(this.controlOrder_Enter); this.cb2ValueTakeProfit.KeyDown += new KeyEventHandler(this.cb2ValueTakeProfit_KeyDown); this.cb2PriceLast.AllowDrop = true; this.cb2PriceLast.AutoCompleteCustomSource.AddRange(new string[] { "", "ATO", "ATC", "MP", "MO", "ML" }); this.cb2PriceLast.AutoCompleteMode = AutoCompleteMode.Append; this.cb2PriceLast.AutoCompleteSource = AutoCompleteSource.CustomSource; this.cb2PriceLast.BackColor = Color.FromArgb(224, 224, 224); this.cb2PriceLast.FlatStyle = FlatStyle.Popup; this.cb2PriceLast.ForeColor = Color.Black; this.cb2PriceLast.FormattingEnabled = true; this.cb2PriceLast.Location = new Point(346, 24); this.cb2PriceLast.Name = "cb2PriceLast"; this.cb2PriceLast.Size = new Size(57, 21); this.cb2PriceLast.TabIndex = 119; this.cb2PriceLast.Leave += new EventHandler(this.controlOrder_Leave); this.cb2PriceLast.Enter += new EventHandler(this.controlOrder_Enter); this.cb2PriceLast.KeyPress += new KeyPressEventHandler(this.cbPrice_KeyPress); this.cb2PriceLast.KeyDown += new KeyEventHandler(this.cb2PriceLast_KeyDown); this.chbGroupCancel.AutoSize = true; this.chbGroupCancel.ForeColor = Color.FromArgb(255, 192, 128); this.chbGroupCancel.Location = new Point(422, 72); this.chbGroupCancel.Margin = new Padding(2, 3, 0, 3); this.chbGroupCancel.Name = "chbGroupCancel"; this.chbGroupCancel.Size = new Size(91, 17); this.chbGroupCancel.TabIndex = 111; this.chbGroupCancel.Text = "Group Cancel"; this.chbGroupCancel.UseVisualStyleBackColor = false; this.label3.AutoSize = true; this.label3.ForeColor = Color.LightGray; this.label3.Location = new Point(418, 28); this.label3.Margin = new Padding(2, 0, 2, 0); this.label3.Name = "label3"; this.label3.Size = new Size(42, 13); this.label3.TabIndex = 11; this.label3.Text = "Volume"; this.label3.TextAlign = ContentAlignment.MiddleLeft; this.tb2Volume.BackColor = Color.FromArgb(224, 224, 224); this.tb2Volume.BorderStyle = BorderStyle.FixedSingle; this.tb2Volume.Location = new Point(463, 24); this.tb2Volume.Margin = new Padding(2, 3, 2, 3); this.tb2Volume.MaxLength = 10; this.tb2Volume.Name = "tb2Volume"; this.tb2Volume.Size = new Size(59, 20); this.tb2Volume.TabIndex = 120; this.tb2Volume.TextChanged += new EventHandler(this.tb2Volume_TextChanged); this.tb2Volume.KeyDown += new KeyEventHandler(this.tb2Volume_KeyDown); this.tb2Volume.Leave += new EventHandler(this.controlOrder_Leave); this.tb2Volume.Enter += new EventHandler(this.controlOrder_Enter); this.label4.AutoSize = true; this.label4.ForeColor = Color.LightGray; this.label4.Location = new Point(311, 28); this.label4.Margin = new Padding(2, 0, 2, 0); this.label4.Name = "label4"; this.label4.Size = new Size(31, 13); this.label4.TabIndex = 13; this.label4.Text = "Price"; this.label4.TextAlign = ContentAlignment.MiddleLeft; this.btnTypePZ.AutoEllipsis = true; this.btnTypePZ.Cursor = Cursors.Hand; this.btnTypePZ.FlatAppearance.BorderColor = Color.DimGray; this.btnTypePZ.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnTypePZ.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnTypePZ.FlatStyle = FlatStyle.Flat; this.btnTypePZ.ForeColor = Color.WhiteSmoke; this.btnTypePZ.Location = new Point(647, 6); this.btnTypePZ.MaximumSize = new Size(58, 23); this.btnTypePZ.Name = "btnTypePZ"; this.btnTypePZ.Size = new Size(31, 22); this.btnTypePZ.TabIndex = 125; this.btnTypePZ.TabStop = false; this.btnTypePZ.Text = "PZ"; this.toolTip1.SetToolTip(this.btnTypePZ, "Pricing Zone"); this.btnTypePZ.UseVisualStyleBackColor = false; this.btnTypePZ.Click += new EventHandler(this.btnTypePZ_Click); this.panType1.BackColor = Color.FromArgb(30, 30, 30); this.panType1.Controls.Add(this.cb1Condition); this.panType1.Controls.Add(this.lb1Value); this.panType1.Controls.Add(this.cb1Value); this.panType1.Controls.Add(this.cb1Price); this.panType1.Controls.Add(this.lbStopOrderField); this.panType1.Controls.Add(this.lbVolume); this.panType1.Controls.Add(this.tb1Volume); this.panType1.Controls.Add(this.lbPrice); this.panType1.Location = new Point(6, 31); this.panType1.Name = "panType1"; this.panType1.Size = new Size(674, 60); this.panType1.TabIndex = 110; this.cb1Condition.AllowDrop = true; this.cb1Condition.AutoCompleteSource = AutoCompleteSource.CustomSource; this.cb1Condition.BackColor = Color.FromArgb(224, 224, 224); this.cb1Condition.DropDownStyle = ComboBoxStyle.DropDownList; this.cb1Condition.FlatStyle = FlatStyle.Popup; this.cb1Condition.ForeColor = Color.Black; this.cb1Condition.FormattingEnabled = true; this.cb1Condition.Items.AddRange(new object[] { "Last <=", "Follow Biglot", "Last <= (sma)" }); this.cb1Condition.Location = new Point(15, 30); this.cb1Condition.Name = "cb1Condition"; this.cb1Condition.Size = new Size(138, 21); this.cb1Condition.TabIndex = 116; this.cb1Condition.SelectedIndexChanged += new EventHandler(this.cb1Field_SelectedIndexChanged); this.cb1Condition.Leave += new EventHandler(this.controlOrder_Leave); this.cb1Condition.Enter += new EventHandler(this.controlOrder_Enter); this.cb1Condition.KeyDown += new KeyEventHandler(this.cb1Condition_KeyDown); this.lb1Value.AutoSize = true; this.lb1Value.ForeColor = Color.LightGray; this.lb1Value.Location = new Point(161, 34); this.lb1Value.Margin = new Padding(2, 0, 2, 0); this.lb1Value.Name = "lb1Value"; this.lb1Value.Size = new Size(34, 13); this.lb1Value.TabIndex = 115; this.lb1Value.Text = "Value"; this.lb1Value.TextAlign = ContentAlignment.MiddleLeft; this.cb1Value.AutoCompleteSource = AutoCompleteSource.CustomSource; this.cb1Value.BackColor = Color.FromArgb(224, 224, 224); this.cb1Value.FlatStyle = FlatStyle.Popup; this.cb1Value.ForeColor = Color.Black; this.cb1Value.FormattingEnabled = true; this.cb1Value.Location = new Point(199, 30); this.cb1Value.Name = "cb1Value"; this.cb1Value.Size = new Size(64, 21); this.cb1Value.TabIndex = 117; this.cb1Value.Leave += new EventHandler(this.controlOrder_Leave); this.cb1Value.Enter += new EventHandler(this.controlOrder_Enter); this.cb1Value.KeyDown += new KeyEventHandler(this.cb1Value_KeyDown); this.lbStopOrderField.AutoSize = true; this.lbStopOrderField.ForeColor = Color.LightGray; this.lbStopOrderField.Location = new Point(12, 8); this.lbStopOrderField.Margin = new Padding(2, 0, 2, 0); this.lbStopOrderField.Name = "lbStopOrderField"; this.lbStopOrderField.Size = new Size(85, 13); this.lbStopOrderField.TabIndex = 109; this.lbStopOrderField.Text = "Order Conditions"; this.lbStopOrderField.TextAlign = ContentAlignment.MiddleLeft; this.btnTypeDCA.AutoEllipsis = true; this.btnTypeDCA.Cursor = Cursors.Hand; this.btnTypeDCA.FlatAppearance.BorderColor = Color.DimGray; this.btnTypeDCA.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnTypeDCA.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnTypeDCA.FlatStyle = FlatStyle.Flat; this.btnTypeDCA.ForeColor = Color.WhiteSmoke; this.btnTypeDCA.Location = new Point(604, 6); this.btnTypeDCA.MaximumSize = new Size(58, 23); this.btnTypeDCA.Name = "btnTypeDCA"; this.btnTypeDCA.Size = new Size(39, 22); this.btnTypeDCA.TabIndex = 123; this.btnTypeDCA.TabStop = false; this.btnTypeDCA.Text = "DCA"; this.toolTip1.SetToolTip(this.btnTypeDCA, "Dolla Cost Average"); this.btnTypeDCA.UseVisualStyleBackColor = false; this.btnTypeDCA.Click += new EventHandler(this.btnType3_Click); this.btnTypeMM.AutoEllipsis = true; this.btnTypeMM.Cursor = Cursors.Hand; this.btnTypeMM.FlatAppearance.BorderColor = Color.DimGray; this.btnTypeMM.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnTypeMM.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnTypeMM.FlatStyle = FlatStyle.Flat; this.btnTypeMM.ForeColor = Color.WhiteSmoke; this.btnTypeMM.Location = new Point(564, 6); this.btnTypeMM.MaximumSize = new Size(58, 23); this.btnTypeMM.Name = "btnTypeMM"; this.btnTypeMM.Size = new Size(35, 22); this.btnTypeMM.TabIndex = 119; this.btnTypeMM.TabStop = false; this.btnTypeMM.Text = "MM"; this.toolTip1.SetToolTip(this.btnTypeMM, "Money Management"); this.btnTypeMM.UseVisualStyleBackColor = false; this.btnTypeMM.Click += new EventHandler(this.btnTypeMM_Click); this.btnSell.AutoEllipsis = true; this.btnSell.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.btnSell.BackColor = Color.Transparent; this.btnSell.Cursor = Cursors.Hand; this.btnSell.FlatAppearance.BorderColor = Color.DimGray; this.btnSell.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnSell.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnSell.FlatStyle = FlatStyle.Flat; this.btnSell.ForeColor = Color.WhiteSmoke; this.btnSell.Image = Resources._1_4type_bt; this.btnSell.Location = new Point(75, 5); this.btnSell.MaximumSize = new Size(58, 23); this.btnSell.Name = "btnSell"; this.btnSell.Size = new Size(54, 22); this.btnSell.TabIndex = 117; this.btnSell.TabStop = false; this.btnSell.Text = "Sell"; this.btnSell.UseVisualStyleBackColor = false; this.btnSell.Click += new EventHandler(this.btnSell_Click); this.btnBuy.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.btnBuy.BackColor = Color.Transparent; this.btnBuy.Cursor = Cursors.Hand; this.btnBuy.FlatAppearance.BorderColor = Color.DimGray; this.btnBuy.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnBuy.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnBuy.FlatStyle = FlatStyle.Flat; this.btnBuy.ForeColor = Color.WhiteSmoke; this.btnBuy.Image = Resources._1_4type_bt; this.btnBuy.Location = new Point(15, 5); this.btnBuy.MaximumSize = new Size(58, 23); this.btnBuy.Name = "btnBuy"; this.btnBuy.Size = new Size(54, 22); this.btnBuy.TabIndex = 116; this.btnBuy.TabStop = false; this.btnBuy.Text = "Buy"; this.btnBuy.UseVisualStyleBackColor = false; this.btnBuy.Click += new EventHandler(this.btnBuy_Click); this.btnType2.AutoEllipsis = true; this.btnType2.Cursor = Cursors.Hand; this.btnType2.FlatAppearance.BorderColor = Color.DimGray; this.btnType2.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnType2.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnType2.FlatStyle = FlatStyle.Flat; this.btnType2.ForeColor = Color.WhiteSmoke; this.btnType2.Location = new Point(537, 6); this.btnType2.MaximumSize = new Size(58, 23); this.btnType2.Name = "btnType2"; this.btnType2.Size = new Size(22, 22); this.btnType2.TabIndex = 113; this.btnType2.TabStop = false; this.btnType2.Text = "2"; this.btnType2.UseVisualStyleBackColor = false; this.btnType2.Click += new EventHandler(this.btnType2_Click); this.btnType1.AutoEllipsis = true; this.btnType1.BackColor = Color.DodgerBlue; this.btnType1.Cursor = Cursors.Hand; this.btnType1.FlatAppearance.BorderColor = Color.DimGray; this.btnType1.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnType1.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnType1.FlatStyle = FlatStyle.Flat; this.btnType1.ForeColor = Color.WhiteSmoke; this.btnType1.Location = new Point(507, 6); this.btnType1.MaximumSize = new Size(58, 23); this.btnType1.Name = "btnType1"; this.btnType1.Size = new Size(22, 22); this.btnType1.TabIndex = 112; this.btnType1.TabStop = false; this.btnType1.Text = "1"; this.btnType1.UseVisualStyleBackColor = false; this.btnType1.Click += new EventHandler(this.btnType1_Click); this.lbPattern.AutoSize = true; this.lbPattern.ForeColor = Color.LightGray; this.lbPattern.Location = new Point(466, 10); this.lbPattern.Margin = new Padding(2, 0, 2, 0); this.lbPattern.Name = "lbPattern"; this.lbPattern.Size = new Size(31, 13); this.lbPattern.TabIndex = 111; this.lbPattern.Text = "Type"; this.lbPattern.TextAlign = ContentAlignment.MiddleLeft; this.tStripMenu.AllowMerge = false; this.tStripMenu.BackColor = Color.FromArgb(40, 40, 40); this.tStripMenu.CanOverflow = false; this.tStripMenu.GripMargin = new Padding(0); this.tStripMenu.GripStyle = ToolStripGripStyle.Hidden; this.tStripMenu.Items.AddRange(new ToolStripItem[] { this.tslbStatus, this.tscbStatus, this.tslbStock, this.tstbStock, this.tslbSide, this.tscbSide, this.tsbtnClearCondition, this.tsbtnCancelOrder, this.tsbtnSearch }); this.tStripMenu.LayoutStyle = ToolStripLayoutStyle.HorizontalStackWithOverflow; this.tStripMenu.Location = new Point(0, 0); this.tStripMenu.Name = "tStripMenu"; this.tStripMenu.Padding = new Padding(1, 2, 1, 1); this.tStripMenu.RenderMode = ToolStripRenderMode.System; this.tStripMenu.Size = new Size(697, 28); this.tStripMenu.TabIndex = 114; this.tslbStatus.BackColor = Color.Transparent; this.tslbStatus.ForeColor = Color.Gainsboro; this.tslbStatus.Margin = new Padding(5, 1, 1, 1); this.tslbStatus.Name = "tslbStatus"; this.tslbStatus.Size = new Size(39, 23); this.tslbStatus.Text = "Status"; this.tscbStatus.AutoCompleteCustomSource.AddRange(new string[] { "ALL", "O", "PO", "M", "C", "PX", "R", "X" }); this.tscbStatus.AutoCompleteSource = AutoCompleteSource.CustomSource; this.tscbStatus.BackColor = Color.FromArgb(45, 45, 45); this.tscbStatus.DropDownStyle = ComboBoxStyle.DropDownList; this.tscbStatus.ForeColor = Color.LightGray; this.tscbStatus.Margin = new Padding(1, 0, 1, 2); this.tscbStatus.MaxLength = 3; this.tscbStatus.Name = "tscbStatus"; this.tscbStatus.Size = new Size(75, 23); this.tslbStock.BackColor = Color.Transparent; this.tslbStock.ForeColor = Color.Gainsboro; this.tslbStock.Margin = new Padding(5, 1, 1, 1); this.tslbStock.Name = "tslbStock"; this.tslbStock.Size = new Size(47, 23); this.tslbStock.Text = "Symbol"; this.tstbStock.AutoCompleteMode = AutoCompleteMode.SuggestAppend; this.tstbStock.AutoCompleteSource = AutoCompleteSource.CustomSource; this.tstbStock.BackColor = Color.FromArgb(45, 45, 45); this.tstbStock.BorderStyle = BorderStyle.FixedSingle; this.tstbStock.CharacterCasing = CharacterCasing.Upper; this.tstbStock.Font = new Font("Microsoft Sans Serif", 9f); this.tstbStock.ForeColor = Color.LightGray; this.tstbStock.Margin = new Padding(1, 0, 1, 2); this.tstbStock.MaxLength = 12; this.tstbStock.Name = "tstbStock"; this.tstbStock.Size = new Size(80, 23); this.tstbStock.KeyDown += new KeyEventHandler(this.tstbStock_KeyDown); this.tslbSide.BackColor = Color.Transparent; this.tslbSide.ForeColor = Color.Gainsboro; this.tslbSide.Margin = new Padding(5, 1, 1, 1); this.tslbSide.Name = "tslbSide"; this.tslbSide.Size = new Size(29, 23); this.tslbSide.Text = "Side"; this.tscbSide.AutoCompleteCustomSource.AddRange(new string[] { "ALL", "B", "S", "H", "C" }); this.tscbSide.AutoCompleteSource = AutoCompleteSource.CustomSource; this.tscbSide.BackColor = Color.FromArgb(45, 45, 45); this.tscbSide.DropDownStyle = ComboBoxStyle.DropDownList; this.tscbSide.ForeColor = Color.LightGray; this.tscbSide.Items.AddRange(new object[] { "ALL", "B", "S" }); this.tscbSide.Margin = new Padding(1, 0, 1, 2); this.tscbSide.MaxLength = 3; this.tscbSide.Name = "tscbSide"; this.tscbSide.Size = new Size(75, 23); this.tsbtnClearCondition.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnClearCondition.ForeColor = Color.Gainsboro; this.tsbtnClearCondition.ImageTransparentColor = Color.Magenta; this.tsbtnClearCondition.Margin = new Padding(5, 1, 0, 2); this.tsbtnClearCondition.Name = "tsbtnClearCondition"; this.tsbtnClearCondition.Size = new Size(38, 22); this.tsbtnClearCondition.Text = "Clear"; this.tsbtnClearCondition.ToolTipText = "Clear Condition"; this.tsbtnClearCondition.Click += new EventHandler(this.tsbtnClearCondition_Click); this.tsbtnCancelOrder.Alignment = ToolStripItemAlignment.Right; this.tsbtnCancelOrder.ForeColor = Color.Tomato; this.tsbtnCancelOrder.Image = (Image)componentResourceManager.GetObject("tsbtnCancelOrder.Image"); this.tsbtnCancelOrder.ImageTransparentColor = Color.Magenta; this.tsbtnCancelOrder.Name = "tsbtnCancelOrder"; this.tsbtnCancelOrder.Size = new Size(63, 22); this.tsbtnCancelOrder.Text = "Cancel"; this.tsbtnCancelOrder.ToolTipText = "Cancel Order"; this.tsbtnCancelOrder.Click += new EventHandler(this.tsbtnCancelOrder_Click); this.tsbtnSearch.Font = new Font("Microsoft Sans Serif", 9f); this.tsbtnSearch.ForeColor = Color.Gainsboro; this.tsbtnSearch.Image = Resources.refresh; this.tsbtnSearch.ImageTransparentColor = Color.Magenta; this.tsbtnSearch.Margin = new Padding(5, 1, 0, 2); this.tsbtnSearch.Name = "tsbtnSearch"; this.tsbtnSearch.Size = new Size(66, 22); this.tsbtnSearch.Text = "Search"; this.tsbtnSearch.Click += new EventHandler(this.tsbtnSearch_Click); this.panel1.BackColor = Color.FromArgb(50, 50, 50); this.panel1.Controls.Add(this.intzaOrder); this.panel1.Controls.Add(this.tStripMenu); this.panel1.Dock = DockStyle.Fill; this.panel1.Location = new Point(0, 424); this.panel1.Name = "panel1"; this.panel1.Size = new Size(697, 105); this.panel1.TabIndex = 116; this.intzaOrder.AllowDrop = true; this.intzaOrder.BackColor = Color.FromArgb(30, 30, 30); this.intzaOrder.CanBlink = true; this.intzaOrder.CanDrag = false; this.intzaOrder.CanGetMouseMove = false; columnItem19.Alignment = StringAlignment.Near; columnItem19.BackColor = Color.FromArgb(64, 64, 64); columnItem19.FontColor = Color.LightGray; columnItem19.IsExpand = false; columnItem19.MyStyle = FontStyle.Regular; columnItem19.Name = "checkbox"; columnItem19.Text = ""; columnItem19.ValueFormat = FormatType.Bitmap; columnItem19.Visible = true; columnItem19.Width = 3; columnItem20.Alignment = StringAlignment.Center; columnItem20.BackColor = Color.FromArgb(64, 64, 64); columnItem20.FontColor = Color.LightGray; columnItem20.IsExpand = false; columnItem20.MyStyle = FontStyle.Regular; columnItem20.Name = "side"; columnItem20.Text = "B/S"; columnItem20.ValueFormat = FormatType.Text; columnItem20.Visible = true; columnItem20.Width = 5; columnItem21.Alignment = StringAlignment.Near; columnItem21.BackColor = Color.FromArgb(64, 64, 64); columnItem21.FontColor = Color.LightGray; columnItem21.IsExpand = false; columnItem21.MyStyle = FontStyle.Regular; columnItem21.Name = "stock"; columnItem21.Text = "Symbol"; columnItem21.ValueFormat = FormatType.Text; columnItem21.Visible = true; columnItem21.Width = 12; columnItem22.Alignment = StringAlignment.Far; columnItem22.BackColor = Color.FromArgb(64, 64, 64); columnItem22.FontColor = Color.LightGray; columnItem22.IsExpand = false; columnItem22.MyStyle = FontStyle.Regular; columnItem22.Name = "volume"; columnItem22.Text = "Volume"; columnItem22.ValueFormat = FormatType.Volume; columnItem22.Visible = true; columnItem22.Width = 13; columnItem23.Alignment = StringAlignment.Far; columnItem23.BackColor = Color.FromArgb(64, 64, 64); columnItem23.FontColor = Color.LightGray; columnItem23.IsExpand = false; columnItem23.MyStyle = FontStyle.Regular; columnItem23.Name = "price"; columnItem23.Text = "Price"; columnItem23.ValueFormat = FormatType.Text; columnItem23.Visible = true; columnItem23.Width = 10; columnItem24.Alignment = StringAlignment.Near; columnItem24.BackColor = Color.FromArgb(64, 64, 64); columnItem24.FontColor = Color.LightGray; columnItem24.IsExpand = false; columnItem24.MyStyle = FontStyle.Regular; columnItem24.Name = "condition"; columnItem24.Text = "Condition"; columnItem24.ValueFormat = FormatType.Text; columnItem24.Visible = true; columnItem24.Width = 32; columnItem25.Alignment = StringAlignment.Center; columnItem25.BackColor = Color.FromArgb(64, 64, 64); columnItem25.FontColor = Color.LightGray; columnItem25.IsExpand = false; columnItem25.MyStyle = FontStyle.Regular; columnItem25.Name = "status"; columnItem25.Text = "Status"; columnItem25.ValueFormat = FormatType.Text; columnItem25.Visible = true; columnItem25.Width = 13; columnItem26.Alignment = StringAlignment.Center; columnItem26.BackColor = Color.FromArgb(64, 64, 64); columnItem26.FontColor = Color.LightGray; columnItem26.IsExpand = false; columnItem26.MyStyle = FontStyle.Regular; columnItem26.Name = "sent_time"; columnItem26.Text = "Time"; columnItem26.ValueFormat = FormatType.Text; columnItem26.Visible = true; columnItem26.Width = 12; columnItem27.Alignment = StringAlignment.Center; columnItem27.BackColor = Color.FromArgb(64, 64, 64); columnItem27.FontColor = Color.LightGray; columnItem27.IsExpand = false; columnItem27.MyStyle = FontStyle.Regular; columnItem27.Name = "limit"; columnItem27.Text = "Expire Date"; columnItem27.ValueFormat = FormatType.Text; columnItem27.Visible = true; columnItem27.Width = 13; columnItem28.Alignment = StringAlignment.Center; columnItem28.BackColor = Color.FromArgb(64, 64, 64); columnItem28.FontColor = Color.LightGray; columnItem28.IsExpand = false; columnItem28.MyStyle = FontStyle.Regular; columnItem28.Name = "group_cancel"; columnItem28.Text = "Group Cancel"; columnItem28.ValueFormat = FormatType.Text; columnItem28.Visible = true; columnItem28.Width = 13; columnItem29.Alignment = StringAlignment.Center; columnItem29.BackColor = Color.FromArgb(64, 64, 64); columnItem29.FontColor = Color.LightGray; columnItem29.IsExpand = false; columnItem29.MyStyle = FontStyle.Regular; columnItem29.Name = "ref_no"; columnItem29.Text = "Ref No."; columnItem29.ValueFormat = FormatType.Text; columnItem29.Visible = true; columnItem29.Width = 10; columnItem30.Alignment = StringAlignment.Center; columnItem30.BackColor = Color.FromArgb(64, 64, 64); columnItem30.FontColor = Color.LightGray; columnItem30.IsExpand = false; columnItem30.MyStyle = FontStyle.Regular; columnItem30.Name = "mm_src_ordno"; columnItem30.Text = "Source No"; columnItem30.ValueFormat = FormatType.Text; columnItem30.Visible = true; columnItem30.Width = 12; columnItem31.Alignment = StringAlignment.Center; columnItem31.BackColor = Color.FromArgb(64, 64, 64); columnItem31.FontColor = Color.LightGray; columnItem31.IsExpand = false; columnItem31.MyStyle = FontStyle.Regular; columnItem31.Name = "matched_time"; columnItem31.Text = "S-Time"; columnItem31.ValueFormat = FormatType.Text; columnItem31.Visible = true; columnItem31.Width = 10; columnItem32.Alignment = StringAlignment.Center; columnItem32.BackColor = Color.FromArgb(64, 64, 64); columnItem32.FontColor = Color.LightGray; columnItem32.IsExpand = false; columnItem32.MyStyle = FontStyle.Regular; columnItem32.Name = "order_no"; columnItem32.Text = "Order No"; columnItem32.ValueFormat = FormatType.Text; columnItem32.Visible = true; columnItem32.Width = 12; columnItem33.Alignment = StringAlignment.Near; columnItem33.BackColor = Color.FromArgb(64, 64, 64); columnItem33.FontColor = Color.LightGray; columnItem33.IsExpand = false; columnItem33.MyStyle = FontStyle.Regular; columnItem33.Name = "message"; columnItem33.Text = "Message"; columnItem33.ValueFormat = FormatType.Text; columnItem33.Visible = true; columnItem33.Width = 70; this.intzaOrder.Columns.Add(columnItem19); this.intzaOrder.Columns.Add(columnItem20); this.intzaOrder.Columns.Add(columnItem21); this.intzaOrder.Columns.Add(columnItem22); this.intzaOrder.Columns.Add(columnItem23); this.intzaOrder.Columns.Add(columnItem24); this.intzaOrder.Columns.Add(columnItem25); this.intzaOrder.Columns.Add(columnItem26); this.intzaOrder.Columns.Add(columnItem27); this.intzaOrder.Columns.Add(columnItem28); this.intzaOrder.Columns.Add(columnItem29); this.intzaOrder.Columns.Add(columnItem30); this.intzaOrder.Columns.Add(columnItem31); this.intzaOrder.Columns.Add(columnItem32); this.intzaOrder.Columns.Add(columnItem33); this.intzaOrder.CurrentScroll = 0; this.intzaOrder.Dock = DockStyle.Fill; this.intzaOrder.FocusItemIndex = -1; this.intzaOrder.ForeColor = Color.Black; this.intzaOrder.GridColor = Color.FromArgb(45, 45, 45); this.intzaOrder.HeaderPctHeight = 100f; this.intzaOrder.IsAutoRepaint = true; this.intzaOrder.IsDrawGrid = true; this.intzaOrder.IsDrawHeader = true; this.intzaOrder.IsScrollable = true; this.intzaOrder.Location = new Point(0, 28); this.intzaOrder.MainColumn = ""; this.intzaOrder.Name = "intzaOrder"; this.intzaOrder.Rows = 0; this.intzaOrder.RowSelectColor = Color.FromArgb(50, 50, 50); this.intzaOrder.RowSelectType = 3; this.intzaOrder.Size = new Size(697, 77); this.intzaOrder.SortColumnName = ""; this.intzaOrder.SortType = SortType.Desc; this.intzaOrder.TabIndex = 116; this.intzaOrder.TableMouseClick += new ExpandGrid.TableMouseClickEventHandler(this.intzaOrder_TableMouseClick); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(697, 529); base.Controls.Add(this.panel1); base.Controls.Add(this.panelTop); base.Name = "frmAutoTrade"; this.Text = "frmAutoTrade"; base.IDoShownDelay += new ClientBaseForm.OnShownDelayEventHandler(this.frmAutoTrade_IDoShownDelay); base.IDoLoadData += new ClientBaseForm.OnIDoLoadDataEventHandler(this.frmAutoTrade_IDoLoadData); base.IDoFontChanged += new ClientBaseForm.OnFontChangedEventHandler(this.frmAutoTrade_IDoFontChanged); base.IDoCustomSizeChanged += new ClientBaseForm.CustomSizeChangedEventHandler(this.frmAutoTrade_IDoCustomSizeChanged); base.IDoSymbolLinked += new ClientBaseForm.OnSymbolLinkEventHandler(this.frmAutoTrade_IDoSymbolLinked); base.IDoMainFormKeyUp += new ClientBaseForm.OnFormKeyUpEventHandler(this.frmAutoTrade_IDoMainFormKeyUp); base.IDoReActivated += new ClientBaseForm.OnReActiveEventHandler(this.frmAutoTrade_IDoReActivated); base.Controls.SetChildIndex(this.panelTop, 0); base.Controls.SetChildIndex(this.panel1, 0); this.panelTop.ResumeLayout(false); this.panelTop.PerformLayout(); this.panelPZ.ResumeLayout(false); this.panelDCA.ResumeLayout(false); this.panType2.ResumeLayout(false); this.panType2.PerformLayout(); this.panType1.ResumeLayout(false); this.panType1.PerformLayout(); this.tStripMenu.ResumeLayout(false); this.tStripMenu.PerformLayout(); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); AutoTradeManager.Instance.Init(); AutoTradeManager.Instance.OnStartAutoTrade -= new AutoTradeManager.OnStartAutoTradeHandler(this.OnStartAutoTrade); AutoTradeManager.Instance.OnStartAutoTrade += new AutoTradeManager.OnStartAutoTradeHandler(this.OnStartAutoTrade); AutoTradeManager.Instance.OnEndAutoTrade -= new AutoTradeManager.OnEndAutoTradeHandler(this.OnEndAutoTrade); AutoTradeManager.Instance.OnEndAutoTrade += new AutoTradeManager.OnEndAutoTradeHandler(this.OnEndAutoTrade); }
private void InitializeComponent() { this.components = new Container(); ColumnItem columnItem = new ColumnItem(); ColumnItem columnItem2 = new ColumnItem(); ColumnItem columnItem3 = new ColumnItem(); ColumnItem columnItem4 = new ColumnItem(); ColumnItem columnItem5 = new ColumnItem(); ColumnItem columnItem6 = new ColumnItem(); ColumnItem columnItem7 = new ColumnItem(); ColumnItem columnItem8 = new ColumnItem(); ColumnItem columnItem9 = new ColumnItem(); ColumnItem columnItem10 = new ColumnItem(); ColumnItem columnItem11 = new ColumnItem(); ColumnItem columnItem12 = new ColumnItem(); ColumnItem columnItem13 = new ColumnItem(); ColumnItem columnItem14 = new ColumnItem(); this.panelMain = new Panel(); this.ucBids8 = new ucBids(); this.ucBids7 = new ucBids(); this.ucBids6 = new ucBids(); this.ucBids5 = new ucBids(); this.ucBids4 = new ucBids(); this.ucBids3 = new ucBids(); this.ucBids2 = new ucBids(); this.ucBids1 = new ucBids(); this.tStripMenu = new ToolStrip(); this.toolStripLabel10 = new ToolStripLabel(); this.tscbSelection = new ToolStripComboBox(); this.tsbtnAdd = new ToolStripButton(); this.tsbtnDel = new ToolStripButton(); this.scrollbar1 = new Scrollbar(); this.speedTableGrid1 = new SortGrid(); this.speedTableGrid2 = new SortGrid(); this.speedTableGrid3 = new SortGrid(); this.speedTableGrid4 = new SortGrid(); this.contextLink = new ContextMenuStrip(this.components); this.tsmCallHistoricalChart = new ToolStripMenuItem(); this.tsmCallNews = new ToolStripMenuItem(); this.toolStripMenuItem1 = new ToolStripSeparator(); this.tsmCallMarketWatch = new ToolStripMenuItem(); this.tsmCallStockInPlay = new ToolStripMenuItem(); this.tsmCallSaleByPrice = new ToolStripMenuItem(); this.tsmCallSaleByTime = new ToolStripMenuItem(); this.tsmCallOddlot = new ToolStripMenuItem(); this.panelMain.SuspendLayout(); this.tStripMenu.SuspendLayout(); this.contextLink.SuspendLayout(); base.SuspendLayout(); this.panelMain.BackColor = Color.FromArgb(20, 20, 20); this.panelMain.Controls.Add(this.ucBids8); this.panelMain.Controls.Add(this.ucBids7); this.panelMain.Controls.Add(this.ucBids6); this.panelMain.Controls.Add(this.ucBids5); this.panelMain.Controls.Add(this.ucBids4); this.panelMain.Controls.Add(this.ucBids3); this.panelMain.Controls.Add(this.ucBids2); this.panelMain.Controls.Add(this.ucBids1); this.panelMain.Location = new Point(0, 67); this.panelMain.Name = "panelMain"; this.panelMain.Size = new Size(818, 418); this.panelMain.TabIndex = 70; this.ucBids8.BackColor = Color.FromArgb(20, 20, 20); this.ucBids8.CurrStockNo = 0; this.ucBids8.IsLoadingData = false; this.ucBids8.Location = new Point(374, 260); this.ucBids8.Name = "ucBids8"; this.ucBids8.Size = new Size(444, 154); this.ucBids8.TabIndex = 85; this.ucBids8.OnNewStock += new ucBids.OnNewStockEventHandler(this.ucBids1_OnNewStock); this.ucBids8.OnLink += new ucBids.OnLinkEventHandler(this.ucBids_OnLink); this.ucBids8.Leave += new EventHandler(this.ucBids_Leave); this.ucBids8.Enter += new EventHandler(this.ucBids_Enter); this.ucBids7.BackColor = Color.FromArgb(20, 20, 20); this.ucBids7.CurrStockNo = 0; this.ucBids7.IsLoadingData = false; this.ucBids7.Location = new Point(371, 182); this.ucBids7.Name = "ucBids7"; this.ucBids7.Size = new Size(444, 154); this.ucBids7.TabIndex = 84; this.ucBids7.OnNewStock += new ucBids.OnNewStockEventHandler(this.ucBids1_OnNewStock); this.ucBids7.OnLink += new ucBids.OnLinkEventHandler(this.ucBids_OnLink); this.ucBids7.Leave += new EventHandler(this.ucBids_Leave); this.ucBids7.Enter += new EventHandler(this.ucBids_Enter); this.ucBids6.BackColor = Color.FromArgb(20, 20, 20); this.ucBids6.CurrStockNo = 0; this.ucBids6.IsLoadingData = false; this.ucBids6.Location = new Point(374, 84); this.ucBids6.Name = "ucBids6"; this.ucBids6.Size = new Size(444, 154); this.ucBids6.TabIndex = 83; this.ucBids6.OnNewStock += new ucBids.OnNewStockEventHandler(this.ucBids1_OnNewStock); this.ucBids6.OnLink += new ucBids.OnLinkEventHandler(this.ucBids_OnLink); this.ucBids6.Leave += new EventHandler(this.ucBids_Leave); this.ucBids6.Enter += new EventHandler(this.ucBids_Enter); this.ucBids5.BackColor = Color.FromArgb(20, 20, 20); this.ucBids5.CurrStockNo = 0; this.ucBids5.IsLoadingData = false; this.ucBids5.Location = new Point(377, 3); this.ucBids5.Name = "ucBids5"; this.ucBids5.Size = new Size(444, 154); this.ucBids5.TabIndex = 82; this.ucBids5.OnNewStock += new ucBids.OnNewStockEventHandler(this.ucBids1_OnNewStock); this.ucBids5.OnLink += new ucBids.OnLinkEventHandler(this.ucBids_OnLink); this.ucBids5.Leave += new EventHandler(this.ucBids_Leave); this.ucBids5.Enter += new EventHandler(this.ucBids_Enter); this.ucBids4.BackColor = Color.FromArgb(20, 20, 20); this.ucBids4.CurrStockNo = 0; this.ucBids4.IsLoadingData = false; this.ucBids4.Location = new Point(3, 260); this.ucBids4.Name = "ucBids4"; this.ucBids4.Size = new Size(444, 154); this.ucBids4.TabIndex = 81; this.ucBids4.OnNewStock += new ucBids.OnNewStockEventHandler(this.ucBids1_OnNewStock); this.ucBids4.OnLink += new ucBids.OnLinkEventHandler(this.ucBids_OnLink); this.ucBids4.Leave += new EventHandler(this.ucBids_Leave); this.ucBids4.Enter += new EventHandler(this.ucBids_Enter); this.ucBids3.BackColor = Color.FromArgb(20, 20, 20); this.ucBids3.CurrStockNo = 0; this.ucBids3.IsLoadingData = false; this.ucBids3.Location = new Point(-4, 200); this.ucBids3.Name = "ucBids3"; this.ucBids3.Size = new Size(444, 154); this.ucBids3.TabIndex = 80; this.ucBids3.OnNewStock += new ucBids.OnNewStockEventHandler(this.ucBids1_OnNewStock); this.ucBids3.OnLink += new ucBids.OnLinkEventHandler(this.ucBids_OnLink); this.ucBids3.Leave += new EventHandler(this.ucBids_Leave); this.ucBids3.Enter += new EventHandler(this.ucBids_Enter); this.ucBids2.BackColor = Color.FromArgb(20, 20, 20); this.ucBids2.CurrStockNo = 0; this.ucBids2.IsLoadingData = false; this.ucBids2.Location = new Point(0, 112); this.ucBids2.Name = "ucBids2"; this.ucBids2.Size = new Size(444, 154); this.ucBids2.TabIndex = 79; this.ucBids2.OnNewStock += new ucBids.OnNewStockEventHandler(this.ucBids1_OnNewStock); this.ucBids2.OnLink += new ucBids.OnLinkEventHandler(this.ucBids_OnLink); this.ucBids2.Leave += new EventHandler(this.ucBids_Leave); this.ucBids2.Enter += new EventHandler(this.ucBids_Enter); this.ucBids1.BackColor = Color.FromArgb(20, 20, 20); this.ucBids1.CurrStockNo = 0; this.ucBids1.IsLoadingData = false; this.ucBids1.Location = new Point(0, 3); this.ucBids1.Name = "ucBids1"; this.ucBids1.Size = new Size(444, 154); this.ucBids1.TabIndex = 78; this.ucBids1.OnNewStock += new ucBids.OnNewStockEventHandler(this.ucBids1_OnNewStock); this.ucBids1.OnLink += new ucBids.OnLinkEventHandler(this.ucBids_OnLink); this.ucBids1.Leave += new EventHandler(this.ucBids_Leave); this.ucBids1.Enter += new EventHandler(this.ucBids_Enter); this.tStripMenu.AllowMerge = false; this.tStripMenu.BackColor = Color.FromArgb(30, 30, 30); this.tStripMenu.GripMargin = new Padding(0); this.tStripMenu.GripStyle = ToolStripGripStyle.Hidden; this.tStripMenu.Items.AddRange(new ToolStripItem[] { this.toolStripLabel10, this.tscbSelection, this.tsbtnAdd, this.tsbtnDel }); this.tStripMenu.Location = new Point(0, 0); this.tStripMenu.Name = "tStripMenu"; this.tStripMenu.Padding = new Padding(1, 1, 1, 2); this.tStripMenu.RenderMode = ToolStripRenderMode.System; this.tStripMenu.Size = new Size(1121, 26); this.tStripMenu.TabIndex = 77; this.toolStripLabel10.ForeColor = Color.LightGray; this.toolStripLabel10.Margin = new Padding(2, 1, 2, 2); this.toolStripLabel10.Name = "toolStripLabel10"; this.toolStripLabel10.Size = new Size(61, 20); this.toolStripLabel10.Text = "Selection :"; this.tscbSelection.BackColor = Color.FromArgb(30, 30, 30); this.tscbSelection.DropDownStyle = ComboBoxStyle.DropDownList; this.tscbSelection.ForeColor = Color.LightGray; this.tscbSelection.Items.AddRange(new object[] { "Favorites-1", "Favorites-2", "Favorites-3", "Favorites-4", "Favorites-5" }); this.tscbSelection.Name = "tscbSelection"; this.tscbSelection.Size = new Size(120, 23); this.tscbSelection.SelectedIndexChanged += new EventHandler(this.tscbSelection_SelectedIndexChanged); this.tsbtnAdd.ForeColor = Color.LightGray; this.tsbtnAdd.Image = Resources.Plus; this.tsbtnAdd.ImageTransparentColor = Color.Magenta; this.tsbtnAdd.Margin = new Padding(10, 1, 0, 2); this.tsbtnAdd.Name = "tsbtnAdd"; this.tsbtnAdd.Size = new Size(49, 20); this.tsbtnAdd.Text = "Add"; this.tsbtnAdd.Click += new EventHandler(this.tsbtnAdd_Click); this.tsbtnDel.ForeColor = Color.LightGray; this.tsbtnDel.Image = Resources.Minus; this.tsbtnDel.ImageTransparentColor = Color.Magenta; this.tsbtnDel.Name = "tsbtnDel"; this.tsbtnDel.Size = new Size(60, 20); this.tsbtnDel.Text = "Delete"; this.tsbtnDel.Click += new EventHandler(this.tsbtnDel_Click); this.scrollbar1.BackColor = Color.FromArgb(20, 20, 20); this.scrollbar1.ChannelColor = Color.FromArgb(80, 80, 80); this.scrollbar1.Cursor = Cursors.Hand; this.scrollbar1.HeaderHeight = 0f; this.scrollbar1.LargeChange = 10; this.scrollbar1.Location = new Point(896, 29); this.scrollbar1.Maximum = 100; this.scrollbar1.MinimumSize = new Size(10, 47); this.scrollbar1.Name = "scrollbar1"; this.scrollbar1.Size = new Size(10, 375); this.scrollbar1.TabIndex = 71; this.scrollbar1.Value = 0; this.scrollbar1.ValueChanged += new EventHandler(this.scrollbar1_ValueChanged); this.speedTableGrid1.AllowDrop = true; this.speedTableGrid1.BackColor = Color.Black; this.speedTableGrid1.CanBlink = true; this.speedTableGrid1.CanDrag = false; this.speedTableGrid1.CanGetMouseMove = false; columnItem.Alignment = StringAlignment.Far; columnItem.BackColor = Color.FromArgb(64, 64, 64); columnItem.ColumnAlignment = StringAlignment.Center; columnItem.FontColor = Color.LightGray; columnItem.MyStyle = FontStyle.Regular; columnItem.Name = "bidvolume"; columnItem.Text = "Volume"; columnItem.ValueFormat = FormatType.Volume; columnItem.Visible = true; columnItem.Width = 30; columnItem2.Alignment = StringAlignment.Near; columnItem2.BackColor = Color.FromArgb(64, 64, 64); columnItem2.ColumnAlignment = StringAlignment.Center; columnItem2.FontColor = Color.LightGray; columnItem2.MyStyle = FontStyle.Regular; columnItem2.Name = "bid"; columnItem2.Text = "Bid"; columnItem2.ValueFormat = FormatType.Text; columnItem2.Visible = true; columnItem2.Width = 20; columnItem3.Alignment = StringAlignment.Near; columnItem3.BackColor = Color.FromArgb(64, 64, 64); columnItem3.ColumnAlignment = StringAlignment.Center; columnItem3.FontColor = Color.LightGray; columnItem3.MyStyle = FontStyle.Regular; columnItem3.Name = "offer"; columnItem3.Text = "Offer"; columnItem3.ValueFormat = FormatType.Text; columnItem3.Visible = true; columnItem3.Width = 20; columnItem4.Alignment = StringAlignment.Far; columnItem4.BackColor = Color.FromArgb(64, 64, 64); columnItem4.ColumnAlignment = StringAlignment.Center; columnItem4.FontColor = Color.LightGray; columnItem4.MyStyle = FontStyle.Regular; columnItem4.Name = "offervolume"; columnItem4.Text = "Volume"; columnItem4.ValueFormat = FormatType.Volume; columnItem4.Visible = true; columnItem4.Width = 30; this.speedTableGrid1.Columns.Add(columnItem); this.speedTableGrid1.Columns.Add(columnItem2); this.speedTableGrid1.Columns.Add(columnItem3); this.speedTableGrid1.Columns.Add(columnItem4); this.speedTableGrid1.CurrentScroll = 0; this.speedTableGrid1.FocusItemIndex = -1; this.speedTableGrid1.ForeColor = Color.Black; this.speedTableGrid1.GridColor = Color.FromArgb(45, 45, 45); this.speedTableGrid1.HeaderPctHeight = 80f; this.speedTableGrid1.IsAutoRepaint = false; this.speedTableGrid1.IsDrawFullRow = false; this.speedTableGrid1.IsDrawGrid = true; this.speedTableGrid1.IsDrawHeader = true; this.speedTableGrid1.IsScrollable = false; this.speedTableGrid1.Location = new Point(0, 23); this.speedTableGrid1.MainColumn = ""; this.speedTableGrid1.Margin = new Padding(1); this.speedTableGrid1.Name = "speedTableGrid1"; this.speedTableGrid1.Rows = 5; this.speedTableGrid1.RowSelectColor = Color.FromArgb(95, 158, 160); this.speedTableGrid1.RowSelectType = 0; this.speedTableGrid1.RowsVisible = 5; this.speedTableGrid1.Size = new Size(220, 45); this.speedTableGrid1.SortColumnName = ""; this.speedTableGrid1.SortType = SortType.Desc; this.speedTableGrid1.TabIndex = 66; this.speedTableGrid2.AllowDrop = true; this.speedTableGrid2.BackColor = Color.Black; this.speedTableGrid2.CanBlink = true; this.speedTableGrid2.CanDrag = false; this.speedTableGrid2.CanGetMouseMove = false; columnItem5.Alignment = StringAlignment.Far; columnItem5.BackColor = Color.FromArgb(64, 64, 64); columnItem5.ColumnAlignment = StringAlignment.Center; columnItem5.FontColor = Color.LightGray; columnItem5.MyStyle = FontStyle.Regular; columnItem5.Name = "volume"; columnItem5.Text = "Volume"; columnItem5.ValueFormat = FormatType.Volume; columnItem5.Visible = true; columnItem5.Width = 40; columnItem6.Alignment = StringAlignment.Far; columnItem6.BackColor = Color.FromArgb(64, 64, 64); columnItem6.ColumnAlignment = StringAlignment.Center; columnItem6.FontColor = Color.LightGray; columnItem6.MyStyle = FontStyle.Regular; columnItem6.Name = "price"; columnItem6.Text = "Price"; columnItem6.ValueFormat = FormatType.Text; columnItem6.Visible = true; columnItem6.Width = 27; columnItem7.Alignment = StringAlignment.Far; columnItem7.BackColor = Color.FromArgb(64, 64, 64); columnItem7.ColumnAlignment = StringAlignment.Center; columnItem7.FontColor = Color.LightGray; columnItem7.MyStyle = FontStyle.Regular; columnItem7.Name = "time"; columnItem7.Text = "Time"; columnItem7.ValueFormat = FormatType.Text; columnItem7.Visible = true; columnItem7.Width = 33; this.speedTableGrid2.Columns.Add(columnItem5); this.speedTableGrid2.Columns.Add(columnItem6); this.speedTableGrid2.Columns.Add(columnItem7); this.speedTableGrid2.CurrentScroll = 0; this.speedTableGrid2.FocusItemIndex = -1; this.speedTableGrid2.ForeColor = Color.Black; this.speedTableGrid2.GridColor = Color.FromArgb(45, 45, 45); this.speedTableGrid2.HeaderPctHeight = 80f; this.speedTableGrid2.IsAutoRepaint = false; this.speedTableGrid2.IsDrawFullRow = true; this.speedTableGrid2.IsDrawGrid = false; this.speedTableGrid2.IsDrawHeader = true; this.speedTableGrid2.IsScrollable = false; this.speedTableGrid2.Location = new Point(232, 21); this.speedTableGrid2.MainColumn = ""; this.speedTableGrid2.Margin = new Padding(1); this.speedTableGrid2.Name = "speedTableGrid2"; this.speedTableGrid2.Rows = 5; this.speedTableGrid2.RowSelectColor = Color.FromArgb(95, 158, 160); this.speedTableGrid2.RowSelectType = 0; this.speedTableGrid2.RowsVisible = 5; this.speedTableGrid2.Size = new Size(156, 38); this.speedTableGrid2.SortColumnName = ""; this.speedTableGrid2.SortType = SortType.Desc; this.speedTableGrid2.TabIndex = 65; this.speedTableGrid3.AllowDrop = true; this.speedTableGrid3.BackColor = Color.Black; this.speedTableGrid3.CanBlink = true; this.speedTableGrid3.CanDrag = false; this.speedTableGrid3.CanGetMouseMove = false; columnItem8.Alignment = StringAlignment.Far; columnItem8.BackColor = Color.FromArgb(64, 64, 64); columnItem8.ColumnAlignment = StringAlignment.Center; columnItem8.FontColor = Color.LightGray; columnItem8.MyStyle = FontStyle.Regular; columnItem8.Name = "bidvolume"; columnItem8.Text = "Volume"; columnItem8.ValueFormat = FormatType.Volume; columnItem8.Visible = true; columnItem8.Width = 30; columnItem9.Alignment = StringAlignment.Near; columnItem9.BackColor = Color.FromArgb(64, 64, 64); columnItem9.ColumnAlignment = StringAlignment.Center; columnItem9.FontColor = Color.LightGray; columnItem9.MyStyle = FontStyle.Regular; columnItem9.Name = "bid"; columnItem9.Text = "Bid"; columnItem9.ValueFormat = FormatType.Text; columnItem9.Visible = true; columnItem9.Width = 20; columnItem10.Alignment = StringAlignment.Near; columnItem10.BackColor = Color.FromArgb(64, 64, 64); columnItem10.ColumnAlignment = StringAlignment.Center; columnItem10.FontColor = Color.LightGray; columnItem10.MyStyle = FontStyle.Regular; columnItem10.Name = "offer"; columnItem10.Text = "Offer"; columnItem10.ValueFormat = FormatType.Text; columnItem10.Visible = true; columnItem10.Width = 20; columnItem11.Alignment = StringAlignment.Far; columnItem11.BackColor = Color.FromArgb(64, 64, 64); columnItem11.ColumnAlignment = StringAlignment.Center; columnItem11.FontColor = Color.LightGray; columnItem11.MyStyle = FontStyle.Regular; columnItem11.Name = "offervolume"; columnItem11.Text = "Volume"; columnItem11.ValueFormat = FormatType.Volume; columnItem11.Visible = true; columnItem11.Width = 30; this.speedTableGrid3.Columns.Add(columnItem8); this.speedTableGrid3.Columns.Add(columnItem9); this.speedTableGrid3.Columns.Add(columnItem10); this.speedTableGrid3.Columns.Add(columnItem11); this.speedTableGrid3.CurrentScroll = 0; this.speedTableGrid3.FocusItemIndex = -1; this.speedTableGrid3.ForeColor = Color.Black; this.speedTableGrid3.GridColor = Color.FromArgb(45, 45, 45); this.speedTableGrid3.HeaderPctHeight = 80f; this.speedTableGrid3.IsAutoRepaint = false; this.speedTableGrid3.IsDrawFullRow = false; this.speedTableGrid3.IsDrawGrid = true; this.speedTableGrid3.IsDrawHeader = true; this.speedTableGrid3.IsScrollable = false; this.speedTableGrid3.Location = new Point(0, 23); this.speedTableGrid3.MainColumn = ""; this.speedTableGrid3.Margin = new Padding(1); this.speedTableGrid3.Name = "speedTableGrid3"; this.speedTableGrid3.Rows = 5; this.speedTableGrid3.RowSelectColor = Color.FromArgb(95, 158, 160); this.speedTableGrid3.RowSelectType = 0; this.speedTableGrid3.RowsVisible = 5; this.speedTableGrid3.Size = new Size(220, 45); this.speedTableGrid3.SortColumnName = ""; this.speedTableGrid3.SortType = SortType.Desc; this.speedTableGrid3.TabIndex = 66; this.speedTableGrid4.AllowDrop = true; this.speedTableGrid4.BackColor = Color.Black; this.speedTableGrid4.CanBlink = true; this.speedTableGrid4.CanDrag = false; this.speedTableGrid4.CanGetMouseMove = false; columnItem12.Alignment = StringAlignment.Far; columnItem12.BackColor = Color.FromArgb(64, 64, 64); columnItem12.ColumnAlignment = StringAlignment.Center; columnItem12.FontColor = Color.LightGray; columnItem12.MyStyle = FontStyle.Regular; columnItem12.Name = "volume"; columnItem12.Text = "Volume"; columnItem12.ValueFormat = FormatType.Volume; columnItem12.Visible = true; columnItem12.Width = 40; columnItem13.Alignment = StringAlignment.Far; columnItem13.BackColor = Color.FromArgb(64, 64, 64); columnItem13.ColumnAlignment = StringAlignment.Center; columnItem13.FontColor = Color.LightGray; columnItem13.MyStyle = FontStyle.Regular; columnItem13.Name = "price"; columnItem13.Text = "Price"; columnItem13.ValueFormat = FormatType.Text; columnItem13.Visible = true; columnItem13.Width = 27; columnItem14.Alignment = StringAlignment.Far; columnItem14.BackColor = Color.FromArgb(64, 64, 64); columnItem14.ColumnAlignment = StringAlignment.Center; columnItem14.FontColor = Color.LightGray; columnItem14.MyStyle = FontStyle.Regular; columnItem14.Name = "time"; columnItem14.Text = "Time"; columnItem14.ValueFormat = FormatType.Text; columnItem14.Visible = true; columnItem14.Width = 33; this.speedTableGrid4.Columns.Add(columnItem12); this.speedTableGrid4.Columns.Add(columnItem13); this.speedTableGrid4.Columns.Add(columnItem14); this.speedTableGrid4.CurrentScroll = 0; this.speedTableGrid4.FocusItemIndex = -1; this.speedTableGrid4.ForeColor = Color.Black; this.speedTableGrid4.GridColor = Color.FromArgb(45, 45, 45); this.speedTableGrid4.HeaderPctHeight = 80f; this.speedTableGrid4.IsAutoRepaint = false; this.speedTableGrid4.IsDrawFullRow = true; this.speedTableGrid4.IsDrawGrid = false; this.speedTableGrid4.IsDrawHeader = true; this.speedTableGrid4.IsScrollable = false; this.speedTableGrid4.Location = new Point(232, 21); this.speedTableGrid4.MainColumn = ""; this.speedTableGrid4.Margin = new Padding(1); this.speedTableGrid4.Name = "speedTableGrid4"; this.speedTableGrid4.Rows = 5; this.speedTableGrid4.RowSelectColor = Color.FromArgb(95, 158, 160); this.speedTableGrid4.RowSelectType = 0; this.speedTableGrid4.RowsVisible = 5; this.speedTableGrid4.Size = new Size(156, 38); this.speedTableGrid4.SortColumnName = ""; this.speedTableGrid4.SortType = SortType.Desc; this.speedTableGrid4.TabIndex = 65; this.contextLink.Items.AddRange(new ToolStripItem[] { this.tsmCallHistoricalChart, this.tsmCallNews, this.toolStripMenuItem1, this.tsmCallMarketWatch, this.tsmCallStockInPlay, this.tsmCallSaleByPrice, this.tsmCallSaleByTime, this.tsmCallOddlot }); this.contextLink.Name = "contextMenuStrip1"; this.contextLink.Size = new Size(212, 164); this.tsmCallHistoricalChart.Name = "tsmCallHistoricalChart"; this.tsmCallHistoricalChart.Size = new Size(211, 22); this.tsmCallHistoricalChart.Text = "Historical Chart"; this.tsmCallHistoricalChart.Click += new EventHandler(this.tsmCallHistoricalChart_Click); this.tsmCallNews.Name = "tsmCallNews"; this.tsmCallNews.Size = new Size(211, 22); this.tsmCallNews.Text = "News - ข่าวตลาดหลักทรัพย์ฯ"; this.tsmCallNews.Click += new EventHandler(this.tsmCallNews_Click); this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new Size(208, 6); this.tsmCallMarketWatch.Name = "tsmCallMarketWatch"; this.tsmCallMarketWatch.Size = new Size(211, 22); this.tsmCallMarketWatch.Text = "Market Watch"; this.tsmCallMarketWatch.Click += new EventHandler(this.tsmCallMarketWatch_Click); this.tsmCallStockInPlay.Name = "tsmCallStockInPlay"; this.tsmCallStockInPlay.Size = new Size(211, 22); this.tsmCallStockInPlay.Text = "Stock in Play"; this.tsmCallStockInPlay.Click += new EventHandler(this.tsmCallStockSummary_Click); this.tsmCallSaleByPrice.Name = "tsmCallSaleByPrice"; this.tsmCallSaleByPrice.Size = new Size(211, 22); this.tsmCallSaleByPrice.Text = "Sale by Price"; this.tsmCallSaleByPrice.Click += new EventHandler(this.tsmCallSaleByPrice_Click); this.tsmCallSaleByTime.Name = "tsmCallSaleByTime"; this.tsmCallSaleByTime.Size = new Size(211, 22); this.tsmCallSaleByTime.Text = "Sale by Time"; this.tsmCallSaleByTime.Click += new EventHandler(this.tsmCallSaleByTime_Click); this.tsmCallOddlot.Name = "tsmCallOddlot"; this.tsmCallOddlot.Size = new Size(211, 22); this.tsmCallOddlot.Text = "View Oddlot"; this.tsmCallOddlot.Click += new EventHandler(this.tsmCallOddlot_Click); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; this.BackColor = Color.FromArgb(50, 50, 50); base.ClientSize = new Size(1121, 497); base.Controls.Add(this.tStripMenu); base.Controls.Add(this.scrollbar1); base.Controls.Add(this.panelMain); base.FormBorderStyle = FormBorderStyle.FixedToolWindow; base.KeyPreview = true; base.Name = "frmTopBBOs"; this.Text = "Top BBO"; base.IDoShownDelay += new ClientBaseForm.OnShownDelayEventHandler(this.frmTopBBOs_IDoShownDelay); base.IDoLoadData += new ClientBaseForm.OnIDoLoadDataEventHandler(this.frmTopBBOs_IDoLoadData); base.IDoFontChanged += new ClientBaseForm.OnFontChangedEventHandler(this.frmTopBBOs_IDoFontChanged); base.IDoCustomSizeChanged += new ClientBaseForm.CustomSizeChangedEventHandler(this.frmTopBBOs_IDoCustomSizeChanged); base.IDoMainFormKeyUp += new ClientBaseForm.OnFormKeyUpEventHandler(this.frmTopBBOs_IDoMainFormKeyUp); base.IDoReActivated += new ClientBaseForm.OnReActiveEventHandler(this.frmTopBBOs_IDoReActivated); base.KeyDown += new KeyEventHandler(this.frmTopBBOs_KeyDown); base.Controls.SetChildIndex(this.panelMain, 0); base.Controls.SetChildIndex(this.scrollbar1, 0); base.Controls.SetChildIndex(this.tStripMenu, 0); this.panelMain.ResumeLayout(false); this.tStripMenu.ResumeLayout(false); this.tStripMenu.PerformLayout(); this.contextLink.ResumeLayout(false); base.ResumeLayout(false); base.PerformLayout(); }
private void Populate() { //ArchAngel.Interfaces. Slyce.Common.Utility.SuspendPainting(slyceGrid1); slyceGrid1.Clear(); // Populate Columns from Entity #region Name column ColumnItem col = new ColumnItem("Name", ColumnItem.ColumnTypes.Textbox, "NewProp", "General"); col.ColorScheme = ColumnItem.ColorSchemes.Blue; slyceGrid1.Columns.Add(col); #endregion #region Type column col = new ColumnItem("Type", ColumnItem.ColumnTypes.ComboBox, "System.String", "General"); col.ColorScheme = ColumnItem.ColorSchemes.Blue; foreach (var x in ArchAngel.Interfaces.ProjectOptions.TypeMappings.Utility.DotNetTypes.Select(t => t.CSharpName).Distinct()) { col.ComboItems.Add(x, null); } slyceGrid1.Columns.Add(col); #endregion #region NHibernate Type column col = new ColumnItem("NHibernate Type", ColumnItem.ColumnTypes.ComboBox, "System.String", "General"); col.ColorScheme = ColumnItem.ColorSchemes.Blue; foreach (var x in Enum.GetNames(typeof(PropertyImpl.NHibernateTypes)).OrderBy(t => t)) { col.ComboItems.Add(x, null); } slyceGrid1.Columns.Add(col); #endregion #region MappedColumns column ColumnItem mappedColumnsColumn = new ColumnItem("Mapped To", ColumnItem.ColumnTypes.ComboBox, "", "General"); mappedColumnsColumn.ComboItems.Add("", null); mappedColumnsColumn.ColorScheme = ColumnItem.ColorSchemes.Blue; int numTables = MappedTables.Count; bool hasMultiSchemas = MappedTables.Select(t => t.Schema).Distinct().Count() > 1; foreach (Table table in MappedTables) { foreach (Column column in table.Columns) { string name; if (numTables == 1) { name = column.Name; } else if (hasMultiSchemas) { name = string.Format("{0}.{1}.{2}", table.Schema, table.Name, column.Name); } else { name = string.Format("{0}.{1}", table.Name, column.Name); } if (!mappedColumnsColumn.ComboItems.ContainsKey(name)) { mappedColumnsColumn.ComboItems.Add(name, column); } } } slyceGrid1.Columns.Add(mappedColumnsColumn); #endregion #region InKey column col = new ColumnItem("In Key", ColumnItem.ColumnTypes.Checkbox, false, "General"); col.ColorScheme = ColumnItem.ColorSchemes.Blue; slyceGrid1.Columns.Add(col); #endregion #region ReadOnly column col = new ColumnItem("Read-only", ColumnItem.ColumnTypes.Checkbox, false, "General"); col.ColorScheme = ColumnItem.ColorSchemes.Blue; slyceGrid1.Columns.Add(col); #endregion ArchAngel.Providers.EntityModel.Model.EntityLayer.PropertyImpl prop = new ArchAngel.Providers.EntityModel.Model.EntityLayer.PropertyImpl(); foreach (ArchAngel.Interfaces.ITemplate.IUserOption uo in prop.Ex.OrderBy(u => u.Name)) { if (uo.DataType == typeof(bool?)) { col = new ColumnItem(uo.Text, ColumnItem.ColumnTypes.NullableCheckBox, null, "General"); } else if (uo.DataType == typeof(string)) { col = new ColumnItem(uo.Text, ColumnItem.ColumnTypes.Textbox, null, "General"); } else if (uo.DataType == typeof(int)) { col = new ColumnItem(uo.Text, ColumnItem.ColumnTypes.IntegerInput, null, "General"); } else if (uo.DataType == typeof(bool)) { col = new ColumnItem(uo.Text, ColumnItem.ColumnTypes.Checkbox, null, "General"); } else if (uo.DataType.ToString() == "ArchAngel.Interfaces.NHibernateEnums.PropertyAccessTypes") { col = new ColumnItem(uo.Text, ColumnItem.ColumnTypes.ComboBox, null, "General"); foreach (var x in Enum.GetNames(typeof(ArchAngel.Interfaces.NHibernateEnums.PropertyAccessTypes)).OrderBy(t => t)) { col.ComboItems.Add(x, null); } } else if (uo.DataType.ToString() == "ArchAngel.Interfaces.NHibernateEnums.PropertyGeneratedTypes") { col = new ColumnItem(uo.Text, ColumnItem.ColumnTypes.ComboBox, null, "General"); foreach (var x in Enum.GetNames(typeof(ArchAngel.Interfaces.NHibernateEnums.PropertyGeneratedTypes)).OrderBy(t => t)) { col.ComboItems.Add(x, null); } } else { throw new NotImplementedException("Type not handled yet: " + uo.DataType.Name); } col.ColorScheme = ColumnItem.ColorSchemes.Blue; slyceGrid1.Columns.Add(col); } #region Validation options slyceGrid1.Columns.Add(new ColumnItem("Fractional Digits", ColumnItem.ColumnTypes.NullableIntegerInput, 0, "Validation (optional)") { ColorScheme = ColumnItem.ColorSchemes.Green }); slyceGrid1.Columns.Add(new ColumnItem("Future Date", ColumnItem.ColumnTypes.NullableCheckBox, false, "Validation (optional)") { ColorScheme = ColumnItem.ColorSchemes.Green }); slyceGrid1.Columns.Add(new ColumnItem("Integer Digits", ColumnItem.ColumnTypes.NullableIntegerInput, 0, "Validation (optional)") { ColorScheme = ColumnItem.ColorSchemes.Green }); slyceGrid1.Columns.Add(new ColumnItem("Max Length", ColumnItem.ColumnTypes.NullableIntegerInput, 0, "Validation (optional)") { ColorScheme = ColumnItem.ColorSchemes.Green }); slyceGrid1.Columns.Add(new ColumnItem("Min Length", ColumnItem.ColumnTypes.NullableIntegerInput, 0, "Validation (optional)") { ColorScheme = ColumnItem.ColorSchemes.Green }); slyceGrid1.Columns.Add(new ColumnItem("Max Value", ColumnItem.ColumnTypes.NullableIntegerInput, 0, "Validation (optional)") { ColorScheme = ColumnItem.ColorSchemes.Green }); slyceGrid1.Columns.Add(new ColumnItem("Min Value", ColumnItem.ColumnTypes.NullableIntegerInput, 0, "Validation (optional)") { ColorScheme = ColumnItem.ColorSchemes.Green }); slyceGrid1.Columns.Add(new ColumnItem("Not Empty", ColumnItem.ColumnTypes.NullableCheckBox, false, "Validation (optional)") { ColorScheme = ColumnItem.ColorSchemes.Green }); slyceGrid1.Columns.Add(new ColumnItem("Nullable", ColumnItem.ColumnTypes.NullableCheckBox, false, "Validation (optional)") { ColorScheme = ColumnItem.ColorSchemes.Green }); slyceGrid1.Columns.Add(new ColumnItem("Past Date", ColumnItem.ColumnTypes.NullableCheckBox, false, "Validation (optional)") { ColorScheme = ColumnItem.ColorSchemes.Green }); slyceGrid1.Columns.Add(new ColumnItem("Regex", ColumnItem.ColumnTypes.NullableTextBox, "", "Validation (optional)") { ColorScheme = ColumnItem.ColorSchemes.Green }); slyceGrid1.Columns.Add(new ColumnItem("Validate", ColumnItem.ColumnTypes.NullableCheckBox, false, "Validation (optional)") { ColorScheme = ColumnItem.ColorSchemes.Green }); #endregion foreach (ArchAngel.Providers.EntityModel.Model.EntityLayer.Property property in Entity.Properties.Except(Entity.ForeignKeyPropertiesToExclude)) { AddPropertyToPropertiesGrid(property, hasMultiSchemas); } slyceGrid1.Populate(); slyceGrid1.FrozenColumnIndex = 1; Slyce.Common.Utility.ResumePainting(slyceGrid1); }
private void InitializeComponent() { ColumnItem columnItem = new ColumnItem(); ColumnItem columnItem2 = new ColumnItem(); ColumnItem columnItem3 = new ColumnItem(); ColumnItem columnItem4 = new ColumnItem(); ColumnItem columnItem5 = new ColumnItem(); this.ViewOrderBox = new ucViewOrder(); this.intzaSum = new SortGrid(); this.tStripTop = new ToolStrip(); this.tsbtnViewTransaction = new ToolStripButton(); this.tsripViewOrderByStock = new ToolStripSeparator(); this.tsbtnViewByStock = new ToolStripButton(); this.OrderStatBox = new ucOrderStat(); this.tStripTop.SuspendLayout(); base.SuspendLayout(); this.ViewOrderBox.BackColor = Color.FromArgb(20, 20, 20); this.ViewOrderBox.Font = new Font("Microsoft Sans Serif", 8.25f); this.ViewOrderBox.IsActive = false; this.ViewOrderBox.IsLoadingData = false; this.ViewOrderBox.IsShowLoadingControl = false; this.ViewOrderBox.IsShowNextPage = false; this.ViewOrderBox.IsShowToolsBar = true; this.ViewOrderBox.Location = new Point(0, 36); this.ViewOrderBox.Margin = new Padding(0); this.ViewOrderBox.Name = "ViewOrderBox"; this.ViewOrderBox.ShowOnMainForm = false; this.ViewOrderBox.Size = new Size(783, 146); this.ViewOrderBox.TabIndex = 8; this.ViewOrderBox.OnDisplaySummaryOrders += new ucViewOrder.OnDisplaySummaryOrdersHandler(this.ucViewOrder_OnDisplaySummaryOrders); this.intzaSum.AllowDrop = true; this.intzaSum.BackColor = Color.FromArgb(30, 30, 30); this.intzaSum.CanBlink = true; this.intzaSum.CanDrag = false; this.intzaSum.CanGetMouseMove = false; columnItem.Alignment = StringAlignment.Near; columnItem.BackColor = Color.FromArgb(64, 64, 64); columnItem.ColumnAlignment = StringAlignment.Center; columnItem.FontColor = Color.LightGray; columnItem.MyStyle = FontStyle.Regular; columnItem.Name = "sum"; columnItem.Text = "Summary"; columnItem.ValueFormat = FormatType.Text; columnItem.Visible = true; columnItem.Width = 28; columnItem2.Alignment = StringAlignment.Far; columnItem2.BackColor = Color.FromArgb(64, 64, 64); columnItem2.ColumnAlignment = StringAlignment.Center; columnItem2.FontColor = Color.LightGray; columnItem2.MyStyle = FontStyle.Regular; columnItem2.Name = "volume"; columnItem2.Text = "Volume"; columnItem2.ValueFormat = FormatType.Volume; columnItem2.Visible = true; columnItem2.Width = 18; columnItem3.Alignment = StringAlignment.Far; columnItem3.BackColor = Color.FromArgb(64, 64, 64); columnItem3.ColumnAlignment = StringAlignment.Center; columnItem3.FontColor = Color.LightGray; columnItem3.MyStyle = FontStyle.Regular; columnItem3.Name = "unmatch"; columnItem3.Text = "UnMatch Volume"; columnItem3.ValueFormat = FormatType.Volume; columnItem3.Visible = true; columnItem3.Width = 18; columnItem4.Alignment = StringAlignment.Far; columnItem4.BackColor = Color.FromArgb(64, 64, 64); columnItem4.ColumnAlignment = StringAlignment.Center; columnItem4.FontColor = Color.LightGray; columnItem4.MyStyle = FontStyle.Regular; columnItem4.Name = "mvolume"; columnItem4.Text = "Matched Volume"; columnItem4.ValueFormat = FormatType.Volume; columnItem4.Visible = true; columnItem4.Width = 18; columnItem5.Alignment = StringAlignment.Far; columnItem5.BackColor = Color.FromArgb(64, 64, 64); columnItem5.ColumnAlignment = StringAlignment.Center; columnItem5.FontColor = Color.LightGray; columnItem5.MyStyle = FontStyle.Regular; columnItem5.Name = "mvalue"; columnItem5.Text = "Matched Value"; columnItem5.ValueFormat = FormatType.Price; columnItem5.Visible = true; columnItem5.Width = 18; this.intzaSum.Columns.Add(columnItem); this.intzaSum.Columns.Add(columnItem2); this.intzaSum.Columns.Add(columnItem3); this.intzaSum.Columns.Add(columnItem4); this.intzaSum.Columns.Add(columnItem5); this.intzaSum.CurrentScroll = 0; this.intzaSum.FocusItemIndex = -1; this.intzaSum.ForeColor = Color.Black; this.intzaSum.GridColor = Color.FromArgb(45, 45, 45); this.intzaSum.HeaderPctHeight = 80f; this.intzaSum.IsAutoRepaint = true; this.intzaSum.IsDrawFullRow = false; this.intzaSum.IsDrawGrid = true; this.intzaSum.IsDrawHeader = true; this.intzaSum.IsScrollable = false; this.intzaSum.Location = new Point(0, 345); this.intzaSum.MainColumn = ""; this.intzaSum.Name = "intzaSum"; this.intzaSum.Rows = 2; this.intzaSum.RowSelectColor = Color.FromArgb(95, 158, 160); this.intzaSum.RowSelectType = 0; this.intzaSum.RowsVisible = 2; this.intzaSum.Size = new Size(783, 52); this.intzaSum.SortColumnName = ""; this.intzaSum.SortType = SortType.Desc; this.intzaSum.TabIndex = 25; this.tStripTop.AllowMerge = false; this.tStripTop.BackColor = Color.FromArgb(30, 30, 30); this.tStripTop.CanOverflow = false; this.tStripTop.GripMargin = new Padding(0); this.tStripTop.GripStyle = ToolStripGripStyle.Hidden; this.tStripTop.Items.AddRange(new ToolStripItem[] { this.tsbtnViewTransaction, this.tsripViewOrderByStock, this.tsbtnViewByStock }); this.tStripTop.LayoutStyle = ToolStripLayoutStyle.HorizontalStackWithOverflow; this.tStripTop.Location = new Point(0, 0); this.tStripTop.Name = "tStripTop"; this.tStripTop.Padding = new Padding(1, 1, 1, 2); this.tStripTop.RenderMode = ToolStripRenderMode.Professional; this.tStripTop.Size = new Size(784, 26); this.tStripTop.TabIndex = 58; this.tStripTop.Tag = "-1"; this.tsbtnViewTransaction.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnViewTransaction.ForeColor = Color.Orange; this.tsbtnViewTransaction.ImageTransparentColor = Color.Magenta; this.tsbtnViewTransaction.Margin = new Padding(5, 1, 5, 2); this.tsbtnViewTransaction.Name = "tsbtnViewTransaction"; this.tsbtnViewTransaction.Size = new Size(155, 20); this.tsbtnViewTransaction.Text = "View Order by Transactions"; this.tsbtnViewTransaction.Click += new EventHandler(this.tsbtnViewTransaction_Click); this.tsripViewOrderByStock.Name = "tsripViewOrderByStock"; this.tsripViewOrderByStock.Size = new Size(6, 23); this.tsbtnViewByStock.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnViewByStock.ForeColor = Color.LightGray; this.tsbtnViewByStock.ImageTransparentColor = Color.Magenta; this.tsbtnViewByStock.Margin = new Padding(5, 1, 0, 2); this.tsbtnViewByStock.Name = "tsbtnViewByStock"; this.tsbtnViewByStock.Size = new Size(117, 20); this.tsbtnViewByStock.Text = "View Order by Stock"; this.tsbtnViewByStock.Click += new EventHandler(this.tsbtnViewByStock_Click); this.OrderStatBox.BackColor = Color.FromArgb(30, 30, 30); this.OrderStatBox.IsLoadingData = false; this.OrderStatBox.Location = new Point(3, 196); this.OrderStatBox.Margin = new Padding(3, 4, 3, 4); this.OrderStatBox.Name = "OrderStatBox"; this.OrderStatBox.Size = new Size(780, 128); this.OrderStatBox.TabIndex = 66; this.OrderStatBox.Visible = false; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; this.BackColor = Color.FromArgb(20, 20, 20); base.ClientSize = new Size(784, 431); base.Controls.Add(this.OrderStatBox); base.Controls.Add(this.tStripTop); base.Controls.Add(this.intzaSum); base.Controls.Add(this.ViewOrderBox); base.Margin = new Padding(3, 4, 3, 4); base.Name = "frmViewOrder"; this.Text = "ViewOrder"; base.IDoShownDelay += new ClientBaseForm.OnShownDelayEventHandler(this.frmViewOrder_IDoShownDelay); base.IDoLoadData += new ClientBaseForm.OnIDoLoadDataEventHandler(this.frmViewOrder_IDoLoadData); base.IDoFontChanged += new ClientBaseForm.OnFontChangedEventHandler(this.frmViewOrder_IDoFontChanged); base.IDoCustomSizeChanged += new ClientBaseForm.CustomSizeChangedEventHandler(this.frmViewOrder_IDoCustomSizeChanged); base.IDoSymbolLinked += new ClientBaseForm.OnSymbolLinkEventHandler(this.frmViewOrder_IDoSymbolLinked); base.VisibleChanged += new EventHandler(this.frmViewOrder_VisibleChanged); base.IDoMainFormKeyUp += new ClientBaseForm.OnFormKeyUpEventHandler(this.frmViewOrder_IDoMainFormKeyUp); base.IDoReActivated += new ClientBaseForm.OnReActiveEventHandler(this.frmViewOrder_IDoReActivated); base.Controls.SetChildIndex(this.ViewOrderBox, 0); base.Controls.SetChildIndex(this.intzaSum, 0); base.Controls.SetChildIndex(this.tStripTop, 0); base.Controls.SetChildIndex(this.OrderStatBox, 0); this.tStripTop.ResumeLayout(false); this.tStripTop.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(ucOrderStat)); ColumnItem columnItem = new ColumnItem(); ColumnItem columnItem2 = new ColumnItem(); ColumnItem columnItem3 = new ColumnItem(); ColumnItem columnItem4 = new ColumnItem(); ColumnItem columnItem5 = new ColumnItem(); ColumnItem columnItem6 = new ColumnItem(); ColumnItem columnItem7 = new ColumnItem(); ColumnItem columnItem8 = new ColumnItem(); ColumnItem columnItem9 = new ColumnItem(); ColumnItem columnItem10 = new ColumnItem(); ColumnItem columnItem11 = new ColumnItem(); ColumnItem columnItem12 = new ColumnItem(); ColumnItem columnItem13 = new ColumnItem(); this.lbLoading = new Label(); this.tStripMenu = new ToolStrip(); this.toolStripLabel1 = new ToolStripLabel(); this.tstbStartDate = new ToolStripLabel(); this.tsbtnSelStartDate = new ToolStripButton(); this.toolStripLabel2 = new ToolStripLabel(); this.tstbEndDate = new ToolStripLabel(); this.tsbtnSelEndDate = new ToolStripButton(); this.toolStripSeparator1 = new ToolStripSeparator(); this.tsbtnReload = new ToolStripButton(); this.monthCalendar1 = new MonthCalendar(); this.intzaSum = new SortGrid(); this.tableStockList = new SortGrid(); this.tableDetail = new SortGrid(); this.tStripMenu.SuspendLayout(); base.SuspendLayout(); this.lbLoading.AutoSize = true; this.lbLoading.BackColor = Color.FromArgb(64, 64, 64); this.lbLoading.BorderStyle = BorderStyle.FixedSingle; this.lbLoading.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 222); this.lbLoading.ForeColor = Color.Yellow; this.lbLoading.Location = new Point(352, 149); this.lbLoading.Name = "lbLoading"; this.lbLoading.Padding = new Padding(5, 3, 5, 3); this.lbLoading.Size = new Size(76, 23); this.lbLoading.TabIndex = 62; this.lbLoading.Text = "Loading ..."; this.lbLoading.Visible = false; this.tStripMenu.BackColor = Color.FromArgb(20, 20, 20); this.tStripMenu.GripStyle = ToolStripGripStyle.Hidden; this.tStripMenu.Items.AddRange(new ToolStripItem[] { this.toolStripLabel1, this.tstbStartDate, this.tsbtnSelStartDate, this.toolStripLabel2, this.tstbEndDate, this.tsbtnSelEndDate, this.toolStripSeparator1, this.tsbtnReload }); this.tStripMenu.Location = new Point(0, 0); this.tStripMenu.Name = "tStripMenu"; this.tStripMenu.Size = new Size(780, 25); this.tStripMenu.TabIndex = 63; this.tStripMenu.Text = "toolStrip1"; this.toolStripLabel1.ForeColor = Color.LightGray; this.toolStripLabel1.Margin = new Padding(5, 1, 0, 2); this.toolStripLabel1.Name = "toolStripLabel1"; this.toolStripLabel1.Size = new Size(64, 22); this.toolStripLabel1.Text = "Start Date :"; this.tstbStartDate.BackColor = Color.Gray; this.tstbStartDate.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tstbStartDate.ForeColor = Color.Yellow; this.tstbStartDate.Margin = new Padding(5, 1, 5, 2); this.tstbStartDate.Name = "tstbStartDate"; this.tstbStartDate.Size = new Size(55, 22); this.tstbStartDate.Text = "20090101"; this.tsbtnSelStartDate.DisplayStyle = ToolStripItemDisplayStyle.Image; this.tsbtnSelStartDate.Image = (Image)componentResourceManager.GetObject("tsbtnSelStartDate.Image"); this.tsbtnSelStartDate.ImageTransparentColor = Color.Magenta; this.tsbtnSelStartDate.Name = "tsbtnSelStartDate"; this.tsbtnSelStartDate.Size = new Size(23, 22); this.tsbtnSelStartDate.Text = "toolStripButton1"; this.tsbtnSelStartDate.ToolTipText = "Select Date"; this.tsbtnSelStartDate.Click += new EventHandler(this.tsbtnSelStartDate_Click); this.toolStripLabel2.ForeColor = Color.LightGray; this.toolStripLabel2.Name = "toolStripLabel2"; this.toolStripLabel2.Size = new Size(60, 22); this.toolStripLabel2.Text = "End Date :"; this.tstbEndDate.BackColor = Color.Gray; this.tstbEndDate.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tstbEndDate.ForeColor = Color.Yellow; this.tstbEndDate.Margin = new Padding(5, 1, 5, 2); this.tstbEndDate.Name = "tstbEndDate"; this.tstbEndDate.Size = new Size(55, 22); this.tstbEndDate.Text = "20090501"; this.tsbtnSelEndDate.DisplayStyle = ToolStripItemDisplayStyle.Image; this.tsbtnSelEndDate.Image = (Image)componentResourceManager.GetObject("tsbtnSelEndDate.Image"); this.tsbtnSelEndDate.ImageTransparentColor = Color.Magenta; this.tsbtnSelEndDate.Name = "tsbtnSelEndDate"; this.tsbtnSelEndDate.Size = new Size(23, 22); this.tsbtnSelEndDate.Text = "toolStripButton2"; this.tsbtnSelEndDate.ToolTipText = "Select Date"; this.tsbtnSelEndDate.Click += new EventHandler(this.tsbtnSelEndDate_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(6, 25); this.tsbtnReload.DisplayStyle = ToolStripItemDisplayStyle.Image; this.tsbtnReload.Image = Resources.refresh; this.tsbtnReload.ImageTransparentColor = Color.Magenta; this.tsbtnReload.Margin = new Padding(5, 1, 0, 2); this.tsbtnReload.Name = "tsbtnReload"; this.tsbtnReload.Size = new Size(23, 22); this.tsbtnReload.Text = "Reload"; this.tsbtnReload.Click += new EventHandler(this.tsbtnReload_Click); this.monthCalendar1.Location = new Point(142, 27); this.monthCalendar1.MaxDate = new DateTime(2020, 12, 31, 0, 0, 0, 0); this.monthCalendar1.MaxSelectionCount = 1; this.monthCalendar1.MinDate = new DateTime(2009, 1, 1, 0, 0, 0, 0); this.monthCalendar1.Name = "monthCalendar1"; this.monthCalendar1.TabIndex = 64; this.monthCalendar1.Visible = false; this.monthCalendar1.DateSelected += new DateRangeEventHandler(this.monthCalendar1_DateSelected); this.monthCalendar1.Leave += new EventHandler(this.monthCalendar1_Leave); this.intzaSum.AllowDrop = true; this.intzaSum.BackColor = Color.FromArgb(20, 20, 20); this.intzaSum.CanBlink = true; this.intzaSum.CanDrag = false; this.intzaSum.CanGetMouseMove = false; columnItem.Alignment = StringAlignment.Near; columnItem.BackColor = Color.FromArgb(64, 64, 64); columnItem.ColumnAlignment = StringAlignment.Center; columnItem.FontColor = Color.LightGray; columnItem.MyStyle = FontStyle.Regular; columnItem.Name = "item"; columnItem.Text = ""; columnItem.ValueFormat = FormatType.Text; columnItem.Visible = true; columnItem.Width = 30; columnItem2.Alignment = StringAlignment.Center; columnItem2.BackColor = Color.FromArgb(64, 64, 64); columnItem2.ColumnAlignment = StringAlignment.Center; columnItem2.FontColor = Color.Cyan; columnItem2.MyStyle = FontStyle.Regular; columnItem2.Name = "buy"; columnItem2.Text = "BUY"; columnItem2.ValueFormat = FormatType.Text; columnItem2.Visible = true; columnItem2.Width = 35; columnItem3.Alignment = StringAlignment.Center; columnItem3.BackColor = Color.FromArgb(64, 64, 64); columnItem3.ColumnAlignment = StringAlignment.Center; columnItem3.FontColor = Color.Magenta; columnItem3.MyStyle = FontStyle.Regular; columnItem3.Name = "sell"; columnItem3.Text = "SELL"; columnItem3.ValueFormat = FormatType.Text; columnItem3.Visible = true; columnItem3.Width = 35; this.intzaSum.Columns.Add(columnItem); this.intzaSum.Columns.Add(columnItem2); this.intzaSum.Columns.Add(columnItem3); this.intzaSum.CurrentScroll = 0; this.intzaSum.FocusItemIndex = -1; this.intzaSum.ForeColor = Color.Black; this.intzaSum.GridColor = Color.FromArgb(45, 45, 45); this.intzaSum.HeaderPctHeight = 80f; this.intzaSum.IsAutoRepaint = true; this.intzaSum.IsDrawFullRow = false; this.intzaSum.IsDrawGrid = true; this.intzaSum.IsDrawHeader = true; this.intzaSum.IsScrollable = true; this.intzaSum.Location = new Point(193, 214); this.intzaSum.MainColumn = ""; this.intzaSum.Name = "intzaSum"; this.intzaSum.Rows = 6; this.intzaSum.RowSelectColor = Color.FromArgb(95, 158, 160); this.intzaSum.RowSelectType = 0; this.intzaSum.RowsVisible = 6; this.intzaSum.Size = new Size(583, 99); this.intzaSum.SortColumnName = ""; this.intzaSum.SortType = SortType.Desc; this.intzaSum.TabIndex = 7; this.tableStockList.AllowDrop = true; this.tableStockList.BackColor = Color.FromArgb(20, 20, 20); this.tableStockList.CanBlink = true; this.tableStockList.CanDrag = false; this.tableStockList.CanGetMouseMove = false; columnItem4.Alignment = StringAlignment.Center; columnItem4.BackColor = Color.FromArgb(64, 64, 64); columnItem4.ColumnAlignment = StringAlignment.Center; columnItem4.FontColor = Color.LightGray; columnItem4.MyStyle = FontStyle.Regular; columnItem4.Name = "rowId"; columnItem4.Text = "No."; columnItem4.ValueFormat = FormatType.RecordNumber; columnItem4.Visible = true; columnItem4.Width = 20; columnItem5.Alignment = StringAlignment.Near; columnItem5.BackColor = Color.FromArgb(64, 64, 64); columnItem5.ColumnAlignment = StringAlignment.Center; columnItem5.FontColor = Color.LightGray; columnItem5.MyStyle = FontStyle.Regular; columnItem5.Name = "stock"; columnItem5.Text = "Symbol"; columnItem5.ValueFormat = FormatType.Text; columnItem5.Visible = true; columnItem5.Width = 50; columnItem6.Alignment = StringAlignment.Center; columnItem6.BackColor = Color.FromArgb(64, 64, 64); columnItem6.ColumnAlignment = StringAlignment.Center; columnItem6.FontColor = Color.LightGray; columnItem6.MyStyle = FontStyle.Regular; columnItem6.Name = "deals"; columnItem6.Text = "Trans"; columnItem6.ValueFormat = FormatType.Volume; columnItem6.Visible = true; columnItem6.Width = 30; this.tableStockList.Columns.Add(columnItem4); this.tableStockList.Columns.Add(columnItem5); this.tableStockList.Columns.Add(columnItem6); this.tableStockList.CurrentScroll = 0; this.tableStockList.FocusItemIndex = -1; this.tableStockList.ForeColor = Color.Black; this.tableStockList.GridColor = Color.FromArgb(45, 45, 45); this.tableStockList.HeaderPctHeight = 80f; this.tableStockList.IsAutoRepaint = true; this.tableStockList.IsDrawFullRow = false; this.tableStockList.IsDrawGrid = true; this.tableStockList.IsDrawHeader = true; this.tableStockList.IsScrollable = true; this.tableStockList.Location = new Point(0, 28); this.tableStockList.MainColumn = ""; this.tableStockList.Name = "tableStockList"; this.tableStockList.Rows = 0; this.tableStockList.RowSelectColor = Color.FromArgb(95, 158, 160); this.tableStockList.RowSelectType = 3; this.tableStockList.RowsVisible = 0; this.tableStockList.Size = new Size(193, 284); this.tableStockList.SortColumnName = ""; this.tableStockList.SortType = SortType.Desc; this.tableStockList.TabIndex = 1; this.tableStockList.TableMouseClick += new SortGrid.TableMouseClickEventHandler(this.tableStockList_TableMouseClick); this.tableDetail.AllowDrop = true; this.tableDetail.BackColor = Color.FromArgb(20, 20, 20); this.tableDetail.CanBlink = true; this.tableDetail.CanDrag = false; this.tableDetail.CanGetMouseMove = false; columnItem7.Alignment = StringAlignment.Center; columnItem7.BackColor = Color.FromArgb(64, 64, 64); columnItem7.ColumnAlignment = StringAlignment.Center; columnItem7.FontColor = Color.LightGray; columnItem7.MyStyle = FontStyle.Regular; columnItem7.Name = "buyDeal"; columnItem7.Text = "Trans"; columnItem7.ValueFormat = FormatType.Volume; columnItem7.Visible = true; columnItem7.Width = 8; columnItem8.Alignment = StringAlignment.Far; columnItem8.BackColor = Color.FromArgb(64, 64, 64); columnItem8.ColumnAlignment = StringAlignment.Center; columnItem8.FontColor = Color.LightGray; columnItem8.MyStyle = FontStyle.Regular; columnItem8.Name = "buyVol"; columnItem8.Text = "BuyVol"; columnItem8.ValueFormat = FormatType.Volume; columnItem8.Visible = true; columnItem8.Width = 17; columnItem9.Alignment = StringAlignment.Far; columnItem9.BackColor = Color.FromArgb(64, 64, 64); columnItem9.ColumnAlignment = StringAlignment.Center; columnItem9.FontColor = Color.LightGray; columnItem9.MyStyle = FontStyle.Regular; columnItem9.Name = "buyMatchVol"; columnItem9.Text = "Matched"; columnItem9.ValueFormat = FormatType.Volume; columnItem9.Visible = true; columnItem9.Width = 17; columnItem10.Alignment = StringAlignment.Center; columnItem10.BackColor = Color.FromArgb(64, 64, 64); columnItem10.ColumnAlignment = StringAlignment.Center; columnItem10.FontColor = Color.Yellow; columnItem10.MyStyle = FontStyle.Regular; columnItem10.Name = "price"; columnItem10.Text = "Price"; columnItem10.ValueFormat = FormatType.Price; columnItem10.Visible = true; columnItem10.Width = 16; columnItem11.Alignment = StringAlignment.Far; columnItem11.BackColor = Color.FromArgb(64, 64, 64); columnItem11.ColumnAlignment = StringAlignment.Center; columnItem11.FontColor = Color.LightGray; columnItem11.MyStyle = FontStyle.Regular; columnItem11.Name = "sellMatchVol"; columnItem11.Text = "Matched"; columnItem11.ValueFormat = FormatType.Volume; columnItem11.Visible = true; columnItem11.Width = 17; columnItem12.Alignment = StringAlignment.Far; columnItem12.BackColor = Color.FromArgb(64, 64, 64); columnItem12.ColumnAlignment = StringAlignment.Center; columnItem12.FontColor = Color.LightGray; columnItem12.MyStyle = FontStyle.Regular; columnItem12.Name = "sellVol"; columnItem12.Text = "SellVol"; columnItem12.ValueFormat = FormatType.Volume; columnItem12.Visible = true; columnItem12.Width = 17; columnItem13.Alignment = StringAlignment.Center; columnItem13.BackColor = Color.FromArgb(64, 64, 64); columnItem13.ColumnAlignment = StringAlignment.Center; columnItem13.FontColor = Color.LightGray; columnItem13.MyStyle = FontStyle.Regular; columnItem13.Name = "sellDeal"; columnItem13.Text = "Trans"; columnItem13.ValueFormat = FormatType.Volume; columnItem13.Visible = true; columnItem13.Width = 8; this.tableDetail.Columns.Add(columnItem7); this.tableDetail.Columns.Add(columnItem8); this.tableDetail.Columns.Add(columnItem9); this.tableDetail.Columns.Add(columnItem10); this.tableDetail.Columns.Add(columnItem11); this.tableDetail.Columns.Add(columnItem12); this.tableDetail.Columns.Add(columnItem13); this.tableDetail.CurrentScroll = 0; this.tableDetail.FocusItemIndex = -1; this.tableDetail.ForeColor = Color.Black; this.tableDetail.GridColor = Color.FromArgb(45, 45, 45); this.tableDetail.HeaderPctHeight = 80f; this.tableDetail.IsAutoRepaint = true; this.tableDetail.IsDrawFullRow = false; this.tableDetail.IsDrawGrid = true; this.tableDetail.IsDrawHeader = true; this.tableDetail.IsScrollable = true; this.tableDetail.Location = new Point(186, 28); this.tableDetail.MainColumn = ""; this.tableDetail.Name = "tableDetail"; this.tableDetail.Rows = 0; this.tableDetail.RowSelectColor = Color.FromArgb(95, 158, 160); this.tableDetail.RowSelectType = 0; this.tableDetail.RowsVisible = 0; this.tableDetail.Size = new Size(591, 186); this.tableDetail.SortColumnName = ""; this.tableDetail.SortType = SortType.Desc; this.tableDetail.TabIndex = 2; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; this.BackColor = SystemColors.ControlDark; base.Controls.Add(this.monthCalendar1); base.Controls.Add(this.tStripMenu); base.Controls.Add(this.lbLoading); base.Controls.Add(this.intzaSum); base.Controls.Add(this.tableStockList); base.Controls.Add(this.tableDetail); base.Margin = new Padding(3, 4, 3, 4); base.Name = "ucOrderStat"; base.Size = new Size(780, 313); this.tStripMenu.ResumeLayout(false); this.tStripMenu.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
public static PlotModel Create(DoubleRange?range, string title, double[] x, double[] y, bool discrete) { var plotModel = new PlotModel(); plotModel.Series.Clear(); plotModel.Axes.Clear(); double ymin = y.FirstOrDefault(a => !Double.IsNaN(a) && !Double.IsInfinity(a)); double ymax = ymin; for (int i = 0; i < y.Length; i++) { if (Double.IsNaN(y[i]) || Double.IsInfinity(y[i])) { continue; } if (y[i] > ymax) { ymax = y[i]; } if (y[i] < ymin) { ymin = y[i]; } } double maxGrace = ymax * 0.1; double minGrace = ymin * 0.1; if (!discrete) { var xAxis = new OxyPlot.Axes.LinearAxis() { Position = AxisPosition.Bottom, Minimum = range.Value.Min, Maximum = range.Value.Max, Key = "xAxis", MajorGridlineStyle = LineStyle.Solid, MinorGridlineStyle = LineStyle.Dot, IntervalLength = 80 }; var yAxis = new LinearAxis() { Position = AxisPosition.Left, Minimum = ymin - minGrace, Maximum = ymax + maxGrace, Key = "yAxis", MajorGridlineStyle = LineStyle.Solid, MinorGridlineStyle = LineStyle.Dot, Title = title }; plotModel.Axes.Add(xAxis); plotModel.Axes.Add(yAxis); var lineSeries = new LineSeries { YAxisKey = yAxis.Key, XAxisKey = xAxis.Key, StrokeThickness = 2, MarkerSize = 3, MarkerStroke = OxyColor.FromRgb(0, 0, 0), MarkerType = MarkerType.None, }; for (int i = 0; i < x.Length; i++) { if (Double.IsNaN(y[i]) || Double.IsInfinity(y[i])) { continue; } lineSeries.Points.Add(new DataPoint(x[i], y[i])); } plotModel.Series.Add(lineSeries); } else { var xAxis = new OxyPlot.Axes.CategoryAxis() { Position = AxisPosition.Bottom, Key = "xAxis", MajorGridlineStyle = LineStyle.Solid, MinorGridlineStyle = LineStyle.Dot, }; var yAxis = new LinearAxis() { Position = AxisPosition.Left, Minimum = ymin - minGrace, Maximum = ymax + maxGrace, Key = "yAxis", MajorGridlineStyle = LineStyle.Solid, MinorGridlineStyle = LineStyle.Dot, Title = title }; plotModel.Axes.Add(xAxis); plotModel.Axes.Add(yAxis); var boxSeries = new ColumnSeries { YAxisKey = yAxis.Key, XAxisKey = xAxis.Key, StrokeThickness = 2, ColumnWidth = 1, }; for (int i = 0; i < x.Length; i++) { xAxis.Labels.Add(x[i].ToString("G2")); var item = new ColumnItem(y[i]); boxSeries.Items.Add(item); } plotModel.Series.Add(boxSeries); } //var formattable = instance as IFormattable; //if (formattable != null) //{ // plotModel.Title = formattable.ToString("G3", CultureInfo.CurrentUICulture); //} //else //{ // plotModel.Title = instance.ToString(); //} plotModel.TitlePadding = 2; plotModel.TitleFontSize = 15; plotModel.TitleFontWeight = 1; plotModel.TitlePadding = 2; return(plotModel); }
private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmBatchOrder)); ColumnItem columnItem = new ColumnItem(); ColumnItem columnItem2 = new ColumnItem(); ColumnItem columnItem3 = new ColumnItem(); ColumnItem columnItem4 = new ColumnItem(); ColumnItem columnItem5 = new ColumnItem(); ColumnItem columnItem6 = new ColumnItem(); ColumnItem columnItem7 = new ColumnItem(); ColumnItem columnItem8 = new ColumnItem(); ColumnItem columnItem9 = new ColumnItem(); ColumnItem columnItem10 = new ColumnItem(); ColumnItem columnItem11 = new ColumnItem(); ColumnItem columnItem12 = new ColumnItem(); this.toolStrip1 = new ToolStrip(); this.tsbtnClearAll = new ToolStripButton(); this.toolStripSeparator4 = new ToolStripSeparator(); this.tsbtnClear = new ToolStripButton(); this.tsImportCSV = new ToolStripButton(); this.toolStripSeparator6 = new ToolStripSeparator(); this.tsExportCSV = new ToolStripButton(); this.toolStripSeparator1 = new ToolStripSeparator(); this.tsSendSelected = new ToolStripButton(); this.toolStripSeparator3 = new ToolStripSeparator(); this.tsbtnSendAllOrder = new ToolStripButton(); this.toolStripSeparator2 = new ToolStripSeparator(); this.tsbtnValidateOrder = new ToolStripButton(); this.toolStripSeparator5 = new ToolStripSeparator(); this.tsbtnStopSending = new ToolStripButton(); this.cbText = new ComboBox(); this.orderQueueDS1 = new OrderQueueDS(); this.statusStrip1 = new StatusStrip(); this.toolStripStatusLabel2 = new ToolStripStatusLabel(); this.toolStripStatusLabel1 = new ToolStripStatusLabel(); this.toolStripStatusLabel4 = new ToolStripStatusLabel(); this.toolStripStatusLabel3 = new ToolStripStatusLabel(); this.tslbTotAmount = new ToolStripStatusLabel(); this.sortGrid1 = new SortGrid(); this.toolStrip1.SuspendLayout(); ((ISupportInitialize)this.orderQueueDS1).BeginInit(); this.statusStrip1.SuspendLayout(); base.SuspendLayout(); this.toolStrip1.BackColor = Color.FromArgb(30, 30, 30); this.toolStrip1.GripMargin = new Padding(0); this.toolStrip1.GripStyle = ToolStripGripStyle.Hidden; this.toolStrip1.Items.AddRange(new ToolStripItem[] { this.tsbtnClearAll, this.toolStripSeparator4, this.tsbtnClear, this.tsImportCSV, this.toolStripSeparator6, this.tsExportCSV, this.toolStripSeparator1, this.tsSendSelected, this.toolStripSeparator3, this.tsbtnSendAllOrder, this.toolStripSeparator2, this.tsbtnValidateOrder, this.toolStripSeparator5, this.tsbtnStopSending }); this.toolStrip1.Location = new Point(0, 0); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Padding = new Padding(1, 1, 1, 2); this.toolStrip1.RenderMode = ToolStripRenderMode.Professional; this.toolStrip1.Size = new Size(685, 26); this.toolStrip1.TabIndex = 8; this.tsbtnClearAll.Alignment = ToolStripItemAlignment.Right; this.tsbtnClearAll.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnClearAll.ForeColor = Color.WhiteSmoke; this.tsbtnClearAll.ImageTransparentColor = Color.Magenta; this.tsbtnClearAll.Name = "tsbtnClearAll"; this.tsbtnClearAll.Size = new Size(55, 20); this.tsbtnClearAll.Text = "Clear All"; this.tsbtnClearAll.Click += new EventHandler(this.tsbtnRemoveAll_Click); this.toolStripSeparator4.Alignment = ToolStripItemAlignment.Right; this.toolStripSeparator4.Name = "toolStripSeparator4"; this.toolStripSeparator4.Size = new Size(6, 23); this.tsbtnClear.Alignment = ToolStripItemAlignment.Right; this.tsbtnClear.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnClear.ForeColor = Color.WhiteSmoke; this.tsbtnClear.ImageTransparentColor = Color.Magenta; this.tsbtnClear.Name = "tsbtnClear"; this.tsbtnClear.Size = new Size(38, 20); this.tsbtnClear.Text = "Clear"; this.tsbtnClear.ToolTipText = "Clear [Ctrl+Insert]"; this.tsbtnClear.Click += new EventHandler(this.tsbtnRemove_Click); this.tsImportCSV.ForeColor = Color.WhiteSmoke; this.tsImportCSV.Image = (Image)componentResourceManager.GetObject("tsImportCSV.Image"); this.tsImportCSV.ImageTransparentColor = Color.Magenta; this.tsImportCSV.Margin = new Padding(5, 1, 0, 2); this.tsImportCSV.Name = "tsImportCSV"; this.tsImportCSV.Size = new Size(96, 20); this.tsImportCSV.Text = "Import Order"; this.tsImportCSV.Click += new EventHandler(this.tsImportCSV_Click); this.toolStripSeparator6.Name = "toolStripSeparator6"; this.toolStripSeparator6.Size = new Size(6, 23); this.tsExportCSV.ForeColor = Color.WhiteSmoke; this.tsExportCSV.Image = (Image)componentResourceManager.GetObject("tsExportCSV.Image"); this.tsExportCSV.ImageTransparentColor = Color.Magenta; this.tsExportCSV.Margin = new Padding(2, 1, 0, 2); this.tsExportCSV.Name = "tsExportCSV"; this.tsExportCSV.Size = new Size(93, 20); this.tsExportCSV.Text = "Export Order"; this.tsExportCSV.Click += new EventHandler(this.tsExportCSV_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(6, 23); this.tsSendSelected.ForeColor = Color.WhiteSmoke; this.tsSendSelected.ImageTransparentColor = Color.Magenta; this.tsSendSelected.Margin = new Padding(20, 1, 0, 2); this.tsSendSelected.Name = "tsSendSelected"; this.tsSendSelected.Size = new Size(84, 20); this.tsSendSelected.Text = "Send Selected"; this.tsSendSelected.Click += new EventHandler(this.tsSendSelected_Click); this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new Size(6, 23); this.tsbtnSendAllOrder.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnSendAllOrder.ForeColor = Color.WhiteSmoke; this.tsbtnSendAllOrder.ImageTransparentColor = Color.Magenta; this.tsbtnSendAllOrder.Margin = new Padding(2, 1, 0, 2); this.tsbtnSendAllOrder.Name = "tsbtnSendAllOrder"; this.tsbtnSendAllOrder.Size = new Size(54, 20); this.tsbtnSendAllOrder.Text = "Send All"; this.tsbtnSendAllOrder.Click += new EventHandler(this.tsbtnSendAllOrder_Click); this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new Size(6, 23); this.tsbtnValidateOrder.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnValidateOrder.ForeColor = Color.WhiteSmoke; this.tsbtnValidateOrder.Image = (Image)componentResourceManager.GetObject("tsbtnValidateOrder.Image"); this.tsbtnValidateOrder.ImageTransparentColor = Color.Magenta; this.tsbtnValidateOrder.Margin = new Padding(2, 1, 0, 2); this.tsbtnValidateOrder.Name = "tsbtnValidateOrder"; this.tsbtnValidateOrder.Size = new Size(86, 20); this.tsbtnValidateOrder.Text = "Validate Order"; this.tsbtnValidateOrder.Click += new EventHandler(this.tsbtnValidateOrder_Click); this.toolStripSeparator5.Name = "toolStripSeparator5"; this.toolStripSeparator5.Size = new Size(6, 23); this.tsbtnStopSending.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnStopSending.ForeColor = Color.WhiteSmoke; this.tsbtnStopSending.Image = (Image)componentResourceManager.GetObject("tsbtnStopSending.Image"); this.tsbtnStopSending.ImageTransparentColor = Color.Magenta; this.tsbtnStopSending.Name = "tsbtnStopSending"; this.tsbtnStopSending.Size = new Size(35, 20); this.tsbtnStopSending.Text = "Stop"; this.tsbtnStopSending.Click += new EventHandler(this.tsbtnStopSending_Click); this.cbText.AutoCompleteMode = AutoCompleteMode.SuggestAppend; this.cbText.AutoCompleteSource = AutoCompleteSource.ListItems; this.cbText.FlatStyle = FlatStyle.Flat; this.cbText.FormattingEnabled = true; this.cbText.Location = new Point(581, 373); this.cbText.Margin = new Padding(0); this.cbText.MaxDropDownItems = 10; this.cbText.MaxLength = 20; this.cbText.Name = "cbText"; this.cbText.Size = new Size(95, 21); this.cbText.TabIndex = 11; this.cbText.Visible = false; this.cbText.Leave += new EventHandler(this.cbText_Leave); this.cbText.KeyPress += new KeyPressEventHandler(this.cbText_KeyPress); this.cbText.KeyUp += new KeyEventHandler(this.cbText_KeyUp); this.cbText.KeyDown += new KeyEventHandler(this.cbStock_KeyDown); this.cbText.TextChanged += new EventHandler(this.cbText_TextChanged); this.orderQueueDS1.DataSetName = "OrderQueueDS"; this.orderQueueDS1.SchemaSerializationMode = SchemaSerializationMode.IncludeSchema; this.statusStrip1.BackColor = Color.FromArgb(30, 30, 30); this.statusStrip1.Items.AddRange(new ToolStripItem[] { this.toolStripStatusLabel2, this.toolStripStatusLabel1, this.toolStripStatusLabel4, this.toolStripStatusLabel3, this.tslbTotAmount }); this.statusStrip1.Location = new Point(0, 414); this.statusStrip1.Name = "statusStrip1"; this.statusStrip1.Size = new Size(685, 22); this.statusStrip1.TabIndex = 12; this.statusStrip1.Text = "statusStrip1"; this.toolStripStatusLabel2.BackColor = Color.Transparent; this.toolStripStatusLabel2.DisplayStyle = ToolStripItemDisplayStyle.Text; this.toolStripStatusLabel2.ForeColor = Color.Violet; this.toolStripStatusLabel2.LinkColor = Color.Blue; this.toolStripStatusLabel2.Margin = new Padding(5, 3, 0, 2); this.toolStripStatusLabel2.Name = "toolStripStatusLabel2"; this.toolStripStatusLabel2.Size = new Size(115, 17); this.toolStripStatusLabel2.Text = "[ Home ] Select Item"; this.toolStripStatusLabel2.Visible = false; this.toolStripStatusLabel1.BackColor = Color.Transparent; this.toolStripStatusLabel1.DisplayStyle = ToolStripItemDisplayStyle.Text; this.toolStripStatusLabel1.ForeColor = SystemColors.ActiveCaption; this.toolStripStatusLabel1.LinkColor = Color.Blue; this.toolStripStatusLabel1.Margin = new Padding(5, 3, 0, 2); this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; this.toolStripStatusLabel1.Size = new Size(177, 17); this.toolStripStatusLabel1.Text = "[ Space/Double Click ] Edit Item"; this.toolStripStatusLabel4.BackColor = Color.Transparent; this.toolStripStatusLabel4.Name = "toolStripStatusLabel4"; this.toolStripStatusLabel4.Size = new Size(237, 17); this.toolStripStatusLabel4.Spring = true; this.toolStripStatusLabel3.BackColor = Color.Transparent; this.toolStripStatusLabel3.ForeColor = Color.Gainsboro; this.toolStripStatusLabel3.Name = "toolStripStatusLabel3"; this.toolStripStatusLabel3.Size = new Size(87, 17); this.toolStripStatusLabel3.Text = "Total Amount :"; this.tslbTotAmount.ForeColor = Color.Yellow; this.tslbTotAmount.Name = "tslbTotAmount"; this.tslbTotAmount.Size = new Size(13, 17); this.tslbTotAmount.Text = "0"; this.sortGrid1.AllowDrop = true; this.sortGrid1.BackColor = Color.FromArgb(30, 30, 30); this.sortGrid1.CanBlink = false; this.sortGrid1.CanDrag = false; this.sortGrid1.CanGetMouseMove = false; columnItem.Alignment = StringAlignment.Center; columnItem.BackColor = Color.FromArgb(64, 64, 64); columnItem.ColumnAlignment = StringAlignment.Center; columnItem.FontColor = Color.LightGray; columnItem.MyStyle = FontStyle.Regular; columnItem.Name = "no"; columnItem.Text = "#"; columnItem.ValueFormat = FormatType.RecordNumber; columnItem.Visible = true; columnItem.Width = 3; columnItem2.Alignment = StringAlignment.Center; columnItem2.BackColor = Color.FromArgb(64, 64, 64); columnItem2.ColumnAlignment = StringAlignment.Center; columnItem2.FontColor = Color.LightGray; columnItem2.MyStyle = FontStyle.Regular; columnItem2.Name = "checkbox"; columnItem2.Text = ""; columnItem2.ValueFormat = FormatType.CheckBox; columnItem2.Visible = true; columnItem2.Width = 3; columnItem3.Alignment = StringAlignment.Center; columnItem3.BackColor = Color.FromArgb(64, 64, 64); columnItem3.ColumnAlignment = StringAlignment.Center; columnItem3.FontColor = Color.LightGray; columnItem3.MyStyle = FontStyle.Regular; columnItem3.Name = "side"; columnItem3.Text = "B/S"; columnItem3.ValueFormat = FormatType.Text; columnItem3.Visible = true; columnItem3.Width = 5; columnItem4.Alignment = StringAlignment.Near; columnItem4.BackColor = Color.FromArgb(64, 64, 64); columnItem4.ColumnAlignment = StringAlignment.Center; columnItem4.FontColor = Color.LightGray; columnItem4.MyStyle = FontStyle.Regular; columnItem4.Name = "stock"; columnItem4.Text = "Stock"; columnItem4.ValueFormat = FormatType.Text; columnItem4.Visible = true; columnItem4.Width = 13; columnItem5.Alignment = StringAlignment.Center; columnItem5.BackColor = Color.FromArgb(64, 64, 64); columnItem5.ColumnAlignment = StringAlignment.Center; columnItem5.FontColor = Color.LightGray; columnItem5.MyStyle = FontStyle.Regular; columnItem5.Name = "ttf"; columnItem5.Text = "TTF"; columnItem5.ValueFormat = FormatType.Text; columnItem5.Visible = true; columnItem5.Width = 5; columnItem6.Alignment = StringAlignment.Far; columnItem6.BackColor = Color.FromArgb(64, 64, 64); columnItem6.ColumnAlignment = StringAlignment.Center; columnItem6.FontColor = Color.LightGray; columnItem6.MyStyle = FontStyle.Regular; columnItem6.Name = "volume"; columnItem6.Text = "Volume"; columnItem6.ValueFormat = FormatType.Text; columnItem6.Visible = true; columnItem6.Width = 10; columnItem7.Alignment = StringAlignment.Far; columnItem7.BackColor = Color.FromArgb(64, 64, 64); columnItem7.ColumnAlignment = StringAlignment.Center; columnItem7.FontColor = Color.LightGray; columnItem7.MyStyle = FontStyle.Regular; columnItem7.Name = "price"; columnItem7.Text = "Price"; columnItem7.ValueFormat = FormatType.Text; columnItem7.Visible = true; columnItem7.Width = 9; columnItem8.Alignment = StringAlignment.Center; columnItem8.BackColor = Color.FromArgb(64, 64, 64); columnItem8.ColumnAlignment = StringAlignment.Center; columnItem8.FontColor = Color.LightGray; columnItem8.MyStyle = FontStyle.Regular; columnItem8.Name = "condition"; columnItem8.Text = "Cond"; columnItem8.ValueFormat = FormatType.Text; columnItem8.Visible = true; columnItem8.Width = 6; columnItem9.Alignment = StringAlignment.Far; columnItem9.BackColor = Color.FromArgb(64, 64, 64); columnItem9.ColumnAlignment = StringAlignment.Center; columnItem9.FontColor = Color.LightGray; columnItem9.MyStyle = FontStyle.Regular; columnItem9.Name = "pubvol"; columnItem9.Text = "P/B Vol"; columnItem9.ValueFormat = FormatType.Text; columnItem9.Visible = true; columnItem9.Width = 10; columnItem10.Alignment = StringAlignment.Center; columnItem10.BackColor = Color.FromArgb(64, 64, 64); columnItem10.ColumnAlignment = StringAlignment.Center; columnItem10.FontColor = Color.LightGray; columnItem10.MyStyle = FontStyle.Regular; columnItem10.Name = "deposit"; columnItem10.Text = "Dep"; columnItem10.ValueFormat = FormatType.Text; columnItem10.Visible = true; columnItem10.Width = 4; columnItem11.Alignment = StringAlignment.Far; columnItem11.BackColor = Color.FromArgb(64, 64, 64); columnItem11.ColumnAlignment = StringAlignment.Center; columnItem11.FontColor = Color.LightGray; columnItem11.MyStyle = FontStyle.Regular; columnItem11.Name = "amount"; columnItem11.Text = "Amount"; columnItem11.ValueFormat = FormatType.Price; columnItem11.Visible = true; columnItem11.Width = 12; columnItem12.Alignment = StringAlignment.Near; columnItem12.BackColor = Color.FromArgb(64, 64, 64); columnItem12.ColumnAlignment = StringAlignment.Center; columnItem12.FontColor = Color.LightGray; columnItem12.MyStyle = FontStyle.Regular; columnItem12.Name = "processstatus"; columnItem12.Text = "Status"; columnItem12.ValueFormat = FormatType.Text; columnItem12.Visible = true; columnItem12.Width = 20; this.sortGrid1.Columns.Add(columnItem); this.sortGrid1.Columns.Add(columnItem2); this.sortGrid1.Columns.Add(columnItem3); this.sortGrid1.Columns.Add(columnItem4); this.sortGrid1.Columns.Add(columnItem5); this.sortGrid1.Columns.Add(columnItem6); this.sortGrid1.Columns.Add(columnItem7); this.sortGrid1.Columns.Add(columnItem8); this.sortGrid1.Columns.Add(columnItem9); this.sortGrid1.Columns.Add(columnItem10); this.sortGrid1.Columns.Add(columnItem11); this.sortGrid1.Columns.Add(columnItem12); this.sortGrid1.CurrentScroll = 0; this.sortGrid1.Dock = DockStyle.Fill; this.sortGrid1.FocusItemIndex = -1; this.sortGrid1.ForeColor = Color.Black; this.sortGrid1.GridColor = Color.FromArgb(45, 45, 45); this.sortGrid1.HeaderPctHeight = 80f; this.sortGrid1.IsAutoRepaint = true; this.sortGrid1.IsDrawFullRow = false; this.sortGrid1.IsDrawGrid = true; this.sortGrid1.IsDrawHeader = true; this.sortGrid1.IsScrollable = true; this.sortGrid1.Location = new Point(0, 26); this.sortGrid1.MainColumn = ""; this.sortGrid1.Name = "sortGrid1"; this.sortGrid1.Rows = 50; this.sortGrid1.RowSelectColor = Color.Navy; this.sortGrid1.RowSelectType = 3; this.sortGrid1.RowsVisible = 50; this.sortGrid1.Size = new Size(685, 388); this.sortGrid1.SortColumnName = ""; this.sortGrid1.SortType = SortType.Desc; this.sortGrid1.TabIndex = 17; this.sortGrid1.TableMouseClick += new SortGrid.TableMouseClickEventHandler(this.sortGrid1_TableMouseClick); this.sortGrid1.TableMouseDoubleClick += new SortGrid.TableMouseDoubleClickEventHandler(this.sortGrid1_TableMouseDoubleClick); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; this.BackColor = Color.FromArgb(20, 20, 20); base.ClientSize = new Size(685, 436); base.Controls.Add(this.sortGrid1); base.Controls.Add(this.cbText); base.Controls.Add(this.statusStrip1); base.Controls.Add(this.toolStrip1); base.KeyPreview = true; base.Name = "frmBatchOrder"; this.Text = "Smart Order Queue"; base.IDoShownDelay += new ClientBaseForm.OnShownDelayEventHandler(this.frmSmartOrder_IDoShownDelay); base.IDoLoadData += new ClientBaseForm.OnIDoLoadDataEventHandler(this.frmSmartOrder_IDoLoadData); base.IDoFontChanged += new ClientBaseForm.OnFontChangedEventHandler(this.frmSmartOrder_IDoFontChanged); base.IDoCustomSizeChanged += new ClientBaseForm.CustomSizeChangedEventHandler(this.frmSmartOrder_IDoCustomSizeChanged); base.IDoMainFormKeyUp += new ClientBaseForm.OnFormKeyUpEventHandler(this.frmSmartOrder_IDoMainFormKeyUp); base.IDoReActivated += new ClientBaseForm.OnReActiveEventHandler(this.frmSmartOrder_IDoReActivated); base.Controls.SetChildIndex(this.toolStrip1, 0); base.Controls.SetChildIndex(this.statusStrip1, 0); base.Controls.SetChildIndex(this.cbText, 0); base.Controls.SetChildIndex(this.sortGrid1, 0); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); ((ISupportInitialize)this.orderQueueDS1).EndInit(); this.statusStrip1.ResumeLayout(false); this.statusStrip1.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
private void drawMap(Graphics gfx, int blockSize, int byteNum) { if (byteNum == -3) { return; } // draw map SolidBrush brush = new SolidBrush(Color.Black); SolidBrush poiBrush = new SolidBrush(Color.Black); pois = new List <MapPointOfInterest>(); int i, c, r; byte b; float h; float scale = 255 / (maxHeight - minHeight); // selection lists List <int> selectedCellsColumn = new List <int>(); if (highlightColumnsCheckbox.Checked) { foreach (ListViewItem item in columnTable.SelectedItems) { selectedCellsColumn.Add((item.Tag as ColumnItem).ID); } } List <int> selectedCellsBlock = new List <int>(); if (highlightBlockTexCheckbox.Checked) { foreach (ListViewItem item in blockTexTable.SelectedItems) { int id = (item.Tag as BlockTexItem).ID; // find all columns using this id foreach (KeyValuePair <int, ColumnItem> cPair in columnItems) { ColumnItem cItem = cPair.Value; if (cItem.FloorTextureID == id || cItem.A == id || cItem.B == id || cItem.C == id || cItem.D == id || cItem.E == id || cItem.F == id || cItem.G == id || cItem.H == id) { selectedCellsBlock.Add(cItem.ID); } } } } for (int y = 0; y < 160; y++) { for (int x = 0; x < 256; x++) { int baseOffset = 404620 + (x + y * 256) * 12; if (byteNum == -2) { int cid = BitConverter.ToInt16(data, baseOffset + 4); r = (data[baseOffset + 10] >> 4); if (cid < 0) { cid = columnItems[-cid].FloorTextureID; } gfx.DrawImage(atlas.Get(cid, r), x * blockSize, y * blockSize, blockSize, blockSize); // collect points of interest int poiValue = (data[baseOffset + 7] << 8) | data[baseOffset + 6]; if (poiValue > 0) { MapPointOfInterest poi = new MapPointOfInterest(); poi.Position = new PointF(x * blockSize + blockSize * 0.5f, y * blockSize + blockSize * 0.5f); poi.Value = poiValue; pois.Add(poi); } } else { if (byteNum >= 0) { // simple byte map (NOTE: some planes contain values invisible in grayscale) i = baseOffset + byteNum; b = data[i]; brush.Color = Color.FromArgb(255, b, b, b); } else { // normalized heightmap i = baseOffset + 2; h = data[i] / 256 + data[i + 1] - minHeight; c = (int)Math.Floor(h * scale); c = Math.Max(0, Math.Min(255, c)); brush.Color = Color.FromArgb(255, c, c, c); // special areas /*if (data[baseOffset + 10] > 0) * { * brush.Color = Color.Red; * }*/ } if (selectedCellsColumn.Count > 0 || selectedCellsBlock.Count > 0) { // get map column index at current position int cid = BitConverter.ToInt16(data, baseOffset + 4); if (cid < 0) { if (selectedCellsColumn.Contains(-cid)) { brush.Color = Color.Purple; } if (selectedCellsBlock.Contains(-cid)) { brush.Color = Color.Violet; } } } gfx.FillRectangle(brush, x * blockSize, y * blockSize, blockSize, blockSize); } } } foreach (MapPointOfInterest poi in pois) { poiBrush.Color = Color.FromArgb(20, 255, 255, 0); //gfx.FillRectangle(Brushes.Yellow, x * blockSize, y * blockSize, blockSize, blockSize); gfx.FillCircle(poiBrush, poi.Position.X, poi.Position.Y, 3.0f * blockSize); SizeF ts = gfx.MeasureString(poi.Value.ToString(), SystemFonts.DefaultFont); gfx.DrawString(poi.Value.ToString(), SystemFonts.DefaultFont, Brushes.Black, poi.Position.X - ts.Width * 0.5f + 1, poi.Position.Y - ts.Height * 0.5f + 1); gfx.DrawString(poi.Value.ToString(), SystemFonts.DefaultFont, Brushes.White, poi.Position.X - ts.Width * 0.5f, poi.Position.Y - ts.Height * 0.5f); } }
/* * private void ResetChart() { * List<ChartEntry> entries = new List<ChartEntry>(); * foreach (UserInputDistressLevel timestamp in FilteredHistory) { * Magnitude.TryGetValue(timestamp.DistressLevelType, out int value); * entries.Add(new ChartEntry(value) { * Label = "", * ValueLabel = timestamp.StartTime.ToString(), * Color = SKColor.Parse("#b455b6") * }); * } * LineChart = new LineChart() { Entries = entries }; * } */ /* * private void ResetChart() { * string level; * string entryDate; * string entryTime; * string labelEntry; * List<ChartEntry> entries = new List<ChartEntry>(); * foreach (UserInputDistressLevel timestamp in FilteredHistory) { * Magnitude.TryGetValue(timestamp.DistressLevelType, out int value); * //assign appropriate distress colour level to entry * switch (value) { * case 4: * //Acute Red * level = "#ff0000"; * break; * case 3: * //Moderate Orange * //level = "#f05828"; * level = "#ffa500"; * break; * case 2: * //Mild Yellow * //level = "f8d90f"; * level = "#ffff00"; * break; * case 1: * //calm - does not have a magniture but color is light green (Neon) * //level = "#8dc63f"; * //level = "#32cd32"; * level = "#39ff14"; * break; * default: * level = "#b455b6"; * break; * } * entryTime = timestamp.StartTime.ToString("hh:mm tt"); * entryDate = timestamp.StartTime.ToString("dd MMM"); //Gets short Date * labelEntry = entryTime + " " + entryDate; * entries.Add(new ChartEntry(value) { * //Label = "", Label appears underneath Bar Chart as the magnitude of the Bar * Label = value.ToString(), * TextColor = SKColor.Parse("#ffffff"), * //ValueLabel = timestamp.StartTime.ToString(), * //ValueLabel appears on top of the Bar as timestamp * ValueLabel = labelEntry, * ValueLabelColor = SKColor.Parse("#ffffff"), * //Color = SKColor.Parse("#b455b6") * Color = SKColor.Parse(level) * }); * } * //LineChart = new LineChart() { Entries = entries, MaxValue = 4, MinValue = 1, LineAreaAlpha = 1, BackgroundColor =SKColor.Parse("#FF90EE90") }; * BarChart = new BarChart() { Entries = entries, MaxValue = 4, MinValue = 1, LabelOrientation = Orientation.Horizontal, ValueLabelOrientation = Orientation.Vertical, BackgroundColor = SKColor.Parse("#006738"), LabelColor = SKColor.Parse("#ffffff"), LabelTextSize = 25f }; * * } */ public void ResetChart() { /* * PlotModel -> PlotModel Series -> List of Plot Items * https://oxyplot.readthedocs.io/en/latest/ */ PlotModel newModel = new PlotModel() //Instantiates the PlotModel, you can define metadata such as Background or Title here { Background = OxyColor.Parse("#006738"), }; //Instantiates the barseries, which will be added to the model after the items are added to the series var barSeries = new ColumnSeries(); // List <ColumnItem> columnItems = new List <ColumnItem>(); foreach (UserInputDistressLevel timestamp in FilteredHistory) { ColumnItem columnItem = new ColumnItem() { Color = OxyColor.Parse(DistressType.DistressTypeColour(DistressType.DistressTypeValue(timestamp.DistressLevelType))), Value = DistressType.DistressTypeValue(timestamp.DistressLevelType), }; columnItems.Add(columnItem); } barSeries.ItemsSource = columnItems; //Sets barseries ItemSource newModel.Series.Add(barSeries); //Sets the barseries var yAxis = new LinearAxis() { Position = AxisPosition.Left, MajorStep = 1, MinorStep = 1, Maximum = 4, }; var xAxis = new CategoryAxis() { Position = AxisPosition.Bottom, }; newModel.Axes.Add(yAxis); newModel.Axes.Add(xAxis); if (columnItems.Count > 0) { //Also, if the user has a lot of recorded items, it would be difficult to see these in detail. /* * if(columnItems.Count > 10){ * //More than 10 items, Graph will be 500px + (50 * number of extra records) * GraphWidth = 500 + ((columnItems.Count - 10) * 50); * } */ Model = newModel; } else { //No Items in Filtered history, set Model to null so axis don't show Model = null; } }
public void AddColumn(ColumnItem column) { this.Columns.Add(column); }
private void InitPlots(CallModel callModel) { BatCall call = callModel.Call; PlotModel pmPower = new PlotModel(); LineSeries pwrLineSeries = new LineSeries(); pwrLineSeries.LineJoin = LineJoin.Round; pmPower.Series.Add(pwrLineSeries); pmPower.Axes.Add(new LinearAxis { Maximum = 260, Minimum = 0, Position = AxisPosition.Left, Title = "Intensität" }); pmPower.Axes.Add(new LinearAxis { Position = AxisPosition.Bottom, Title = "Dauer [ms]" }); if (call.PowerData != null) { pwrLineSeries.Points.AddRange(call.PowerData.Select((b, i) => new DataPoint(i * 0.251, b))); } //if (call.OriginalCalls.Count > 1) //{ // int leftSum = call.OriginalCalls[0].PowerData.Length; // for (int i = 0; i < call.OriginalCalls.Count-1; i++) // { // int width = (int)Math.Round((call.OriginalCalls[i + 1].StartTimeMs - call.OriginalCalls[i].EndTimeMs) / 0.251); // double left = leftSum* 0.251; // double right = left + (width* 0.251); // RectangleAnnotation annotation = new RectangleAnnotation { Fill = OxyColors.LightGray, Layer = AnnotationLayer.BelowAxes, MinimumX = left, MaximumX = right, MinimumY = 0, MaximumY = 260 }; // //LineAnnotation lineAnnotation = new LineAnnotation { Color = OxyColors.Red, StrokeThickness = 2, LineStyle = LineStyle.Dash, Type = LineAnnotationType.Vertical, X = linePos }; // pmPower.Annotations.Add(annotation); // leftSum = leftSum + width + call.OriginalCalls[i].PowerData.Length; // } //} OnlineFilter filter = OnlineFilter.CreateBandstop(ImpulseResponse.Infinite, 20, 20, 150); LineSeries pwrLineSeriesAvg = new LineSeries(); pwrLineSeriesAvg.LineJoin = LineJoin.Round; pwrLineSeriesAvg.Color = OxyColors.Blue; pmPower.Series.Add(pwrLineSeriesAvg); //double[] input = call.PowerData.Select(d => (double)d).ToArray(); //double[] data = filter.ProcessSamples(input); //pwrLineSeriesAvg.Points.AddRange(data.Select((d, i) => new DataPoint(i * 0.251, d))); int[] window = new int[] { 2, 4, 8, 4, 2 }; int divisor = window.Sum(); byte[] input = call.PowerData; for (int i = 0; i < input.Length; i++) { double sum = 0; for (int j = 0; j < 5; j++) { int x = i + (j - 2); double q; if (x < 0) { q = input[0]; } else if (x >= input.Length) { q = input[input.Length - 1]; } else { q = input[x]; } sum += q * window[j]; } pwrLineSeriesAvg.Points.Add(new DataPoint(i * 0.251, sum / divisor)); } LineSeries pwrLineSeriesAvg2 = new LineSeries(); pwrLineSeriesAvg2.LineJoin = LineJoin.Round; pwrLineSeriesAvg2.Color = OxyColors.Crimson; pmPower.Series.Add(pwrLineSeriesAvg2); int avgCount = 7; int[] ringBuffer = Enumerable.Repeat(-1, avgCount).ToArray(); int bufferIndex = 0; for (int i = 0; i < call.PowerData.Length; i++) { ringBuffer[bufferIndex++] = call.PowerData[i]; if (bufferIndex >= ringBuffer.Length) { bufferIndex = 0; } if (i > 4) { int c = 0; double mAvg = 0; for (int j = 0; j < ringBuffer.Length; j++) { if (ringBuffer[j] >= 0) { c++; mAvg += ringBuffer[j]; } } pwrLineSeriesAvg2.Points.Add(new DataPoint((i - 4) * 0.251, mAvg / c)); } } LineAnnotation lineAnnotation = new LineAnnotation { Color = OxyColors.Red, StrokeThickness = 2, LineStyle = LineStyle.Dash, Type = LineAnnotationType.Horizontal, Y = call.AveragePower }; pmPower.Annotations.Add(lineAnnotation); Power = pmPower.AddStyles(); PlotModel pmFreq = new PlotModel(); ColumnSeries freqSeries = new ColumnSeries(); pmFreq.Series.Add(freqSeries); CategoryAxis item = new CategoryAxis(); item.Position = AxisPosition.Bottom; item.Title = "Frequenz [kHz]"; item.GapWidth = 0.1; item.IsTickCentered = true; item.LabelFormatter = i => LogAnalyzer.GetFrequencyFromFftBin((int)i).ToString(CultureInfo.CurrentCulture); item.MajorGridlineThickness = 0; pmFreq.Axes.Add(item); if (call.FftData != null) { freqSeries.Items.AddRange(call.FftData.Select((f, i) => { ColumnItem columnItem = new ColumnItem(f, i); columnItem.Color = i == call.MaxFrequencyBin ? OxyColors.Red : OxyColors.Green; return(columnItem); })); } Frequency = pmFreq.AddStyles(); }
public Test4() { InitializeComponent(); this.DataCollection = new ObservableCollection <IDictionary <string, object> >(); var row = this.CreateRow(); row["UserCode"] = "01"; row["UserName"] = "******"; row["Company"] = "张三111"; row["EnterpriseCulture"] = "张三222"; row["YearSaleMoney"] = 1231m; row["IsBankruptcy"] = true; this.DataCollection.Add(row); row = this.CreateRow(); row["USERCODE"] = "02"; //大写试试 row["UserName"] = "******"; row["Company"] = "李四111"; row["EnterpriseCulture"] = "李四222"; row["YearSaleMoney"] = 12312m; row["IsBankruptcy"] = false; this.DataCollection.Add(row); row = this.CreateRow(); row["UserCode"] = "03"; row["USERNAME"] = "******"; row["Company"] = "呵呵111"; row["EnterpriseCulture"] = "呵呵222"; row["YearSaleMoney"] = 123123m; row["IsBankruptcy"] = false; this.DataCollection.Add(row); row = this.CreateRow(); row["UserCode"] = "04"; row["UserName"] = "******"; row["Company"] = "阿萨德111"; row["EnterpriseCulture"] = "阿萨德222"; row["YearSaleMoney"] = 12312m; row["IsBankruptcy"] = false; this.DataCollection.Add(row); //dicCommonValueConverter、dicChineseBooleanValueConverter 转换器 string moneyFormat = "{}{0:N2}"; // List <ColumnItem> columns = new List <ColumnItem>(); columns.Add(new ColumnItem("单标题", "UserCode", "dicCommonValueConverter", "", HorizontalAlignment.Left, 100)); columns.Add(new ColumnItem("单标题", "UserName", "dicCommonValueConverter", "", HorizontalAlignment.Left, 100)); var company = new ColumnItem("一级标题"); company.Columns.Add(new ColumnItem("二级标题", "Company", "dicCommonValueConverter", "", HorizontalAlignment.Left, 100)); company.Columns.Add(new ColumnItem("二级标题", "EnterpriseCulture", "dicCommonValueConverter", "", HorizontalAlignment.Left, 200)); company.Columns.Add(new ColumnItem("二级标题", "YearSaleMoney", "dicCommonValueConverter", moneyFormat, HorizontalAlignment.Right, 120)); //字典中文转换 company.Columns.Add(new ColumnItem("二级标题", "IsBankruptcy", "dicChineseBooleanValueConverter", "", HorizontalAlignment.Center, 80)); columns.Add(company); this.dgList.AddBindingParameterTemplateColumn(columns); //此方法是专用于参数转换绑定 // this.dgList.AddBindingPathTemplateColumn(columns); //此方法不能再用,该方法是对象绑定使用 this.dgList.ItemsSource = this.DataCollection; }
private void InitializeComponent() { this.components = new Container(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(ucViewOrder)); ColumnItem columnItem = new ColumnItem(); ColumnItem columnItem2 = new ColumnItem(); ColumnItem columnItem3 = new ColumnItem(); ColumnItem columnItem4 = new ColumnItem(); ColumnItem columnItem5 = new ColumnItem(); ColumnItem columnItem6 = new ColumnItem(); ColumnItem columnItem7 = new ColumnItem(); ColumnItem columnItem8 = new ColumnItem(); ColumnItem columnItem9 = new ColumnItem(); ColumnItem columnItem10 = new ColumnItem(); ColumnItem columnItem11 = new ColumnItem(); ColumnItem columnItem12 = new ColumnItem(); ColumnItem columnItem13 = new ColumnItem(); ColumnItem columnItem14 = new ColumnItem(); ColumnItem columnItem15 = new ColumnItem(); ColumnItem columnItem16 = new ColumnItem(); ColumnItem columnItem17 = new ColumnItem(); ColumnItem columnItem18 = new ColumnItem(); ColumnItem columnItem19 = new ColumnItem(); ColumnItem columnItem20 = new ColumnItem(); ColumnItem columnItem21 = new ColumnItem(); ColumnItem columnItem22 = new ColumnItem(); ColumnItem columnItem23 = new ColumnItem(); ColumnItem columnItem24 = new ColumnItem(); ColumnItem columnItem25 = new ColumnItem(); ColumnItem columnItem26 = new ColumnItem(); ColumnItem columnItem27 = new ColumnItem(); ColumnItem columnItem28 = new ColumnItem(); ColumnItem columnItem29 = new ColumnItem(); ColumnItem columnItem30 = new ColumnItem(); ColumnItem columnItem31 = new ColumnItem(); ColumnItem columnItem32 = new ColumnItem(); this.colConfirm = new ColumnHeader(); this.colVolume = new ColumnHeader(); this.colPrice = new ColumnHeader(); this.colTime = new ColumnHeader(); this.tStripMenu = new ToolStrip(); this.tslbStatus = new ToolStripLabel(); this.tscbStatus = new ToolStripComboBox(); this.tslbStock = new ToolStripLabel(); this.tstbStock = new ToolStripTextBox(); this.tslbPrice = new ToolStripLabel(); this.tstbPrice = new ToolStripTextBox(); this.tslbSide = new ToolStripLabel(); this.tscbSide = new ToolStripComboBox(); this.tsbtnClearCondition = new ToolStripButton(); this.tsbtnCancelOrder = new ToolStripButton(); this.tsbtnSearch = new ToolStripButton(); this.tsbtnEditOrder = new ToolStripButton(); this.tsbtnReloadReorder = new ToolStripButton(); this.lbLoading = new Label(); this.contextMenuStrip1 = new ContextMenuStrip(this.components); this.tsmRefresh = new ToolStripMenuItem(); this.intzaOrderListTFEX = new SortGrid(); this.intzaOrderList = new SortGrid(); this.tStripMenu.SuspendLayout(); this.contextMenuStrip1.SuspendLayout(); base.SuspendLayout(); this.colConfirm.Text = "Confirm#"; this.colConfirm.Width = 67; this.colVolume.Text = "Volume"; this.colVolume.Width = 78; this.colPrice.Text = "Price"; this.colPrice.Width = 56; this.colTime.Text = "Time"; this.colTime.Width = 64; this.tStripMenu.AllowMerge = false; this.tStripMenu.BackColor = Color.FromArgb(30, 30, 30); this.tStripMenu.CanOverflow = false; this.tStripMenu.GripMargin = new Padding(0); this.tStripMenu.GripStyle = ToolStripGripStyle.Hidden; this.tStripMenu.Items.AddRange(new ToolStripItem[] { this.tslbStatus, this.tscbStatus, this.tslbStock, this.tstbStock, this.tslbPrice, this.tstbPrice, this.tslbSide, this.tscbSide, this.tsbtnClearCondition, this.tsbtnCancelOrder, this.tsbtnSearch, this.tsbtnEditOrder, this.tsbtnReloadReorder }); this.tStripMenu.LayoutStyle = ToolStripLayoutStyle.HorizontalStackWithOverflow; this.tStripMenu.Location = new Point(0, 0); this.tStripMenu.Name = "tStripMenu"; this.tStripMenu.Padding = new Padding(1, 2, 1, 1); this.tStripMenu.RenderMode = ToolStripRenderMode.System; this.tStripMenu.Size = new Size(833, 28); this.tStripMenu.TabIndex = 57; this.tslbStatus.BackColor = Color.Transparent; this.tslbStatus.ForeColor = Color.Gainsboro; this.tslbStatus.Margin = new Padding(1); this.tslbStatus.Name = "tslbStatus"; this.tslbStatus.Size = new Size(39, 23); this.tslbStatus.Text = "Status"; this.tscbStatus.AutoCompleteCustomSource.AddRange(new string[] { "ALL", "O", "PO", "M", "C", "PX", "R", "X" }); this.tscbStatus.AutoCompleteMode = AutoCompleteMode.Append; this.tscbStatus.AutoCompleteSource = AutoCompleteSource.CustomSource; this.tscbStatus.BackColor = Color.FromArgb(45, 45, 45); this.tscbStatus.ForeColor = Color.LightGray; this.tscbStatus.Items.AddRange(new object[] { "ALL", "O", "PO", "M", "C", "PX", "R", "X" }); this.tscbStatus.Margin = new Padding(1, 0, 1, 2); this.tscbStatus.MaxLength = 3; this.tscbStatus.Name = "tscbStatus"; this.tscbStatus.Size = new Size(75, 23); this.tscbStatus.KeyUp += new KeyEventHandler(this.tscbStatus_KeyUp); this.tscbStatus.KeyDown += new KeyEventHandler(this.tscbStatus_KeyDown); this.tscbStatus.Leave += new EventHandler(this.controlOrder_Leave); this.tscbStatus.Enter += new EventHandler(this.controlOrder_Enter); this.tscbStatus.TextChanged += new EventHandler(this.tscbStatus_TextChanged); this.tslbStock.BackColor = Color.Transparent; this.tslbStock.ForeColor = Color.Gainsboro; this.tslbStock.Margin = new Padding(1); this.tslbStock.Name = "tslbStock"; this.tslbStock.Size = new Size(47, 23); this.tslbStock.Text = "Symbol"; this.tstbStock.AutoCompleteMode = AutoCompleteMode.SuggestAppend; this.tstbStock.AutoCompleteSource = AutoCompleteSource.CustomSource; this.tstbStock.BackColor = Color.FromArgb(45, 45, 45); this.tstbStock.BorderStyle = BorderStyle.FixedSingle; this.tstbStock.CharacterCasing = CharacterCasing.Upper; this.tstbStock.Font = new Font("Microsoft Sans Serif", 9f); this.tstbStock.ForeColor = Color.LightGray; this.tstbStock.Margin = new Padding(1, 0, 1, 2); this.tstbStock.MaxLength = 12; this.tstbStock.Name = "tstbStock"; this.tstbStock.Size = new Size(80, 23); this.tstbStock.Leave += new EventHandler(this.controlOrder_Leave); this.tstbStock.KeyDown += new KeyEventHandler(this.tstbStock_KeyDown); this.tstbStock.Enter += new EventHandler(this.controlOrder_Enter); this.tstbStock.KeyUp += new KeyEventHandler(this.tstbStock_KeyUp); this.tslbPrice.BackColor = Color.Transparent; this.tslbPrice.ForeColor = Color.Gainsboro; this.tslbPrice.Margin = new Padding(1); this.tslbPrice.Name = "tslbPrice"; this.tslbPrice.Size = new Size(33, 23); this.tslbPrice.Text = "Price"; this.tstbPrice.BackColor = Color.FromArgb(45, 45, 45); this.tstbPrice.BorderStyle = BorderStyle.FixedSingle; this.tstbPrice.ForeColor = Color.LightGray; this.tstbPrice.Margin = new Padding(1, 0, 1, 2); this.tstbPrice.MaxLength = 8; this.tstbPrice.Name = "tstbPrice"; this.tstbPrice.Size = new Size(65, 23); this.tstbPrice.Leave += new EventHandler(this.controlOrder_Leave); this.tstbPrice.Enter += new EventHandler(this.controlOrder_Enter); this.tstbPrice.KeyUp += new KeyEventHandler(this.tstbPrice_KeyUp); this.tslbSide.BackColor = Color.Transparent; this.tslbSide.ForeColor = Color.Gainsboro; this.tslbSide.Margin = new Padding(1); this.tslbSide.Name = "tslbSide"; this.tslbSide.Size = new Size(29, 23); this.tslbSide.Text = "Side"; this.tscbSide.AutoCompleteCustomSource.AddRange(new string[] { "ALL", "B", "S", "H", "C" }); this.tscbSide.AutoCompleteMode = AutoCompleteMode.Append; this.tscbSide.AutoCompleteSource = AutoCompleteSource.CustomSource; this.tscbSide.BackColor = Color.FromArgb(45, 45, 45); this.tscbSide.ForeColor = Color.LightGray; this.tscbSide.Items.AddRange(new object[] { "ALL", "B", "S", "H", "C" }); this.tscbSide.Margin = new Padding(1, 0, 1, 2); this.tscbSide.MaxLength = 3; this.tscbSide.Name = "tscbSide"; this.tscbSide.Size = new Size(75, 23); this.tscbSide.KeyUp += new KeyEventHandler(this.tscbSide_KeyUp); this.tscbSide.KeyDown += new KeyEventHandler(this.tscbStatus_KeyDown); this.tscbSide.Leave += new EventHandler(this.controlOrder_Leave); this.tscbSide.Enter += new EventHandler(this.controlOrder_Enter); this.tscbSide.TextChanged += new EventHandler(this.tscbSide_TextChanged); this.tsbtnClearCondition.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnClearCondition.ForeColor = Color.Gainsboro; this.tsbtnClearCondition.ImageTransparentColor = Color.Magenta; this.tsbtnClearCondition.Margin = new Padding(5, 1, 0, 2); this.tsbtnClearCondition.Name = "tsbtnClearCondition"; this.tsbtnClearCondition.Size = new Size(38, 22); this.tsbtnClearCondition.Text = "Clear"; this.tsbtnClearCondition.ToolTipText = "Clear Condition"; this.tsbtnClearCondition.Click += new EventHandler(this.tsbtnClearCondition_Click); this.tsbtnCancelOrder.Alignment = ToolStripItemAlignment.Right; this.tsbtnCancelOrder.ForeColor = Color.Tomato; this.tsbtnCancelOrder.Image = (Image)componentResourceManager.GetObject("tsbtnCancelOrder.Image"); this.tsbtnCancelOrder.ImageTransparentColor = Color.Magenta; this.tsbtnCancelOrder.Name = "tsbtnCancelOrder"; this.tsbtnCancelOrder.Size = new Size(63, 22); this.tsbtnCancelOrder.Text = "Cancel"; this.tsbtnCancelOrder.ToolTipText = "Cancel Order"; this.tsbtnCancelOrder.Click += new EventHandler(this.tsbtnCancelOrder_Click); this.tsbtnSearch.Font = new Font("Microsoft Sans Serif", 9f); this.tsbtnSearch.ForeColor = Color.Gainsboro; this.tsbtnSearch.Image = Resources.refresh; this.tsbtnSearch.ImageTransparentColor = Color.Magenta; this.tsbtnSearch.Margin = new Padding(5, 1, 0, 2); this.tsbtnSearch.Name = "tsbtnSearch"; this.tsbtnSearch.Size = new Size(66, 22); this.tsbtnSearch.Text = "Search"; this.tsbtnSearch.Click += new EventHandler(this.tsbtnSearch_Click); this.tsbtnEditOrder.Alignment = ToolStripItemAlignment.Right; this.tsbtnEditOrder.ForeColor = Color.Yellow; this.tsbtnEditOrder.Image = (Image)componentResourceManager.GetObject("tsbtnEditOrder.Image"); this.tsbtnEditOrder.ImageTransparentColor = Color.Magenta; this.tsbtnEditOrder.Margin = new Padding(0, 1, 5, 2); this.tsbtnEditOrder.Name = "tsbtnEditOrder"; this.tsbtnEditOrder.Size = new Size(47, 22); this.tsbtnEditOrder.Text = "Edit"; this.tsbtnEditOrder.ToolTipText = "Edit Order"; this.tsbtnEditOrder.Click += new EventHandler(this.tsbtnEditOrder_Click); this.tsbtnReloadReorder.Alignment = ToolStripItemAlignment.Right; this.tsbtnReloadReorder.ForeColor = Color.LightGray; this.tsbtnReloadReorder.Image = Resources.refresh; this.tsbtnReloadReorder.ImageTransparentColor = Color.Magenta; this.tsbtnReloadReorder.Name = "tsbtnReloadReorder"; this.tsbtnReloadReorder.Size = new Size(66, 22); this.tsbtnReloadReorder.Text = "Refresh"; this.lbLoading.AutoSize = true; this.lbLoading.BackColor = Color.FromArgb(64, 64, 64); this.lbLoading.BorderStyle = BorderStyle.FixedSingle; this.lbLoading.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 222); this.lbLoading.ForeColor = Color.Yellow; this.lbLoading.Location = new Point(378, 138); this.lbLoading.Name = "lbLoading"; this.lbLoading.Padding = new Padding(5, 3, 5, 3); this.lbLoading.Size = new Size(76, 23); this.lbLoading.TabIndex = 61; this.lbLoading.Text = "Loading ..."; this.lbLoading.Visible = false; this.contextMenuStrip1.Items.AddRange(new ToolStripItem[] { this.tsmRefresh }); this.contextMenuStrip1.Name = "contextMenuStrip1"; this.contextMenuStrip1.Size = new Size(111, 26); this.tsmRefresh.Image = Resources.refresh; this.tsmRefresh.Name = "tsmRefresh"; this.tsmRefresh.Size = new Size(110, 22); this.tsmRefresh.Text = "Reload"; this.tsmRefresh.Click += new EventHandler(this.tsmRefresh_Click); this.intzaOrderListTFEX.AllowDrop = true; this.intzaOrderListTFEX.BackColor = Color.FromArgb(30, 30, 30); this.intzaOrderListTFEX.CanBlink = false; this.intzaOrderListTFEX.CanDrag = false; this.intzaOrderListTFEX.CanGetMouseMove = false; columnItem.Alignment = StringAlignment.Center; columnItem.BackColor = Color.FromArgb(64, 64, 64); columnItem.ColumnAlignment = StringAlignment.Center; columnItem.FontColor = Color.LightGray; columnItem.MyStyle = FontStyle.Regular; columnItem.Name = "checkbox"; columnItem.Text = ""; columnItem.ValueFormat = FormatType.Bitmap; columnItem.Visible = true; columnItem.Width = 3; columnItem2.Alignment = StringAlignment.Near; columnItem2.BackColor = Color.FromArgb(64, 64, 64); columnItem2.ColumnAlignment = StringAlignment.Center; columnItem2.FontColor = Color.LightGray; columnItem2.MyStyle = FontStyle.Regular; columnItem2.Name = "order_number"; columnItem2.Text = "Order No."; columnItem2.ValueFormat = FormatType.Text; columnItem2.Visible = true; columnItem2.Width = 10; columnItem3.Alignment = StringAlignment.Center; columnItem3.BackColor = Color.FromArgb(64, 64, 64); columnItem3.ColumnAlignment = StringAlignment.Center; columnItem3.FontColor = Color.LightGray; columnItem3.MyStyle = FontStyle.Regular; columnItem3.Name = "position"; columnItem3.Text = "Pos"; columnItem3.ValueFormat = FormatType.Text; columnItem3.Visible = true; columnItem3.Width = 6; columnItem4.Alignment = StringAlignment.Center; columnItem4.BackColor = Color.FromArgb(64, 64, 64); columnItem4.ColumnAlignment = StringAlignment.Center; columnItem4.FontColor = Color.LightGray; columnItem4.MyStyle = FontStyle.Regular; columnItem4.Name = "side"; columnItem4.Text = "L/S"; columnItem4.ValueFormat = FormatType.Text; columnItem4.Visible = true; columnItem4.Width = 5; columnItem5.Alignment = StringAlignment.Near; columnItem5.BackColor = Color.FromArgb(64, 64, 64); columnItem5.ColumnAlignment = StringAlignment.Center; columnItem5.FontColor = Color.LightGray; columnItem5.MyStyle = FontStyle.Regular; columnItem5.Name = "stock"; columnItem5.Text = "Symbol"; columnItem5.ValueFormat = FormatType.Text; columnItem5.Visible = true; columnItem5.Width = 10; columnItem6.Alignment = StringAlignment.Far; columnItem6.BackColor = Color.FromArgb(64, 64, 64); columnItem6.ColumnAlignment = StringAlignment.Center; columnItem6.FontColor = Color.LightGray; columnItem6.MyStyle = FontStyle.Regular; columnItem6.Name = "volume"; columnItem6.Text = "Volume"; columnItem6.ValueFormat = FormatType.Volume; columnItem6.Visible = true; columnItem6.Width = 7; columnItem7.Alignment = StringAlignment.Far; columnItem7.BackColor = Color.FromArgb(64, 64, 64); columnItem7.ColumnAlignment = StringAlignment.Center; columnItem7.FontColor = Color.LightGray; columnItem7.MyStyle = FontStyle.Regular; columnItem7.Name = "price"; columnItem7.Text = "Price"; columnItem7.ValueFormat = FormatType.Text; columnItem7.Visible = true; columnItem7.Width = 12; columnItem8.Alignment = StringAlignment.Far; columnItem8.BackColor = Color.FromArgb(64, 64, 64); columnItem8.ColumnAlignment = StringAlignment.Center; columnItem8.FontColor = Color.LightGray; columnItem8.MyStyle = FontStyle.Regular; columnItem8.Name = "matched"; columnItem8.Text = "Matched"; columnItem8.ValueFormat = FormatType.Volume; columnItem8.Visible = true; columnItem8.Width = 10; columnItem9.Alignment = StringAlignment.Far; columnItem9.BackColor = Color.FromArgb(64, 64, 64); columnItem9.ColumnAlignment = StringAlignment.Center; columnItem9.FontColor = Color.LightGray; columnItem9.MyStyle = FontStyle.Regular; columnItem9.Name = "published"; columnItem9.Text = "Publish"; columnItem9.ValueFormat = FormatType.Volume; columnItem9.Visible = true; columnItem9.Width = 9; columnItem10.Alignment = StringAlignment.Near; columnItem10.BackColor = Color.FromArgb(64, 64, 64); columnItem10.ColumnAlignment = StringAlignment.Center; columnItem10.FontColor = Color.LightGray; columnItem10.MyStyle = FontStyle.Regular; columnItem10.Name = "valid"; columnItem10.Text = "Valid"; columnItem10.ValueFormat = FormatType.Text; columnItem10.Visible = false; columnItem10.Width = 5; columnItem11.Alignment = StringAlignment.Center; columnItem11.BackColor = Color.FromArgb(64, 64, 64); columnItem11.ColumnAlignment = StringAlignment.Center; columnItem11.FontColor = Color.LightGray; columnItem11.MyStyle = FontStyle.Regular; columnItem11.Name = "status"; columnItem11.Text = "Status"; columnItem11.ValueFormat = FormatType.Text; columnItem11.Visible = true; columnItem11.Width = 13; columnItem12.Alignment = StringAlignment.Center; columnItem12.BackColor = Color.FromArgb(64, 64, 64); columnItem12.ColumnAlignment = StringAlignment.Center; columnItem12.FontColor = Color.LightGray; columnItem12.MyStyle = FontStyle.Regular; columnItem12.Name = "time"; columnItem12.Text = "Time"; columnItem12.ValueFormat = FormatType.Text; columnItem12.Visible = true; columnItem12.Width = 9; columnItem13.Alignment = StringAlignment.Center; columnItem13.BackColor = Color.FromArgb(64, 64, 64); columnItem13.ColumnAlignment = StringAlignment.Center; columnItem13.FontColor = Color.LightGray; columnItem13.MyStyle = FontStyle.Regular; columnItem13.Name = "quote"; columnItem13.Text = "Quote"; columnItem13.ValueFormat = FormatType.Text; columnItem13.Visible = true; columnItem13.Width = 6; columnItem14.Alignment = StringAlignment.Near; columnItem14.BackColor = Color.FromArgb(64, 64, 64); columnItem14.ColumnAlignment = StringAlignment.Center; columnItem14.FontColor = Color.LightGray; columnItem14.MyStyle = FontStyle.Regular; columnItem14.Name = "send_date"; columnItem14.Text = "None"; columnItem14.ValueFormat = FormatType.Text; columnItem14.Visible = false; columnItem14.Width = 10; columnItem15.Alignment = StringAlignment.Near; columnItem15.BackColor = Color.FromArgb(64, 64, 64); columnItem15.ColumnAlignment = StringAlignment.Center; columnItem15.FontColor = Color.LightGray; columnItem15.MyStyle = FontStyle.Regular; columnItem15.Name = "key"; columnItem15.Text = "None"; columnItem15.ValueFormat = FormatType.Text; columnItem15.Visible = false; columnItem15.Width = 10; columnItem16.Alignment = StringAlignment.Near; columnItem16.BackColor = Color.FromArgb(64, 64, 64); columnItem16.ColumnAlignment = StringAlignment.Center; columnItem16.FontColor = Color.LightGray; columnItem16.MyStyle = FontStyle.Regular; columnItem16.Name = "ordType"; columnItem16.Text = "ordType"; columnItem16.ValueFormat = FormatType.Bitmap; columnItem16.Visible = false; columnItem16.Width = 10; this.intzaOrderListTFEX.Columns.Add(columnItem); this.intzaOrderListTFEX.Columns.Add(columnItem2); this.intzaOrderListTFEX.Columns.Add(columnItem3); this.intzaOrderListTFEX.Columns.Add(columnItem4); this.intzaOrderListTFEX.Columns.Add(columnItem5); this.intzaOrderListTFEX.Columns.Add(columnItem6); this.intzaOrderListTFEX.Columns.Add(columnItem7); this.intzaOrderListTFEX.Columns.Add(columnItem8); this.intzaOrderListTFEX.Columns.Add(columnItem9); this.intzaOrderListTFEX.Columns.Add(columnItem10); this.intzaOrderListTFEX.Columns.Add(columnItem11); this.intzaOrderListTFEX.Columns.Add(columnItem12); this.intzaOrderListTFEX.Columns.Add(columnItem13); this.intzaOrderListTFEX.Columns.Add(columnItem14); this.intzaOrderListTFEX.Columns.Add(columnItem15); this.intzaOrderListTFEX.Columns.Add(columnItem16); this.intzaOrderListTFEX.CurrentScroll = 0; this.intzaOrderListTFEX.FocusItemIndex = -1; this.intzaOrderListTFEX.ForeColor = Color.Black; this.intzaOrderListTFEX.GridColor = Color.FromArgb(45, 45, 45); this.intzaOrderListTFEX.HeaderPctHeight = 80f; this.intzaOrderListTFEX.IsAutoRepaint = true; this.intzaOrderListTFEX.IsDrawFullRow = false; this.intzaOrderListTFEX.IsDrawGrid = true; this.intzaOrderListTFEX.IsDrawHeader = true; this.intzaOrderListTFEX.IsScrollable = true; this.intzaOrderListTFEX.Location = new Point(0, 124); this.intzaOrderListTFEX.MainColumn = ""; this.intzaOrderListTFEX.Name = "intzaOrderListTFEX"; this.intzaOrderListTFEX.Rows = 0; this.intzaOrderListTFEX.RowSelectColor = Color.FromArgb(0, 0, 128); this.intzaOrderListTFEX.RowSelectType = 3; this.intzaOrderListTFEX.RowsVisible = 0; this.intzaOrderListTFEX.Size = new Size(818, 47); this.intzaOrderListTFEX.SortColumnName = ""; this.intzaOrderListTFEX.SortType = SortType.Desc; this.intzaOrderListTFEX.TabIndex = 67; this.intzaOrderListTFEX.Visible = false; this.intzaOrderListTFEX.MouseClick += new MouseEventHandler(this.intzaOrderListTFEX_MouseClick); this.intzaOrderListTFEX.TableMouseClick += new SortGrid.TableMouseClickEventHandler(this.intzaOrderListTFEX_TableMouseClick); this.intzaOrderListTFEX.TableMouseDoubleClick += new SortGrid.TableMouseDoubleClickEventHandler(this.intzaOrderListTFEX_TableMouseDoubleClick); this.intzaOrderList.AllowDrop = true; this.intzaOrderList.BackColor = Color.FromArgb(30, 30, 30); this.intzaOrderList.CanBlink = false; this.intzaOrderList.CanDrag = false; this.intzaOrderList.CanGetMouseMove = false; columnItem17.Alignment = StringAlignment.Center; columnItem17.BackColor = Color.FromArgb(64, 64, 64); columnItem17.ColumnAlignment = StringAlignment.Center; columnItem17.FontColor = Color.LightGray; columnItem17.MyStyle = FontStyle.Regular; columnItem17.Name = "checkbox"; columnItem17.Text = ""; columnItem17.ValueFormat = FormatType.Bitmap; columnItem17.Visible = true; columnItem17.Width = 3; columnItem18.Alignment = StringAlignment.Near; columnItem18.BackColor = Color.FromArgb(64, 64, 64); columnItem18.ColumnAlignment = StringAlignment.Center; columnItem18.FontColor = Color.LightGray; columnItem18.MyStyle = FontStyle.Regular; columnItem18.Name = "order_number"; columnItem18.Text = "Order No."; columnItem18.ValueFormat = FormatType.Text; columnItem18.Visible = true; columnItem18.Width = 11; columnItem19.Alignment = StringAlignment.Center; columnItem19.BackColor = Color.FromArgb(64, 64, 64); columnItem19.ColumnAlignment = StringAlignment.Center; columnItem19.FontColor = Color.LightGray; columnItem19.MyStyle = FontStyle.Regular; columnItem19.Name = "side"; columnItem19.Text = "B/S"; columnItem19.ValueFormat = FormatType.Text; columnItem19.Visible = true; columnItem19.Width = 4; columnItem20.Alignment = StringAlignment.Near; columnItem20.BackColor = Color.FromArgb(64, 64, 64); columnItem20.ColumnAlignment = StringAlignment.Center; columnItem20.FontColor = Color.LightGray; columnItem20.MyStyle = FontStyle.Regular; columnItem20.Name = "stock"; columnItem20.Text = "Symbol"; columnItem20.ValueFormat = FormatType.Text; columnItem20.Visible = true; columnItem20.Width = 10; columnItem21.Alignment = StringAlignment.Center; columnItem21.BackColor = Color.FromArgb(64, 64, 64); columnItem21.ColumnAlignment = StringAlignment.Center; columnItem21.FontColor = Color.LightGray; columnItem21.MyStyle = FontStyle.Regular; columnItem21.Name = "ttf"; columnItem21.Text = "TTF"; columnItem21.ValueFormat = FormatType.Text; columnItem21.Visible = true; columnItem21.Width = 4; columnItem22.Alignment = StringAlignment.Far; columnItem22.BackColor = Color.FromArgb(64, 64, 64); columnItem22.ColumnAlignment = StringAlignment.Center; columnItem22.FontColor = Color.LightGray; columnItem22.MyStyle = FontStyle.Regular; columnItem22.Name = "volume"; columnItem22.Text = "Volume"; columnItem22.ValueFormat = FormatType.Volume; columnItem22.Visible = true; columnItem22.Width = 10; columnItem23.Alignment = StringAlignment.Far; columnItem23.BackColor = Color.FromArgb(64, 64, 64); columnItem23.ColumnAlignment = StringAlignment.Center; columnItem23.FontColor = Color.LightGray; columnItem23.MyStyle = FontStyle.Regular; columnItem23.Name = "price"; columnItem23.Text = "Price"; columnItem23.ValueFormat = FormatType.Text; columnItem23.Visible = true; columnItem23.Width = 7; columnItem24.Alignment = StringAlignment.Far; columnItem24.BackColor = Color.FromArgb(64, 64, 64); columnItem24.ColumnAlignment = StringAlignment.Center; columnItem24.FontColor = Color.LightGray; columnItem24.MyStyle = FontStyle.Regular; columnItem24.Name = "matched"; columnItem24.Text = "Matched"; columnItem24.ValueFormat = FormatType.Volume; columnItem24.Visible = true; columnItem24.Width = 10; columnItem25.Alignment = StringAlignment.Far; columnItem25.BackColor = Color.FromArgb(64, 64, 64); columnItem25.ColumnAlignment = StringAlignment.Center; columnItem25.FontColor = Color.LightGray; columnItem25.MyStyle = FontStyle.Regular; columnItem25.Name = "published"; columnItem25.Text = "Publish"; columnItem25.ValueFormat = FormatType.Volume; columnItem25.Visible = true; columnItem25.Width = 10; columnItem26.Alignment = StringAlignment.Center; columnItem26.BackColor = Color.FromArgb(64, 64, 64); columnItem26.ColumnAlignment = StringAlignment.Center; columnItem26.FontColor = Color.LightGray; columnItem26.MyStyle = FontStyle.Regular; columnItem26.Name = "status"; columnItem26.Text = "Status"; columnItem26.ValueFormat = FormatType.Text; columnItem26.Visible = true; columnItem26.Width = 14; columnItem27.Alignment = StringAlignment.Center; columnItem27.BackColor = Color.FromArgb(64, 64, 64); columnItem27.ColumnAlignment = StringAlignment.Center; columnItem27.FontColor = Color.LightGray; columnItem27.MyStyle = FontStyle.Regular; columnItem27.Name = "time"; columnItem27.Text = "Time"; columnItem27.ValueFormat = FormatType.Text; columnItem27.Visible = true; columnItem27.Width = 9; columnItem28.Alignment = StringAlignment.Center; columnItem28.BackColor = Color.FromArgb(64, 64, 64); columnItem28.ColumnAlignment = StringAlignment.Center; columnItem28.FontColor = Color.LightGray; columnItem28.MyStyle = FontStyle.Regular; columnItem28.Name = "quote"; columnItem28.Text = "Quote"; columnItem28.ValueFormat = FormatType.Text; columnItem28.Visible = true; columnItem28.Width = 5; columnItem29.Alignment = StringAlignment.Near; columnItem29.BackColor = Color.FromArgb(64, 64, 64); columnItem29.ColumnAlignment = StringAlignment.Center; columnItem29.FontColor = Color.LightGray; columnItem29.MyStyle = FontStyle.Regular; columnItem29.Name = "send_date"; columnItem29.Text = "None"; columnItem29.ValueFormat = FormatType.Text; columnItem29.Visible = false; columnItem29.Width = 7; columnItem30.Alignment = StringAlignment.Near; columnItem30.BackColor = Color.FromArgb(64, 64, 64); columnItem30.ColumnAlignment = StringAlignment.Center; columnItem30.FontColor = Color.LightGray; columnItem30.MyStyle = FontStyle.Regular; columnItem30.Name = "key"; columnItem30.Text = "None"; columnItem30.ValueFormat = FormatType.Text; columnItem30.Visible = false; columnItem30.Width = 10; columnItem31.Alignment = StringAlignment.Near; columnItem31.BackColor = Color.FromArgb(64, 64, 64); columnItem31.ColumnAlignment = StringAlignment.Center; columnItem31.FontColor = Color.LightGray; columnItem31.MyStyle = FontStyle.Regular; columnItem31.Name = "info"; columnItem31.Text = ""; columnItem31.ValueFormat = FormatType.Bitmap; columnItem31.Visible = true; columnItem31.Width = 3; columnItem32.Alignment = StringAlignment.Near; columnItem32.BackColor = Color.FromArgb(64, 64, 64); columnItem32.ColumnAlignment = StringAlignment.Center; columnItem32.FontColor = Color.LightGray; columnItem32.MyStyle = FontStyle.Regular; columnItem32.Name = "offline"; columnItem32.Text = "Offline"; columnItem32.ValueFormat = FormatType.Text; columnItem32.Visible = false; columnItem32.Width = 10; this.intzaOrderList.Columns.Add(columnItem17); this.intzaOrderList.Columns.Add(columnItem18); this.intzaOrderList.Columns.Add(columnItem19); this.intzaOrderList.Columns.Add(columnItem20); this.intzaOrderList.Columns.Add(columnItem21); this.intzaOrderList.Columns.Add(columnItem22); this.intzaOrderList.Columns.Add(columnItem23); this.intzaOrderList.Columns.Add(columnItem24); this.intzaOrderList.Columns.Add(columnItem25); this.intzaOrderList.Columns.Add(columnItem26); this.intzaOrderList.Columns.Add(columnItem27); this.intzaOrderList.Columns.Add(columnItem28); this.intzaOrderList.Columns.Add(columnItem29); this.intzaOrderList.Columns.Add(columnItem30); this.intzaOrderList.Columns.Add(columnItem31); this.intzaOrderList.Columns.Add(columnItem32); this.intzaOrderList.CurrentScroll = 0; this.intzaOrderList.FocusItemIndex = -1; this.intzaOrderList.ForeColor = Color.Black; this.intzaOrderList.GridColor = Color.FromArgb(45, 45, 45); this.intzaOrderList.HeaderPctHeight = 80f; this.intzaOrderList.IsAutoRepaint = true; this.intzaOrderList.IsDrawFullRow = false; this.intzaOrderList.IsDrawGrid = true; this.intzaOrderList.IsDrawHeader = true; this.intzaOrderList.IsScrollable = true; this.intzaOrderList.Location = new Point(3, 30); this.intzaOrderList.MainColumn = ""; this.intzaOrderList.Name = "intzaOrderList"; this.intzaOrderList.Rows = 0; this.intzaOrderList.RowSelectColor = Color.FromArgb(0, 0, 128); this.intzaOrderList.RowSelectType = 3; this.intzaOrderList.RowsVisible = 0; this.intzaOrderList.Size = new Size(815, 55); this.intzaOrderList.SortColumnName = ""; this.intzaOrderList.SortType = SortType.Desc; this.intzaOrderList.TabIndex = 64; this.intzaOrderList.MouseClick += new MouseEventHandler(this.intzaOrderList_MouseClick); this.intzaOrderList.TableMouseClick += new SortGrid.TableMouseClickEventHandler(this.intzaOrderList_TableMouseClick); this.intzaOrderList.TableMouseDoubleClick += new SortGrid.TableMouseDoubleClickEventHandler(this.intzaOrderList_TableMouseDoubleClick); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; this.BackColor = Color.FromArgb(20, 20, 20); base.Controls.Add(this.lbLoading); base.Controls.Add(this.intzaOrderListTFEX); base.Controls.Add(this.intzaOrderList); base.Controls.Add(this.tStripMenu); base.Margin = new Padding(0); base.Name = "ucViewOrder"; base.Size = new Size(833, 303); base.Load += new EventHandler(this.ucViewOrder_Load); base.VisibleChanged += new EventHandler(this.ucViewOrder_VisibleChanged); base.KeyDown += new KeyEventHandler(this.ucViewOrder_KeyDown); this.tStripMenu.ResumeLayout(false); this.tStripMenu.PerformLayout(); this.contextMenuStrip1.ResumeLayout(false); base.ResumeLayout(false); base.PerformLayout(); }
private void InitializeComponent() { ColumnItem columnItem = new ColumnItem(); ColumnItem columnItem2 = new ColumnItem(); ColumnItem columnItem3 = new ColumnItem(); ColumnItem columnItem4 = new ColumnItem(); ColumnItem columnItem5 = new ColumnItem(); ColumnItem columnItem6 = new ColumnItem(); ColumnItem columnItem7 = new ColumnItem(); ColumnItem columnItem8 = new ColumnItem(); ItemGrid itemGrid = new ItemGrid(); ItemGrid itemGrid2 = new ItemGrid(); ItemGrid itemGrid3 = new ItemGrid(); ItemGrid itemGrid4 = new ItemGrid(); ItemGrid itemGrid5 = new ItemGrid(); ItemGrid itemGrid6 = new ItemGrid(); ItemGrid itemGrid7 = new ItemGrid(); ItemGrid itemGrid8 = new ItemGrid(); ItemGrid itemGrid9 = new ItemGrid(); ItemGrid itemGrid10 = new ItemGrid(); ItemGrid itemGrid11 = new ItemGrid(); ItemGrid itemGrid12 = new ItemGrid(); ItemGrid itemGrid13 = new ItemGrid(); ItemGrid itemGrid14 = new ItemGrid(); ItemGrid itemGrid15 = new ItemGrid(); ItemGrid itemGrid16 = new ItemGrid(); ItemGrid itemGrid17 = new ItemGrid(); ItemGrid itemGrid18 = new ItemGrid(); ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmMarketInfo)); ColumnItem columnItem9 = new ColumnItem(); ColumnItem columnItem10 = new ColumnItem(); ColumnItem columnItem11 = new ColumnItem(); ColumnItem columnItem12 = new ColumnItem(); ColumnItem columnItem13 = new ColumnItem(); ColumnItem columnItem14 = new ColumnItem(); ColumnItem columnItem15 = new ColumnItem(); ColumnItem columnItem16 = new ColumnItem(); ColumnItem columnItem17 = new ColumnItem(); this.tStripMenu = new ToolStrip(); this.toolStripLabel1 = new ToolStripLabel(); this.tsbtnSector = new ToolStripButton(); this.tsbtnIndustry = new ToolStripButton(); this.toolStripSeparator1 = new ToolStripSeparator(); this.tsSortBy = new ToolStripLabel(); this.tsbtnSortAsc = new ToolStripButton(); this.tsbtnSortDesc = new ToolStripButton(); this.toolStripSeparator2 = new ToolStripSeparator(); this.toolStripLabel2 = new ToolStripLabel(); this.tsSortBySector = new ToolStripButton(); this.tsSortByVolume = new ToolStripButton(); this.tsSortByValues = new ToolStripButton(); this.panelSector = new Panel(); this.intzaSector = new SortGrid(); this.lbLoading2 = new Label(); this.intzaMarketInfo = new IntzaCustomGrid(); this.toolStrip1 = new ToolStrip(); this.tsbtnInfo = new ToolStripButton(); this.toolStripSeparator3 = new ToolStripSeparator(); this.tsbtnSETChart = new ToolStripButton(); this.tsbtnSET50Chart = new ToolStripButton(); this.tsbtnSET100Chart = new ToolStripButton(); this.tsbtnSETHdChart = new ToolStripButton(); this.tsbtnMaiChart = new ToolStripButton(); this.pictureBox1 = new PictureBox(); this.lbChartLoading = new Label(); this.intzaSET = new SortGrid(); this.intzaBoard = new SortGrid(); this.tStripMenu.SuspendLayout(); this.panelSector.SuspendLayout(); this.toolStrip1.SuspendLayout(); ((ISupportInitialize)this.pictureBox1).BeginInit(); base.SuspendLayout(); this.tStripMenu.AllowMerge = false; this.tStripMenu.BackColor = Color.FromArgb(30, 30, 30); this.tStripMenu.GripMargin = new Padding(0); this.tStripMenu.GripStyle = ToolStripGripStyle.Hidden; this.tStripMenu.Items.AddRange(new ToolStripItem[] { this.toolStripLabel1, this.tsbtnSector, this.tsbtnIndustry, this.toolStripSeparator1, this.tsSortBy, this.tsbtnSortAsc, this.tsbtnSortDesc, this.toolStripSeparator2, this.toolStripLabel2, this.tsSortBySector, this.tsSortByVolume, this.tsSortByValues }); this.tStripMenu.LayoutStyle = ToolStripLayoutStyle.HorizontalStackWithOverflow; this.tStripMenu.Location = new Point(0, 0); this.tStripMenu.Name = "tStripMenu"; this.tStripMenu.Padding = new Padding(1, 1, 1, 2); this.tStripMenu.RenderMode = ToolStripRenderMode.System; this.tStripMenu.Size = new Size(675, 26); this.tStripMenu.TabIndex = 10; this.tStripMenu.Tag = "-1"; this.tStripMenu.Text = "ToolStrip1"; this.toolStripLabel1.ForeColor = Color.LightGray; this.toolStripLabel1.Name = "toolStripLabel1"; this.toolStripLabel1.Size = new Size(64, 20); this.toolStripLabel1.Text = "Selection : "; this.tsbtnSector.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnSector.ForeColor = Color.LightGray; this.tsbtnSector.ImageTransparentColor = Color.Magenta; this.tsbtnSector.Name = "tsbtnSector"; this.tsbtnSector.Size = new Size(44, 20); this.tsbtnSector.Text = "Sector"; this.tsbtnSector.Click += new EventHandler(this.tsbtnSector_Click); this.tsbtnIndustry.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnIndustry.ForeColor = Color.LightGray; this.tsbtnIndustry.ImageTransparentColor = Color.Magenta; this.tsbtnIndustry.Name = "tsbtnIndustry"; this.tsbtnIndustry.Size = new Size(54, 20); this.tsbtnIndustry.Text = "Industry"; this.tsbtnIndustry.Click += new EventHandler(this.tsbtnIndustry_Click); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(6, 23); this.tsSortBy.BackColor = Color.Transparent; this.tsSortBy.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsSortBy.Font = new Font("Microsoft Sans Serif", 9f); this.tsSortBy.ForeColor = Color.LightGray; this.tsSortBy.ImageTransparentColor = Color.Magenta; this.tsSortBy.Name = "tsSortBy"; this.tsSortBy.Size = new Size(35, 20); this.tsSortBy.Text = "Sort :"; this.tsbtnSortAsc.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnSortAsc.ForeColor = Color.LightGray; this.tsbtnSortAsc.ImageTransparentColor = Color.Magenta; this.tsbtnSortAsc.Name = "tsbtnSortAsc"; this.tsbtnSortAsc.Size = new Size(67, 20); this.tsbtnSortAsc.Text = "Ascending"; this.tsbtnSortAsc.Click += new EventHandler(this.tsbtnSortAsc_Click); this.tsbtnSortDesc.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnSortDesc.ForeColor = Color.LightGray; this.tsbtnSortDesc.ImageTransparentColor = Color.Magenta; this.tsbtnSortDesc.Name = "tsbtnSortDesc"; this.tsbtnSortDesc.Size = new Size(73, 20); this.tsbtnSortDesc.Text = "Descending"; this.tsbtnSortDesc.Click += new EventHandler(this.tsbtnSortDesc_Click); this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new Size(6, 23); this.toolStripLabel2.ForeColor = Color.LightGray; this.toolStripLabel2.Name = "toolStripLabel2"; this.toolStripLabel2.Size = new Size(50, 20); this.toolStripLabel2.Text = "Sort by :"; this.tsSortBySector.BackColor = Color.Transparent; this.tsSortBySector.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsSortBySector.ForeColor = Color.LightGray; this.tsSortBySector.ImageTransparentColor = Color.Magenta; this.tsSortBySector.Name = "tsSortBySector"; this.tsSortBySector.Size = new Size(51, 20); this.tsSortBySector.Text = "Symbol"; this.tsSortBySector.Click += new EventHandler(this.tsSortBySector_Click); this.tsSortByVolume.BackColor = Color.Transparent; this.tsSortByVolume.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsSortByVolume.ForeColor = Color.LightGray; this.tsSortByVolume.ImageTransparentColor = Color.Magenta; this.tsSortByVolume.Name = "tsSortByVolume"; this.tsSortByVolume.Size = new Size(55, 20); this.tsSortByVolume.Text = "Volume."; this.tsSortByVolume.Click += new EventHandler(this.tsSortByVolume_Click); this.tsSortByValues.BackColor = Color.Transparent; this.tsSortByValues.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsSortByValues.ForeColor = Color.LightGray; this.tsSortByValues.ImageTransparentColor = Color.Magenta; this.tsSortByValues.Name = "tsSortByValues"; this.tsSortByValues.Size = new Size(43, 20); this.tsSortByValues.Text = "Value."; this.tsSortByValues.Click += new EventHandler(this.tsSortByValues_Click); this.panelSector.Controls.Add(this.intzaSector); this.panelSector.Controls.Add(this.lbLoading2); this.panelSector.Controls.Add(this.tStripMenu); this.panelSector.Location = new Point(0, 214); this.panelSector.Name = "panelSector"; this.panelSector.Size = new Size(675, 188); this.panelSector.TabIndex = 19; this.intzaSector.AllowDrop = true; this.intzaSector.BackColor = Color.FromArgb(30, 30, 30); this.intzaSector.CanBlink = true; this.intzaSector.CanDrag = false; this.intzaSector.CanGetMouseMove = false; columnItem.Alignment = StringAlignment.Near; columnItem.BackColor = Color.FromArgb(64, 64, 64); columnItem.ColumnAlignment = StringAlignment.Center; columnItem.FontColor = Color.LightGray; columnItem.MyStyle = FontStyle.Regular; columnItem.Name = "symbol"; columnItem.Text = "Symbol"; columnItem.ValueFormat = FormatType.Text; columnItem.Visible = true; columnItem.Width = 14; columnItem2.Alignment = StringAlignment.Far; columnItem2.BackColor = Color.FromArgb(64, 64, 64); columnItem2.ColumnAlignment = StringAlignment.Center; columnItem2.FontColor = Color.LightGray; columnItem2.MyStyle = FontStyle.Regular; columnItem2.Name = "prior"; columnItem2.Text = "Prev"; columnItem2.ValueFormat = FormatType.Price; columnItem2.Visible = true; columnItem2.Width = 10; columnItem3.Alignment = StringAlignment.Far; columnItem3.BackColor = Color.FromArgb(64, 64, 64); columnItem3.ColumnAlignment = StringAlignment.Center; columnItem3.FontColor = Color.LightGray; columnItem3.MyStyle = FontStyle.Regular; columnItem3.Name = "last"; columnItem3.Text = "Last"; columnItem3.ValueFormat = FormatType.Price; columnItem3.Visible = true; columnItem3.Width = 10; columnItem4.Alignment = StringAlignment.Far; columnItem4.BackColor = Color.FromArgb(64, 64, 64); columnItem4.ColumnAlignment = StringAlignment.Center; columnItem4.FontColor = Color.LightGray; columnItem4.MyStyle = FontStyle.Regular; columnItem4.Name = "chg"; columnItem4.Text = "Change"; columnItem4.ValueFormat = FormatType.ChangePrice; columnItem4.Visible = true; columnItem4.Width = 10; columnItem5.Alignment = StringAlignment.Far; columnItem5.BackColor = Color.FromArgb(64, 64, 64); columnItem5.ColumnAlignment = StringAlignment.Center; columnItem5.FontColor = Color.LightGray; columnItem5.MyStyle = FontStyle.Regular; columnItem5.Name = "pchg"; columnItem5.Text = "%Change"; columnItem5.ValueFormat = FormatType.ChangePrice; columnItem5.Visible = true; columnItem5.Width = 10; columnItem6.Alignment = StringAlignment.Far; columnItem6.BackColor = Color.FromArgb(64, 64, 64); columnItem6.ColumnAlignment = StringAlignment.Center; columnItem6.FontColor = Color.LightGray; columnItem6.MyStyle = FontStyle.Regular; columnItem6.Name = "volume"; columnItem6.Text = "Volume"; columnItem6.ValueFormat = FormatType.Volume; columnItem6.Visible = true; columnItem6.Width = 17; columnItem7.Alignment = StringAlignment.Far; columnItem7.BackColor = Color.FromArgb(64, 64, 64); columnItem7.ColumnAlignment = StringAlignment.Center; columnItem7.FontColor = Color.LightGray; columnItem7.MyStyle = FontStyle.Regular; columnItem7.Name = "value"; columnItem7.Text = "Value"; columnItem7.ValueFormat = FormatType.Volume; columnItem7.Visible = true; columnItem7.Width = 19; columnItem8.Alignment = StringAlignment.Far; columnItem8.BackColor = Color.FromArgb(64, 64, 64); columnItem8.ColumnAlignment = StringAlignment.Center; columnItem8.FontColor = Color.LightGray; columnItem8.MyStyle = FontStyle.Regular; columnItem8.Name = "pmkt"; columnItem8.Text = "%Mkt"; columnItem8.ValueFormat = FormatType.Price; columnItem8.Visible = true; columnItem8.Width = 10; this.intzaSector.Columns.Add(columnItem); this.intzaSector.Columns.Add(columnItem2); this.intzaSector.Columns.Add(columnItem3); this.intzaSector.Columns.Add(columnItem4); this.intzaSector.Columns.Add(columnItem5); this.intzaSector.Columns.Add(columnItem6); this.intzaSector.Columns.Add(columnItem7); this.intzaSector.Columns.Add(columnItem8); this.intzaSector.CurrentScroll = 0; this.intzaSector.Dock = DockStyle.Fill; this.intzaSector.FocusItemIndex = -1; this.intzaSector.ForeColor = Color.Black; this.intzaSector.GridColor = Color.FromArgb(45, 45, 45); this.intzaSector.HeaderPctHeight = 80f; this.intzaSector.IsAutoRepaint = true; this.intzaSector.IsDrawFullRow = false; this.intzaSector.IsDrawGrid = true; this.intzaSector.IsDrawHeader = true; this.intzaSector.IsScrollable = true; this.intzaSector.Location = new Point(0, 26); this.intzaSector.MainColumn = ""; this.intzaSector.Name = "intzaSector"; this.intzaSector.Rows = 0; this.intzaSector.RowSelectColor = Color.FromArgb(95, 158, 160); this.intzaSector.RowSelectType = 0; this.intzaSector.RowsVisible = 0; this.intzaSector.Size = new Size(675, 162); this.intzaSector.SortColumnName = ""; this.intzaSector.SortType = SortType.Desc; this.intzaSector.TabIndex = 86; this.lbLoading2.AutoSize = true; this.lbLoading2.BorderStyle = BorderStyle.FixedSingle; this.lbLoading2.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 222); this.lbLoading2.ForeColor = Color.Yellow; this.lbLoading2.Location = new Point(308, 99); this.lbLoading2.Name = "lbLoading2"; this.lbLoading2.Padding = new Padding(5, 3, 5, 3); this.lbLoading2.Size = new Size(69, 21); this.lbLoading2.TabIndex = 85; this.lbLoading2.Text = "Loading ..."; this.lbLoading2.TextAlign = ContentAlignment.MiddleCenter; this.lbLoading2.Visible = false; this.intzaMarketInfo.AllowDrop = true; this.intzaMarketInfo.BackColor = Color.FromArgb(30, 30, 30); this.intzaMarketInfo.CanDrag = false; this.intzaMarketInfo.IsAutoRepaint = true; this.intzaMarketInfo.IsDroped = false; itemGrid.AdjustFontSize = 0f; itemGrid.Alignment = StringAlignment.Near; itemGrid.BackColor = Color.FromArgb(30, 30, 30); itemGrid.Changed = false; itemGrid.FieldType = ItemType.Label2; itemGrid.FontColor = Color.LightGray; itemGrid.FontStyle = FontStyle.Regular; itemGrid.Height = 1f; itemGrid.IsBlink = 0; itemGrid.Name = "upvolume_label"; itemGrid.Text = "Up Vol"; itemGrid.ValueFormat = FormatType.Text; itemGrid.Visible = true; itemGrid.Width = 25; itemGrid.X = 0; itemGrid.Y = 0f; itemGrid2.AdjustFontSize = 0f; itemGrid2.Alignment = StringAlignment.Far; itemGrid2.BackColor = Color.FromArgb(30, 30, 30); itemGrid2.Changed = false; itemGrid2.FieldType = ItemType.Text; itemGrid2.FontColor = Color.Lime; itemGrid2.FontStyle = FontStyle.Regular; itemGrid2.Height = 1f; itemGrid2.IsBlink = 0; itemGrid2.Name = "upvolume_text"; itemGrid2.Text = ""; itemGrid2.ValueFormat = FormatType.Volume; itemGrid2.Visible = true; itemGrid2.Width = 30; itemGrid2.X = 25; itemGrid2.Y = 0f; itemGrid3.AdjustFontSize = 0f; itemGrid3.Alignment = StringAlignment.Near; itemGrid3.BackColor = Color.FromArgb(30, 30, 30); itemGrid3.Changed = false; itemGrid3.FieldType = ItemType.Label2; itemGrid3.FontColor = Color.LightGray; itemGrid3.FontStyle = FontStyle.Regular; itemGrid3.Height = 1f; itemGrid3.IsBlink = 0; itemGrid3.Name = "maival_label"; itemGrid3.Text = "MAI Val"; itemGrid3.ValueFormat = FormatType.Text; itemGrid3.Visible = true; itemGrid3.Width = 18; itemGrid3.X = 57; itemGrid3.Y = 0f; itemGrid4.AdjustFontSize = 0f; itemGrid4.Alignment = StringAlignment.Far; itemGrid4.BackColor = Color.FromArgb(30, 30, 30); itemGrid4.Changed = false; itemGrid4.FieldType = ItemType.Text; itemGrid4.FontColor = Color.Yellow; itemGrid4.FontStyle = FontStyle.Regular; itemGrid4.Height = 1f; itemGrid4.IsBlink = 0; itemGrid4.Name = "maival_text"; itemGrid4.Text = ""; itemGrid4.ValueFormat = FormatType.Price; itemGrid4.Visible = true; itemGrid4.Width = 25; itemGrid4.X = 75; itemGrid4.Y = 0f; itemGrid5.AdjustFontSize = 0f; itemGrid5.Alignment = StringAlignment.Near; itemGrid5.BackColor = Color.FromArgb(30, 30, 30); itemGrid5.Changed = false; itemGrid5.FieldType = ItemType.Label2; itemGrid5.FontColor = Color.LightGray; itemGrid5.FontStyle = FontStyle.Regular; itemGrid5.Height = 1f; itemGrid5.IsBlink = 0; itemGrid5.Name = "downvolume_label"; itemGrid5.Text = "Down Vol"; itemGrid5.ValueFormat = FormatType.Text; itemGrid5.Visible = true; itemGrid5.Width = 25; itemGrid5.X = 0; itemGrid5.Y = 1f; itemGrid6.AdjustFontSize = 0f; itemGrid6.Alignment = StringAlignment.Far; itemGrid6.BackColor = Color.FromArgb(30, 30, 30); itemGrid6.Changed = false; itemGrid6.FieldType = ItemType.Text; itemGrid6.FontColor = Color.Red; itemGrid6.FontStyle = FontStyle.Regular; itemGrid6.Height = 1f; itemGrid6.IsBlink = 0; itemGrid6.Name = "downvolume_text"; itemGrid6.Text = ""; itemGrid6.ValueFormat = FormatType.Volume; itemGrid6.Visible = true; itemGrid6.Width = 30; itemGrid6.X = 25; itemGrid6.Y = 1f; itemGrid7.AdjustFontSize = 0f; itemGrid7.Alignment = StringAlignment.Near; itemGrid7.BackColor = Color.FromArgb(30, 30, 30); itemGrid7.Changed = false; itemGrid7.FieldType = ItemType.Label2; itemGrid7.FontColor = Color.LightGray; itemGrid7.FontStyle = FontStyle.Regular; itemGrid7.Height = 1f; itemGrid7.IsBlink = 0; itemGrid7.Name = "nochg_volume_label"; itemGrid7.Text = "UnChg Vol"; itemGrid7.ValueFormat = FormatType.Text; itemGrid7.Visible = true; itemGrid7.Width = 25; itemGrid7.X = 0; itemGrid7.Y = 2f; itemGrid8.AdjustFontSize = 0f; itemGrid8.Alignment = StringAlignment.Far; itemGrid8.BackColor = Color.FromArgb(30, 30, 30); itemGrid8.Changed = false; itemGrid8.FieldType = ItemType.Text; itemGrid8.FontColor = Color.Yellow; itemGrid8.FontStyle = FontStyle.Regular; itemGrid8.Height = 1f; itemGrid8.IsBlink = 0; itemGrid8.Name = "nochg_volume_text"; itemGrid8.Text = ""; itemGrid8.ValueFormat = FormatType.Volume; itemGrid8.Visible = true; itemGrid8.Width = 30; itemGrid8.X = 25; itemGrid8.Y = 2f; itemGrid9.AdjustFontSize = 0f; itemGrid9.Alignment = StringAlignment.Near; itemGrid9.BackColor = Color.FromArgb(30, 30, 30); itemGrid9.Changed = false; itemGrid9.FieldType = ItemType.Label2; itemGrid9.FontColor = Color.LightGray; itemGrid9.FontStyle = FontStyle.Regular; itemGrid9.Height = 1f; itemGrid9.IsBlink = 0; itemGrid9.Name = "up_label"; itemGrid9.Text = "Up"; itemGrid9.ValueFormat = FormatType.Text; itemGrid9.Visible = true; itemGrid9.Width = 11; itemGrid9.X = 0; itemGrid9.Y = 3f; itemGrid10.AdjustFontSize = 0f; itemGrid10.Alignment = StringAlignment.Near; itemGrid10.BackColor = Color.FromArgb(30, 30, 30); itemGrid10.Changed = false; itemGrid10.FieldType = ItemType.Text; itemGrid10.FontColor = Color.Lime; itemGrid10.FontStyle = FontStyle.Regular; itemGrid10.Height = 1f; itemGrid10.IsBlink = 0; itemGrid10.Name = "up_text"; itemGrid10.Text = ""; itemGrid10.ValueFormat = FormatType.Volume; itemGrid10.Visible = true; itemGrid10.Width = 15; itemGrid10.X = 12; itemGrid10.Y = 3f; itemGrid11.AdjustFontSize = 0f; itemGrid11.Alignment = StringAlignment.Near; itemGrid11.BackColor = Color.FromArgb(30, 30, 30); itemGrid11.Changed = false; itemGrid11.FieldType = ItemType.Label2; itemGrid11.FontColor = Color.LightGray; itemGrid11.FontStyle = FontStyle.Regular; itemGrid11.Height = 1f; itemGrid11.IsBlink = 0; itemGrid11.Name = "down_label"; itemGrid11.Text = "Down"; itemGrid11.ValueFormat = FormatType.Volume; itemGrid11.Visible = true; itemGrid11.Width = 12; itemGrid11.X = 30; itemGrid11.Y = 3f; itemGrid12.AdjustFontSize = 0f; itemGrid12.Alignment = StringAlignment.Near; itemGrid12.BackColor = Color.FromArgb(30, 30, 30); itemGrid12.Changed = false; itemGrid12.FieldType = ItemType.Text; itemGrid12.FontColor = Color.Red; itemGrid12.FontStyle = FontStyle.Regular; itemGrid12.Height = 1f; itemGrid12.IsBlink = 0; itemGrid12.Name = "down_text"; itemGrid12.Text = ""; itemGrid12.ValueFormat = FormatType.Volume; itemGrid12.Visible = true; itemGrid12.Width = 15; itemGrid12.X = 43; itemGrid12.Y = 3f; itemGrid13.AdjustFontSize = 0f; itemGrid13.Alignment = StringAlignment.Near; itemGrid13.BackColor = Color.FromArgb(30, 30, 30); itemGrid13.Changed = false; itemGrid13.FieldType = ItemType.Label2; itemGrid13.FontColor = Color.LightGray; itemGrid13.FontStyle = FontStyle.Regular; itemGrid13.Height = 1f; itemGrid13.IsBlink = 0; itemGrid13.Name = "nochange_label"; itemGrid13.Text = "UnChg."; itemGrid13.ValueFormat = FormatType.Text; itemGrid13.Visible = true; itemGrid13.Width = 15; itemGrid13.X = 60; itemGrid13.Y = 3f; itemGrid14.AdjustFontSize = 0f; itemGrid14.Alignment = StringAlignment.Near; itemGrid14.BackColor = Color.FromArgb(30, 30, 30); itemGrid14.Changed = false; itemGrid14.FieldType = ItemType.Text; itemGrid14.FontColor = Color.Yellow; itemGrid14.FontStyle = FontStyle.Regular; itemGrid14.Height = 1f; itemGrid14.IsBlink = 0; itemGrid14.Name = "nochange_text"; itemGrid14.Text = ""; itemGrid14.ValueFormat = FormatType.Volume; itemGrid14.Visible = true; itemGrid14.Width = 13; itemGrid14.X = 75; itemGrid14.Y = 3f; itemGrid15.AdjustFontSize = 0f; itemGrid15.Alignment = StringAlignment.Near; itemGrid15.BackColor = Color.FromArgb(30, 30, 30); itemGrid15.Changed = false; itemGrid15.FieldType = ItemType.Label2; itemGrid15.FontColor = Color.LightGray; itemGrid15.FontStyle = FontStyle.Regular; itemGrid15.Height = 1f; itemGrid15.IsBlink = 0; itemGrid15.Name = "tick_label"; itemGrid15.Text = "Tick"; itemGrid15.ValueFormat = FormatType.Text; itemGrid15.Visible = true; itemGrid15.Width = 11; itemGrid15.X = 0; itemGrid15.Y = 4f; itemGrid16.AdjustFontSize = 0f; itemGrid16.Alignment = StringAlignment.Near; itemGrid16.BackColor = Color.FromArgb(30, 30, 30); itemGrid16.Changed = false; itemGrid16.FieldType = ItemType.Text; itemGrid16.FontColor = Color.White; itemGrid16.FontStyle = FontStyle.Regular; itemGrid16.Height = 1f; itemGrid16.IsBlink = 0; itemGrid16.Name = "tick_text"; itemGrid16.Text = ""; itemGrid16.ValueFormat = FormatType.Price; itemGrid16.Visible = true; itemGrid16.Width = 15; itemGrid16.X = 12; itemGrid16.Y = 4f; itemGrid17.AdjustFontSize = 0f; itemGrid17.Alignment = StringAlignment.Near; itemGrid17.BackColor = Color.FromArgb(30, 30, 30); itemGrid17.Changed = false; itemGrid17.FieldType = ItemType.Label2; itemGrid17.FontColor = Color.LightGray; itemGrid17.FontStyle = FontStyle.Regular; itemGrid17.Height = 1f; itemGrid17.IsBlink = 0; itemGrid17.Name = "trin_label"; itemGrid17.Text = "Trin"; itemGrid17.ValueFormat = FormatType.Volume; itemGrid17.Visible = true; itemGrid17.Width = 12; itemGrid17.X = 30; itemGrid17.Y = 4f; itemGrid18.AdjustFontSize = 0f; itemGrid18.Alignment = StringAlignment.Near; itemGrid18.BackColor = Color.FromArgb(30, 30, 30); itemGrid18.Changed = false; itemGrid18.FieldType = ItemType.Text; itemGrid18.FontColor = Color.White; itemGrid18.FontStyle = FontStyle.Regular; itemGrid18.Height = 1f; itemGrid18.IsBlink = 0; itemGrid18.Name = "trin_text"; itemGrid18.Text = ""; itemGrid18.ValueFormat = FormatType.Price; itemGrid18.Visible = true; itemGrid18.Width = 55; itemGrid18.X = 43; itemGrid18.Y = 4f; this.intzaMarketInfo.Items.Add(itemGrid); this.intzaMarketInfo.Items.Add(itemGrid2); this.intzaMarketInfo.Items.Add(itemGrid3); this.intzaMarketInfo.Items.Add(itemGrid4); this.intzaMarketInfo.Items.Add(itemGrid5); this.intzaMarketInfo.Items.Add(itemGrid6); this.intzaMarketInfo.Items.Add(itemGrid7); this.intzaMarketInfo.Items.Add(itemGrid8); this.intzaMarketInfo.Items.Add(itemGrid9); this.intzaMarketInfo.Items.Add(itemGrid10); this.intzaMarketInfo.Items.Add(itemGrid11); this.intzaMarketInfo.Items.Add(itemGrid12); this.intzaMarketInfo.Items.Add(itemGrid13); this.intzaMarketInfo.Items.Add(itemGrid14); this.intzaMarketInfo.Items.Add(itemGrid15); this.intzaMarketInfo.Items.Add(itemGrid16); this.intzaMarketInfo.Items.Add(itemGrid17); this.intzaMarketInfo.Items.Add(itemGrid18); this.intzaMarketInfo.LineColor = Color.Red; this.intzaMarketInfo.Location = new Point(350, 128); this.intzaMarketInfo.Margin = new Padding(0); this.intzaMarketInfo.Name = "intzaMarketInfo"; this.intzaMarketInfo.Size = new Size(316, 86); this.intzaMarketInfo.TabIndex = 23; this.intzaMarketInfo.Visible = false; this.toolStrip1.AutoSize = false; this.toolStrip1.BackColor = Color.FromArgb(30, 30, 30); this.toolStrip1.Dock = DockStyle.None; this.toolStrip1.GripStyle = ToolStripGripStyle.Hidden; this.toolStrip1.Items.AddRange(new ToolStripItem[] { this.tsbtnInfo, this.toolStripSeparator3, this.tsbtnSETChart, this.tsbtnSET50Chart, this.tsbtnSET100Chart, this.tsbtnSETHdChart, this.tsbtnMaiChart }); this.toolStrip1.Location = new Point(350, 1); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Padding = new Padding(1, 1, 1, 2); this.toolStrip1.RenderMode = ToolStripRenderMode.System; this.toolStrip1.Size = new Size(325, 25); this.toolStrip1.TabIndex = 24; this.toolStrip1.Tag = "-1"; this.toolStrip1.Text = "toolStrip1"; this.tsbtnInfo.ForeColor = Color.LightGray; this.tsbtnInfo.Image = (Image)componentResourceManager.GetObject("tsbtnInfo.Image"); this.tsbtnInfo.ImageTransparentColor = Color.Magenta; this.tsbtnInfo.Margin = new Padding(5, 1, 0, 2); this.tsbtnInfo.Name = "tsbtnInfo"; this.tsbtnInfo.Size = new Size(51, 19); this.tsbtnInfo.Text = " Info"; this.tsbtnInfo.Click += new EventHandler(this.tsbtnInfo_Click); this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new Size(6, 22); this.tsbtnSETChart.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnSETChart.ForeColor = Color.LightGray; this.tsbtnSETChart.ImageTransparentColor = Color.Magenta; this.tsbtnSETChart.Name = "tsbtnSETChart"; this.tsbtnSETChart.Size = new Size(30, 19); this.tsbtnSETChart.Text = "SET"; this.tsbtnSETChart.Click += new EventHandler(this.tsbtnSETChart_Click); this.tsbtnSET50Chart.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnSET50Chart.ForeColor = Color.LightGray; this.tsbtnSET50Chart.ImageTransparentColor = Color.Magenta; this.tsbtnSET50Chart.Name = "tsbtnSET50Chart"; this.tsbtnSET50Chart.Size = new Size(42, 19); this.tsbtnSET50Chart.Text = "SET50"; this.tsbtnSET50Chart.Click += new EventHandler(this.tsbtnSETChart_Click); this.tsbtnSET100Chart.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnSET100Chart.ForeColor = Color.LightGray; this.tsbtnSET100Chart.ImageTransparentColor = Color.Magenta; this.tsbtnSET100Chart.Name = "tsbtnSET100Chart"; this.tsbtnSET100Chart.Size = new Size(48, 19); this.tsbtnSET100Chart.Text = "SET100"; this.tsbtnSET100Chart.Click += new EventHandler(this.tsbtnSETChart_Click); this.tsbtnSETHdChart.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnSETHdChart.ForeColor = Color.LightGray; this.tsbtnSETHdChart.ImageTransparentColor = Color.Magenta; this.tsbtnSETHdChart.Name = "tsbtnSETHdChart"; this.tsbtnSETHdChart.Size = new Size(47, 19); this.tsbtnSETHdChart.Text = "SETHD"; this.tsbtnSETHdChart.Click += new EventHandler(this.tsbtnSETChart_Click); this.tsbtnMaiChart.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnMaiChart.ForeColor = Color.LightGray; this.tsbtnMaiChart.ImageTransparentColor = Color.Magenta; this.tsbtnMaiChart.Name = "tsbtnMaiChart"; this.tsbtnMaiChart.Size = new Size(33, 19); this.tsbtnMaiChart.Text = "MAI"; this.tsbtnMaiChart.Click += new EventHandler(this.tsbtnSETChart_Click); this.pictureBox1.BackColor = Color.FromArgb(30, 30, 30); this.pictureBox1.Location = new Point(360, 67); this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Size = new Size(58, 64); this.pictureBox1.TabIndex = 82; this.pictureBox1.TabStop = false; this.lbChartLoading.AutoSize = true; this.lbChartLoading.BackColor = Color.FromArgb(64, 64, 64); this.lbChartLoading.BorderStyle = BorderStyle.FixedSingle; this.lbChartLoading.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 222); this.lbChartLoading.ForeColor = Color.Yellow; this.lbChartLoading.Location = new Point(360, 150); this.lbChartLoading.Name = "lbChartLoading"; this.lbChartLoading.Padding = new Padding(5, 3, 5, 3); this.lbChartLoading.Size = new Size(69, 21); this.lbChartLoading.TabIndex = 83; this.lbChartLoading.Text = "Loading ..."; this.lbChartLoading.TextAlign = ContentAlignment.MiddleCenter; this.lbChartLoading.Visible = false; this.intzaSET.AllowDrop = true; this.intzaSET.BackColor = Color.FromArgb(30, 30, 30); this.intzaSET.CanBlink = true; this.intzaSET.CanDrag = false; this.intzaSET.CanGetMouseMove = false; columnItem9.Alignment = StringAlignment.Center; columnItem9.BackColor = Color.FromArgb(64, 64, 64); columnItem9.ColumnAlignment = StringAlignment.Center; columnItem9.FontColor = Color.LightGray; columnItem9.MyStyle = FontStyle.Regular; columnItem9.Name = "name"; columnItem9.Text = ""; columnItem9.ValueFormat = FormatType.Text; columnItem9.Visible = true; columnItem9.Width = 20; columnItem10.Alignment = StringAlignment.Far; columnItem10.BackColor = Color.FromArgb(64, 64, 64); columnItem10.ColumnAlignment = StringAlignment.Center; columnItem10.FontColor = Color.LightGray; columnItem10.MyStyle = FontStyle.Regular; columnItem10.Name = "prior"; columnItem10.Text = "Prev"; columnItem10.ValueFormat = FormatType.Price; columnItem10.Visible = true; columnItem10.Width = 20; columnItem11.Alignment = StringAlignment.Far; columnItem11.BackColor = Color.FromArgb(64, 64, 64); columnItem11.ColumnAlignment = StringAlignment.Center; columnItem11.FontColor = Color.LightGray; columnItem11.MyStyle = FontStyle.Regular; columnItem11.Name = "index"; columnItem11.Text = "Index"; columnItem11.ValueFormat = FormatType.Price; columnItem11.Visible = true; columnItem11.Width = 20; columnItem12.Alignment = StringAlignment.Far; columnItem12.BackColor = Color.FromArgb(64, 64, 64); columnItem12.ColumnAlignment = StringAlignment.Center; columnItem12.FontColor = Color.LightGray; columnItem12.MyStyle = FontStyle.Regular; columnItem12.Name = "chg"; columnItem12.Text = "Change"; columnItem12.ValueFormat = FormatType.ChangePrice; columnItem12.Visible = true; columnItem12.Width = 20; columnItem13.Alignment = StringAlignment.Far; columnItem13.BackColor = Color.FromArgb(64, 64, 64); columnItem13.ColumnAlignment = StringAlignment.Center; columnItem13.FontColor = Color.LightGray; columnItem13.MyStyle = FontStyle.Regular; columnItem13.Name = "pchg"; columnItem13.Text = "%Change"; columnItem13.ValueFormat = FormatType.ChangePrice; columnItem13.Visible = true; columnItem13.Width = 20; this.intzaSET.Columns.Add(columnItem9); this.intzaSET.Columns.Add(columnItem10); this.intzaSET.Columns.Add(columnItem11); this.intzaSET.Columns.Add(columnItem12); this.intzaSET.Columns.Add(columnItem13); this.intzaSET.CurrentScroll = 0; this.intzaSET.FocusItemIndex = -1; this.intzaSET.ForeColor = Color.Black; this.intzaSET.GridColor = Color.FromArgb(45, 45, 45); this.intzaSET.HeaderPctHeight = 80f; this.intzaSET.IsAutoRepaint = true; this.intzaSET.IsDrawFullRow = false; this.intzaSET.IsDrawGrid = true; this.intzaSET.IsDrawHeader = true; this.intzaSET.IsScrollable = true; this.intzaSET.Location = new Point(0, 1); this.intzaSET.MainColumn = ""; this.intzaSET.Name = "intzaSET"; this.intzaSET.Rows = 15; this.intzaSET.RowSelectColor = Color.FromArgb(95, 158, 160); this.intzaSET.RowSelectType = 0; this.intzaSET.RowsVisible = 15; this.intzaSET.Size = new Size(347, 207); this.intzaSET.SortColumnName = ""; this.intzaSET.SortType = SortType.Desc; this.intzaSET.TabIndex = 85; this.intzaBoard.AllowDrop = true; this.intzaBoard.BackColor = Color.FromArgb(30, 30, 30); this.intzaBoard.CanBlink = true; this.intzaBoard.CanDrag = false; this.intzaBoard.CanGetMouseMove = false; columnItem14.Alignment = StringAlignment.Near; columnItem14.BackColor = Color.FromArgb(64, 64, 64); columnItem14.ColumnAlignment = StringAlignment.Center; columnItem14.FontColor = Color.LightGray; columnItem14.MyStyle = FontStyle.Regular; columnItem14.Name = "name"; columnItem14.Text = "Board"; columnItem14.ValueFormat = FormatType.Text; columnItem14.Visible = true; columnItem14.Width = 20; columnItem15.Alignment = StringAlignment.Far; columnItem15.BackColor = Color.FromArgb(64, 64, 64); columnItem15.ColumnAlignment = StringAlignment.Center; columnItem15.FontColor = Color.LightGray; columnItem15.MyStyle = FontStyle.Regular; columnItem15.Name = "volume"; columnItem15.Text = "Volume"; columnItem15.ValueFormat = FormatType.Price; columnItem15.Visible = true; columnItem15.Width = 30; columnItem16.Alignment = StringAlignment.Far; columnItem16.BackColor = Color.FromArgb(64, 64, 64); columnItem16.ColumnAlignment = StringAlignment.Center; columnItem16.FontColor = Color.LightGray; columnItem16.MyStyle = FontStyle.Regular; columnItem16.Name = "value"; columnItem16.Text = "Value"; columnItem16.ValueFormat = FormatType.Volume; columnItem16.Visible = true; columnItem16.Width = 30; columnItem17.Alignment = StringAlignment.Far; columnItem17.BackColor = Color.FromArgb(64, 64, 64); columnItem17.ColumnAlignment = StringAlignment.Center; columnItem17.FontColor = Color.LightGray; columnItem17.MyStyle = FontStyle.Regular; columnItem17.Name = "value_pct"; columnItem17.Text = "%Value"; columnItem17.ValueFormat = FormatType.Price; columnItem17.Visible = true; columnItem17.Width = 20; this.intzaBoard.Columns.Add(columnItem14); this.intzaBoard.Columns.Add(columnItem15); this.intzaBoard.Columns.Add(columnItem16); this.intzaBoard.Columns.Add(columnItem17); this.intzaBoard.CurrentScroll = 0; this.intzaBoard.FocusItemIndex = -1; this.intzaBoard.ForeColor = Color.Black; this.intzaBoard.GridColor = Color.FromArgb(45, 45, 45); this.intzaBoard.HeaderPctHeight = 80f; this.intzaBoard.IsAutoRepaint = true; this.intzaBoard.IsDrawFullRow = false; this.intzaBoard.IsDrawGrid = false; this.intzaBoard.IsDrawHeader = true; this.intzaBoard.IsScrollable = false; this.intzaBoard.Location = new Point(359, 29); this.intzaBoard.MainColumn = ""; this.intzaBoard.Name = "intzaBoard"; this.intzaBoard.Rows = 5; this.intzaBoard.RowSelectColor = Color.FromArgb(95, 158, 160); this.intzaBoard.RowSelectType = 0; this.intzaBoard.RowsVisible = 5; this.intzaBoard.Size = new Size(313, 70); this.intzaBoard.SortColumnName = ""; this.intzaBoard.SortType = SortType.Desc; this.intzaBoard.TabIndex = 86; base.AutoScaleDimensions = new SizeF(6f, 13f); this.BackColor = Color.FromArgb(20, 20, 20); base.ClientSize = new Size(675, 403); base.Controls.Add(this.intzaMarketInfo); base.Controls.Add(this.intzaBoard); base.Controls.Add(this.intzaSET); base.Controls.Add(this.lbChartLoading); base.Controls.Add(this.pictureBox1); base.Controls.Add(this.toolStrip1); base.Controls.Add(this.panelSector); base.KeyPreview = true; base.Name = "frmMarketInfo"; this.Text = "Sector Statistic"; base.IDoShownDelay += new ClientBaseForm.OnShownDelayEventHandler(this.frmSectorInformation_IDOShownDelay); base.IDoLoadData += new ClientBaseForm.OnIDoLoadDataEventHandler(this.frmMarketInfo_IDoLoadData); base.IDoFontChanged += new ClientBaseForm.OnFontChangedEventHandler(this.frmSectorStatistic_IDoFontChanged); base.IDoCustomSizeChanged += new ClientBaseForm.CustomSizeChangedEventHandler(this.frmSectorInformation_IDOCustomSizeChanged); base.IDoReActivated += new ClientBaseForm.OnReActiveEventHandler(this.frmSectorStatistic_IDoReActivated); base.Controls.SetChildIndex(this.panelSector, 0); base.Controls.SetChildIndex(this.toolStrip1, 0); base.Controls.SetChildIndex(this.pictureBox1, 0); base.Controls.SetChildIndex(this.lbChartLoading, 0); base.Controls.SetChildIndex(this.intzaSET, 0); base.Controls.SetChildIndex(this.intzaBoard, 0); base.Controls.SetChildIndex(this.intzaMarketInfo, 0); this.tStripMenu.ResumeLayout(false); this.tStripMenu.PerformLayout(); this.panelSector.ResumeLayout(false); this.panelSector.PerformLayout(); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); ((ISupportInitialize)this.pictureBox1).EndInit(); base.ResumeLayout(false); base.PerformLayout(); }
private void InitializeComponent() { ColumnItem columnItem = new ColumnItem(); ColumnItem columnItem2 = new ColumnItem(); ColumnItem columnItem3 = new ColumnItem(); ColumnItem columnItem4 = new ColumnItem(); ColumnItem columnItem5 = new ColumnItem(); ColumnItem columnItem6 = new ColumnItem(); ColumnItem columnItem7 = new ColumnItem(); ColumnItem columnItem8 = new ColumnItem(); ColumnItem columnItem9 = new ColumnItem(); ColumnItem columnItem10 = new ColumnItem(); ColumnItem columnItem11 = new ColumnItem(); this.gridDcaDetail = new ExpandGrid(); this.lbDcaRefNo2 = new Label(); this.lbDcaRefNo1 = new Label(); this.btnReloadDcaDetail = new Button(); this.btnBack = new Button(); base.SuspendLayout(); this.gridDcaDetail.AllowDrop = true; this.gridDcaDetail.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right); this.gridDcaDetail.BackColor = Color.FromArgb(20, 20, 20); this.gridDcaDetail.CanBlink = true; this.gridDcaDetail.CanDrag = false; this.gridDcaDetail.CanGetMouseMove = false; columnItem.Alignment = StringAlignment.Center; columnItem.BackColor = Color.FromArgb(64, 64, 64); columnItem.FontColor = Color.LightGray; columnItem.IsExpand = false; columnItem.MyStyle = FontStyle.Regular; columnItem.Name = "no"; columnItem.Text = "No."; columnItem.ValueFormat = FormatType.Text; columnItem.Visible = true; columnItem.Width = 6; columnItem2.Alignment = StringAlignment.Center; columnItem2.BackColor = Color.FromArgb(64, 64, 64); columnItem2.FontColor = Color.LightGray; columnItem2.IsExpand = false; columnItem2.MyStyle = FontStyle.Regular; columnItem2.Name = "date"; columnItem2.Text = "Date"; columnItem2.ValueFormat = FormatType.Text; columnItem2.Visible = true; columnItem2.Width = 13; columnItem3.Alignment = StringAlignment.Far; columnItem3.BackColor = Color.FromArgb(64, 64, 64); columnItem3.FontColor = Color.LightGray; columnItem3.IsExpand = false; columnItem3.MyStyle = FontStyle.Regular; columnItem3.Name = "budget"; columnItem3.Text = "Budget"; columnItem3.ValueFormat = FormatType.Volume; columnItem3.Visible = true; columnItem3.Width = 13; columnItem4.Alignment = StringAlignment.Center; columnItem4.BackColor = Color.FromArgb(64, 64, 64); columnItem4.FontColor = Color.LightGray; columnItem4.IsExpand = false; columnItem4.MyStyle = FontStyle.Regular; columnItem4.Name = "buy_price"; columnItem4.Text = "Price"; columnItem4.ValueFormat = FormatType.Text; columnItem4.Visible = true; columnItem4.Width = 10; columnItem5.Alignment = StringAlignment.Far; columnItem5.BackColor = Color.FromArgb(64, 64, 64); columnItem5.FontColor = Color.LightGray; columnItem5.IsExpand = false; columnItem5.MyStyle = FontStyle.Regular; columnItem5.Name = "buy_volume"; columnItem5.Text = "Volume"; columnItem5.ValueFormat = FormatType.Volume; columnItem5.Visible = true; columnItem5.Width = 15; columnItem6.Alignment = StringAlignment.Far; columnItem6.BackColor = Color.FromArgb(64, 64, 64); columnItem6.FontColor = Color.LightGray; columnItem6.IsExpand = false; columnItem6.MyStyle = FontStyle.Regular; columnItem6.Name = "matvol"; columnItem6.Text = "Matched"; columnItem6.ValueFormat = FormatType.Volume; columnItem6.Visible = true; columnItem6.Width = 15; columnItem7.Alignment = StringAlignment.Center; columnItem7.BackColor = Color.FromArgb(64, 64, 64); columnItem7.FontColor = Color.LightGray; columnItem7.IsExpand = false; columnItem7.MyStyle = FontStyle.Regular; columnItem7.Name = "status"; columnItem7.Text = "Status"; columnItem7.ValueFormat = FormatType.Text; columnItem7.Visible = true; columnItem7.Width = 15; columnItem8.Alignment = StringAlignment.Center; columnItem8.BackColor = Color.FromArgb(64, 64, 64); columnItem8.FontColor = Color.LightGray; columnItem8.IsExpand = false; columnItem8.MyStyle = FontStyle.Regular; columnItem8.Name = "time"; columnItem8.Text = "Time"; columnItem8.ValueFormat = FormatType.Text; columnItem8.Visible = true; columnItem8.Width = 13; columnItem9.Alignment = StringAlignment.Center; columnItem9.BackColor = Color.FromArgb(64, 64, 64); columnItem9.FontColor = Color.LightGray; columnItem9.IsExpand = false; columnItem9.MyStyle = FontStyle.Regular; columnItem9.Name = "orderno"; columnItem9.Text = "Order#"; columnItem9.ValueFormat = FormatType.Text; columnItem9.Visible = true; columnItem9.Width = 15; columnItem10.Alignment = StringAlignment.Near; columnItem10.BackColor = Color.FromArgb(64, 64, 64); columnItem10.FontColor = Color.LightGray; columnItem10.IsExpand = false; columnItem10.MyStyle = FontStyle.Regular; columnItem10.Name = "message"; columnItem10.Text = "Message"; columnItem10.ValueFormat = FormatType.Text; columnItem10.Visible = true; columnItem10.Width = 78; columnItem11.Alignment = StringAlignment.Near; columnItem11.BackColor = Color.FromArgb(64, 64, 64); columnItem11.FontColor = Color.LightGray; columnItem11.IsExpand = false; columnItem11.MyStyle = FontStyle.Regular; columnItem11.Name = "tmp_date"; columnItem11.Text = "None"; columnItem11.ValueFormat = FormatType.Text; columnItem11.Visible = false; columnItem11.Width = 10; this.gridDcaDetail.Columns.Add(columnItem); this.gridDcaDetail.Columns.Add(columnItem2); this.gridDcaDetail.Columns.Add(columnItem3); this.gridDcaDetail.Columns.Add(columnItem4); this.gridDcaDetail.Columns.Add(columnItem5); this.gridDcaDetail.Columns.Add(columnItem6); this.gridDcaDetail.Columns.Add(columnItem7); this.gridDcaDetail.Columns.Add(columnItem8); this.gridDcaDetail.Columns.Add(columnItem9); this.gridDcaDetail.Columns.Add(columnItem10); this.gridDcaDetail.Columns.Add(columnItem11); this.gridDcaDetail.CurrentScroll = 0; this.gridDcaDetail.FocusItemIndex = -1; this.gridDcaDetail.ForeColor = Color.Black; this.gridDcaDetail.GridColor = Color.FromArgb(50, 50, 50); this.gridDcaDetail.HeaderPctHeight = 100f; this.gridDcaDetail.IsAutoRepaint = true; this.gridDcaDetail.IsDrawGrid = true; this.gridDcaDetail.IsDrawHeader = true; this.gridDcaDetail.IsScrollable = true; this.gridDcaDetail.Location = new Point(9, 36); this.gridDcaDetail.MainColumn = ""; this.gridDcaDetail.Name = "gridDcaDetail"; this.gridDcaDetail.Rows = 0; this.gridDcaDetail.RowSelectColor = Color.FromArgb(50, 50, 50); this.gridDcaDetail.RowSelectType = 3; this.gridDcaDetail.Size = new Size(665, 301); this.gridDcaDetail.SortColumnName = ""; this.gridDcaDetail.SortType = SortType.Desc; this.gridDcaDetail.TabIndex = 139; this.lbDcaRefNo2.AutoSize = true; this.lbDcaRefNo2.ForeColor = Color.Cyan; this.lbDcaRefNo2.Location = new Point(120, 13); this.lbDcaRefNo2.Name = "lbDcaRefNo2"; this.lbDcaRefNo2.Size = new Size(10, 13); this.lbDcaRefNo2.TabIndex = 142; this.lbDcaRefNo2.Text = "-"; this.lbDcaRefNo1.AutoSize = true; this.lbDcaRefNo1.ForeColor = Color.LightGray; this.lbDcaRefNo1.Location = new Point(73, 13); this.lbDcaRefNo1.Name = "lbDcaRefNo1"; this.lbDcaRefNo1.Size = new Size(44, 13); this.lbDcaRefNo1.TabIndex = 141; this.lbDcaRefNo1.Text = "Ref No."; this.btnReloadDcaDetail.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.btnReloadDcaDetail.BackColor = Color.Transparent; this.btnReloadDcaDetail.Cursor = Cursors.Hand; this.btnReloadDcaDetail.FlatAppearance.BorderColor = Color.DimGray; this.btnReloadDcaDetail.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnReloadDcaDetail.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnReloadDcaDetail.FlatStyle = FlatStyle.Flat; this.btnReloadDcaDetail.ForeColor = Color.LightGray; this.btnReloadDcaDetail.Image = Resources._1_4type_bt; this.btnReloadDcaDetail.Location = new Point(10, 8); this.btnReloadDcaDetail.MaximumSize = new Size(58, 23); this.btnReloadDcaDetail.Name = "btnReloadDcaDetail"; this.btnReloadDcaDetail.Size = new Size(54, 22); this.btnReloadDcaDetail.TabIndex = 140; this.btnReloadDcaDetail.TabStop = false; this.btnReloadDcaDetail.Text = "Reload"; this.btnReloadDcaDetail.UseVisualStyleBackColor = false; this.btnReloadDcaDetail.Click += new EventHandler(this.btnReloadDcaDetail_Click); this.btnBack.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.btnBack.AutoSizeMode = AutoSizeMode.GrowAndShrink; this.btnBack.BackColor = Color.Transparent; this.btnBack.Cursor = Cursors.Hand; this.btnBack.FlatAppearance.BorderColor = Color.DimGray; this.btnBack.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnBack.FlatAppearance.MouseOverBackColor = Color.FromArgb(0, 192, 192); this.btnBack.FlatStyle = FlatStyle.Flat; this.btnBack.ForeColor = Color.LightGray; this.btnBack.Image = Resources.no_side_button; this.btnBack.Location = new Point(620, 8); this.btnBack.MaximumSize = new Size(58, 23); this.btnBack.Name = "btnBack"; this.btnBack.Size = new Size(54, 22); this.btnBack.TabIndex = 149; this.btnBack.TabStop = false; this.btnBack.Text = "Back"; this.btnBack.UseVisualStyleBackColor = false; this.btnBack.Click += new EventHandler(this.btnBack_Click); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; this.BackColor = Color.FromArgb(30, 30, 30); base.ClientSize = new Size(684, 345); base.Controls.Add(this.btnBack); base.Controls.Add(this.gridDcaDetail); base.Controls.Add(this.lbDcaRefNo2); base.Controls.Add(this.lbDcaRefNo1); base.Controls.Add(this.btnReloadDcaDetail); base.FormBorderStyle = FormBorderStyle.None; base.Name = "frmDcaItemsInfo"; this.Text = "frmDcaItemsInfo"; base.Shown += new EventHandler(this.frmDcaItemsInfo_Shown); base.ResumeLayout(false); base.PerformLayout(); }
public void barPlot(DateTime odDatum, DateTime doDatum) { var items = new List <ColumnItem>(); var kat = new List <string>(); var list = Baza.getInstance.getSumiraneTroskoveURazdoblju(odDatum, doDatum); foreach (KeyValuePair <string, double> t in list) { var b = new ColumnItem(t.Value); items.Add(b); kat.Add(t.Key); } if (list.Count > 1) { int i = 0; var listaBoja = OxyPalettes.Cool(list.Count).Colors; foreach (ColumnItem cI in items) { cI.Color = listaBoja[i]; i++; } } var barSeries = new ColumnSeries() { ItemsSource = items, LabelPlacement = LabelPlacement.Base, LabelFormatString = "{0:.00} kn" }; var model = new PlotModel { Title = "Statistika za razdoblje: " + odDatum.ToShortDateString() + " - " + doDatum.ToShortDateString() }; this.SetSizeRequest(800, 600); var pv = new PlotView(); model.Series.Add(barSeries); model.Axes.Add(new CategoryAxis { Position = AxisPosition.Bottom, Key = "Datum", ItemsSource = kat }); model.Axes.Add(new LinearAxis { Position = AxisPosition.Left, Minimum = 0, LabelFormatter = StringManipulator.formatter }); pv.Model = model; var v = new VBox(); v.Add(pv); var save = new Button(ImageButton.imageButton("gtk-save")); save.Clicked += (sender, e) => { PlotSaver.saveToFile(this, "BarChart_" + odDatum.ToShortDateString() + "_-_" + doDatum.ToShortDateString() + ".png", model); }; v.PackStart(save, false, false, 10); this.Add(v); this.ShowAll(); }
private void InitializeComponent() { ItemGrid itemGrid = new ItemGrid(); ItemGrid itemGrid2 = new ItemGrid(); ItemGrid itemGrid3 = new ItemGrid(); ItemGrid itemGrid4 = new ItemGrid(); ItemGrid itemGrid5 = new ItemGrid(); ItemGrid itemGrid6 = new ItemGrid(); ItemGrid itemGrid7 = new ItemGrid(); ItemGrid itemGrid8 = new ItemGrid(); ItemGrid itemGrid9 = new ItemGrid(); ItemGrid itemGrid10 = new ItemGrid(); ItemGrid itemGrid11 = new ItemGrid(); ItemGrid itemGrid12 = new ItemGrid(); ItemGrid itemGrid13 = new ItemGrid(); ItemGrid itemGrid14 = new ItemGrid(); ItemGrid itemGrid15 = new ItemGrid(); ItemGrid itemGrid16 = new ItemGrid(); ItemGrid itemGrid17 = new ItemGrid(); ItemGrid itemGrid18 = new ItemGrid(); ItemGrid itemGrid19 = new ItemGrid(); ItemGrid itemGrid20 = new ItemGrid(); ItemGrid itemGrid21 = new ItemGrid(); ItemGrid itemGrid22 = new ItemGrid(); ItemGrid itemGrid23 = new ItemGrid(); ItemGrid itemGrid24 = new ItemGrid(); ItemGrid itemGrid25 = new ItemGrid(); ItemGrid itemGrid26 = new ItemGrid(); ItemGrid itemGrid27 = new ItemGrid(); ItemGrid itemGrid28 = new ItemGrid(); ItemGrid itemGrid29 = new ItemGrid(); ItemGrid itemGrid30 = new ItemGrid(); ItemGrid itemGrid31 = new ItemGrid(); ItemGrid itemGrid32 = new ItemGrid(); ItemGrid itemGrid33 = new ItemGrid(); ItemGrid itemGrid34 = new ItemGrid(); ItemGrid itemGrid35 = new ItemGrid(); ItemGrid itemGrid36 = new ItemGrid(); ItemGrid itemGrid37 = new ItemGrid(); ItemGrid itemGrid38 = new ItemGrid(); ItemGrid itemGrid39 = new ItemGrid(); ItemGrid itemGrid40 = new ItemGrid(); ItemGrid itemGrid41 = new ItemGrid(); ItemGrid itemGrid42 = new ItemGrid(); ItemGrid itemGrid43 = new ItemGrid(); ItemGrid itemGrid44 = new ItemGrid(); ItemGrid itemGrid45 = new ItemGrid(); ItemGrid itemGrid46 = new ItemGrid(); ColumnItem columnItem = new ColumnItem(); ColumnItem columnItem2 = new ColumnItem(); ColumnItem columnItem3 = new ColumnItem(); ColumnItem columnItem4 = new ColumnItem(); this.intzaInfo1 = new IntzaCustomGrid(); this.intzaInfo2 = new IntzaCustomGrid(); this.intzaInfo3 = new IntzaCustomGrid(); this.lbError = new Label(); this.intzaDeal = new SortGrid(); base.SuspendLayout(); this.intzaInfo1.AllowDrop = true; this.intzaInfo1.BackColor = Color.FromArgb(30, 30, 30); this.intzaInfo1.CanDrag = false; this.intzaInfo1.IsAutoRepaint = true; this.intzaInfo1.IsDroped = false; itemGrid.AdjustFontSize = 0f; itemGrid.Alignment = StringAlignment.Near; itemGrid.BackColor = Color.FromArgb(30, 30, 30); itemGrid.Changed = false; itemGrid.FieldType = ItemType.Label2; itemGrid.FontColor = Color.White; itemGrid.FontStyle = FontStyle.Regular; itemGrid.Height = 1f; itemGrid.IsBlink = 0; itemGrid.Name = "lbOrderNumber"; itemGrid.Text = "Order No."; itemGrid.ValueFormat = FormatType.Text; itemGrid.Visible = true; itemGrid.Width = 52; itemGrid.X = 0; itemGrid.Y = 0f; itemGrid2.AdjustFontSize = 0f; itemGrid2.Alignment = StringAlignment.Far; itemGrid2.BackColor = Color.FromArgb(30, 30, 30); itemGrid2.Changed = false; itemGrid2.FieldType = ItemType.Text; itemGrid2.FontColor = Color.Cyan; itemGrid2.FontStyle = FontStyle.Regular; itemGrid2.Height = 1f; itemGrid2.IsBlink = 0; itemGrid2.Name = "tbOrderNumber"; itemGrid2.Text = "10000001"; itemGrid2.ValueFormat = FormatType.Text; itemGrid2.Visible = true; itemGrid2.Width = 48; itemGrid2.X = 52; itemGrid2.Y = 0f; itemGrid3.AdjustFontSize = 0f; itemGrid3.Alignment = StringAlignment.Near; itemGrid3.BackColor = Color.FromArgb(30, 30, 30); itemGrid3.Changed = false; itemGrid3.FieldType = ItemType.Label2; itemGrid3.FontColor = Color.White; itemGrid3.FontStyle = FontStyle.Regular; itemGrid3.Height = 1f; itemGrid3.IsBlink = 0; itemGrid3.Name = "lbSide"; itemGrid3.Text = "Side"; itemGrid3.ValueFormat = FormatType.Text; itemGrid3.Visible = true; itemGrid3.Width = 52; itemGrid3.X = 0; itemGrid3.Y = 1f; itemGrid4.AdjustFontSize = 0f; itemGrid4.Alignment = StringAlignment.Far; itemGrid4.BackColor = Color.FromArgb(30, 30, 30); itemGrid4.Changed = false; itemGrid4.FieldType = ItemType.Text; itemGrid4.FontColor = Color.White; itemGrid4.FontStyle = FontStyle.Regular; itemGrid4.Height = 1f; itemGrid4.IsBlink = 0; itemGrid4.Name = "tbSide"; itemGrid4.Text = ""; itemGrid4.ValueFormat = FormatType.Text; itemGrid4.Visible = true; itemGrid4.Width = 48; itemGrid4.X = 52; itemGrid4.Y = 1f; itemGrid5.AdjustFontSize = 0f; itemGrid5.Alignment = StringAlignment.Near; itemGrid5.BackColor = Color.FromArgb(30, 30, 30); itemGrid5.Changed = false; itemGrid5.FieldType = ItemType.Label2; itemGrid5.FontColor = Color.White; itemGrid5.FontStyle = FontStyle.Regular; itemGrid5.Height = 1f; itemGrid5.IsBlink = 0; itemGrid5.Name = "lbStock"; itemGrid5.Text = "Symbol"; itemGrid5.ValueFormat = FormatType.Text; itemGrid5.Visible = true; itemGrid5.Width = 52; itemGrid5.X = 0; itemGrid5.Y = 2f; itemGrid6.AdjustFontSize = 0f; itemGrid6.Alignment = StringAlignment.Far; itemGrid6.BackColor = Color.FromArgb(30, 30, 30); itemGrid6.Changed = false; itemGrid6.FieldType = ItemType.Text; itemGrid6.FontColor = Color.Yellow; itemGrid6.FontStyle = FontStyle.Regular; itemGrid6.Height = 1f; itemGrid6.IsBlink = 0; itemGrid6.Name = "tbStock"; itemGrid6.Text = ""; itemGrid6.ValueFormat = FormatType.Text; itemGrid6.Visible = true; itemGrid6.Width = 48; itemGrid6.X = 52; itemGrid6.Y = 2f; itemGrid7.AdjustFontSize = 0f; itemGrid7.Alignment = StringAlignment.Near; itemGrid7.BackColor = Color.FromArgb(30, 30, 30); itemGrid7.Changed = false; itemGrid7.FieldType = ItemType.Label2; itemGrid7.FontColor = Color.White; itemGrid7.FontStyle = FontStyle.Regular; itemGrid7.Height = 1f; itemGrid7.IsBlink = 0; itemGrid7.Name = "lbVolume"; itemGrid7.Text = "Volume"; itemGrid7.ValueFormat = FormatType.Text; itemGrid7.Visible = true; itemGrid7.Width = 52; itemGrid7.X = 0; itemGrid7.Y = 3f; itemGrid8.AdjustFontSize = 0f; itemGrid8.Alignment = StringAlignment.Far; itemGrid8.BackColor = Color.FromArgb(30, 30, 30); itemGrid8.Changed = false; itemGrid8.FieldType = ItemType.Text; itemGrid8.FontColor = Color.Yellow; itemGrid8.FontStyle = FontStyle.Regular; itemGrid8.Height = 1f; itemGrid8.IsBlink = 0; itemGrid8.Name = "tbVolume"; itemGrid8.Text = ""; itemGrid8.ValueFormat = FormatType.Volume; itemGrid8.Visible = true; itemGrid8.Width = 48; itemGrid8.X = 52; itemGrid8.Y = 3f; itemGrid9.AdjustFontSize = 0f; itemGrid9.Alignment = StringAlignment.Near; itemGrid9.BackColor = Color.FromArgb(30, 30, 30); itemGrid9.Changed = false; itemGrid9.FieldType = ItemType.Label2; itemGrid9.FontColor = Color.White; itemGrid9.FontStyle = FontStyle.Regular; itemGrid9.Height = 1f; itemGrid9.IsBlink = 0; itemGrid9.Name = "lbPrice"; itemGrid9.Text = "Price"; itemGrid9.ValueFormat = FormatType.Text; itemGrid9.Visible = true; itemGrid9.Width = 52; itemGrid9.X = 0; itemGrid9.Y = 4f; itemGrid10.AdjustFontSize = 0f; itemGrid10.Alignment = StringAlignment.Far; itemGrid10.BackColor = Color.FromArgb(30, 30, 30); itemGrid10.Changed = false; itemGrid10.FieldType = ItemType.Text; itemGrid10.FontColor = Color.Yellow; itemGrid10.FontStyle = FontStyle.Regular; itemGrid10.Height = 1f; itemGrid10.IsBlink = 0; itemGrid10.Name = "tbPrice"; itemGrid10.Text = ""; itemGrid10.ValueFormat = FormatType.Text; itemGrid10.Visible = true; itemGrid10.Width = 48; itemGrid10.X = 52; itemGrid10.Y = 4f; itemGrid11.AdjustFontSize = 0f; itemGrid11.Alignment = StringAlignment.Near; itemGrid11.BackColor = Color.FromArgb(30, 30, 30); itemGrid11.Changed = false; itemGrid11.FieldType = ItemType.Label2; itemGrid11.FontColor = Color.White; itemGrid11.FontStyle = FontStyle.Regular; itemGrid11.Height = 1f; itemGrid11.IsBlink = 0; itemGrid11.Name = "lbMatched"; itemGrid11.Text = "Matched"; itemGrid11.ValueFormat = FormatType.Text; itemGrid11.Visible = true; itemGrid11.Width = 52; itemGrid11.X = 0; itemGrid11.Y = 5f; itemGrid12.AdjustFontSize = 0f; itemGrid12.Alignment = StringAlignment.Far; itemGrid12.BackColor = Color.FromArgb(30, 30, 30); itemGrid12.Changed = false; itemGrid12.FieldType = ItemType.Text; itemGrid12.FontColor = Color.Cyan; itemGrid12.FontStyle = FontStyle.Regular; itemGrid12.Height = 1f; itemGrid12.IsBlink = 0; itemGrid12.Name = "tbMatched"; itemGrid12.Text = ""; itemGrid12.ValueFormat = FormatType.Volume; itemGrid12.Visible = true; itemGrid12.Width = 48; itemGrid12.X = 52; itemGrid12.Y = 5f; itemGrid13.AdjustFontSize = 0f; itemGrid13.Alignment = StringAlignment.Near; itemGrid13.BackColor = Color.FromArgb(30, 30, 30); itemGrid13.Changed = false; itemGrid13.FieldType = ItemType.Label2; itemGrid13.FontColor = Color.White; itemGrid13.FontStyle = FontStyle.Regular; itemGrid13.Height = 1f; itemGrid13.IsBlink = 0; itemGrid13.Name = "lbPublished"; itemGrid13.Text = "Published"; itemGrid13.ValueFormat = FormatType.Text; itemGrid13.Visible = true; itemGrid13.Width = 52; itemGrid13.X = 0; itemGrid13.Y = 6f; itemGrid14.AdjustFontSize = 0f; itemGrid14.Alignment = StringAlignment.Far; itemGrid14.BackColor = Color.FromArgb(30, 30, 30); itemGrid14.Changed = false; itemGrid14.FieldType = ItemType.Text; itemGrid14.FontColor = Color.Cyan; itemGrid14.FontStyle = FontStyle.Regular; itemGrid14.Height = 1f; itemGrid14.IsBlink = 0; itemGrid14.Name = "tbPublished"; itemGrid14.Text = ""; itemGrid14.ValueFormat = FormatType.Volume; itemGrid14.Visible = true; itemGrid14.Width = 48; itemGrid14.X = 52; itemGrid14.Y = 6f; itemGrid15.AdjustFontSize = 0f; itemGrid15.Alignment = StringAlignment.Near; itemGrid15.BackColor = Color.FromArgb(30, 30, 30); itemGrid15.Changed = false; itemGrid15.FieldType = ItemType.Label2; itemGrid15.FontColor = Color.White; itemGrid15.FontStyle = FontStyle.Regular; itemGrid15.Height = 1f; itemGrid15.IsBlink = 0; itemGrid15.Name = "lbCondition"; itemGrid15.Text = "Condition"; itemGrid15.ValueFormat = FormatType.Text; itemGrid15.Visible = true; itemGrid15.Width = 52; itemGrid15.X = 0; itemGrid15.Y = 7f; itemGrid16.AdjustFontSize = 0f; itemGrid16.Alignment = StringAlignment.Far; itemGrid16.BackColor = Color.FromArgb(30, 30, 30); itemGrid16.Changed = false; itemGrid16.FieldType = ItemType.Text; itemGrid16.FontColor = Color.Yellow; itemGrid16.FontStyle = FontStyle.Regular; itemGrid16.Height = 1f; itemGrid16.IsBlink = 0; itemGrid16.Name = "tbCondition"; itemGrid16.Text = ""; itemGrid16.ValueFormat = FormatType.Text; itemGrid16.Visible = true; itemGrid16.Width = 48; itemGrid16.X = 52; itemGrid16.Y = 7f; this.intzaInfo1.Items.Add(itemGrid); this.intzaInfo1.Items.Add(itemGrid2); this.intzaInfo1.Items.Add(itemGrid3); this.intzaInfo1.Items.Add(itemGrid4); this.intzaInfo1.Items.Add(itemGrid5); this.intzaInfo1.Items.Add(itemGrid6); this.intzaInfo1.Items.Add(itemGrid7); this.intzaInfo1.Items.Add(itemGrid8); this.intzaInfo1.Items.Add(itemGrid9); this.intzaInfo1.Items.Add(itemGrid10); this.intzaInfo1.Items.Add(itemGrid11); this.intzaInfo1.Items.Add(itemGrid12); this.intzaInfo1.Items.Add(itemGrid13); this.intzaInfo1.Items.Add(itemGrid14); this.intzaInfo1.Items.Add(itemGrid15); this.intzaInfo1.Items.Add(itemGrid16); this.intzaInfo1.LineColor = Color.Red; this.intzaInfo1.Location = new Point(2, 2); this.intzaInfo1.Name = "intzaInfo1"; this.intzaInfo1.Size = new Size(151, 151); this.intzaInfo1.TabIndex = 150; this.intzaInfo2.AllowDrop = true; this.intzaInfo2.BackColor = Color.FromArgb(30, 30, 30); this.intzaInfo2.CanDrag = false; this.intzaInfo2.IsAutoRepaint = true; this.intzaInfo2.IsDroped = false; itemGrid17.AdjustFontSize = 0f; itemGrid17.Alignment = StringAlignment.Near; itemGrid17.BackColor = Color.FromArgb(30, 30, 30); itemGrid17.Changed = false; itemGrid17.FieldType = ItemType.Label2; itemGrid17.FontColor = Color.White; itemGrid17.FontStyle = FontStyle.Regular; itemGrid17.Height = 1f; itemGrid17.IsBlink = 0; itemGrid17.Name = "lbAccount"; itemGrid17.Text = "Account"; itemGrid17.ValueFormat = FormatType.Text; itemGrid17.Visible = true; itemGrid17.Width = 58; itemGrid17.X = 0; itemGrid17.Y = 0f; itemGrid18.AdjustFontSize = -1f; itemGrid18.Alignment = StringAlignment.Far; itemGrid18.BackColor = Color.FromArgb(30, 30, 30); itemGrid18.Changed = false; itemGrid18.FieldType = ItemType.Text; itemGrid18.FontColor = Color.Cyan; itemGrid18.FontStyle = FontStyle.Regular; itemGrid18.Height = 1f; itemGrid18.IsBlink = 0; itemGrid18.Name = "tbAccount"; itemGrid18.Text = ""; itemGrid18.ValueFormat = FormatType.Text; itemGrid18.Visible = true; itemGrid18.Width = 42; itemGrid18.X = 58; itemGrid18.Y = 0f; itemGrid19.AdjustFontSize = 0f; itemGrid19.Alignment = StringAlignment.Near; itemGrid19.BackColor = Color.FromArgb(30, 30, 30); itemGrid19.Changed = false; itemGrid19.FieldType = ItemType.Label2; itemGrid19.FontColor = Color.White; itemGrid19.FontStyle = FontStyle.Regular; itemGrid19.Height = 1f; itemGrid19.IsBlink = 0; itemGrid19.Name = "lbPC"; itemGrid19.Text = "PC"; itemGrid19.ValueFormat = FormatType.Text; itemGrid19.Visible = true; itemGrid19.Width = 58; itemGrid19.X = 0; itemGrid19.Y = 1f; itemGrid20.AdjustFontSize = 0f; itemGrid20.Alignment = StringAlignment.Far; itemGrid20.BackColor = Color.FromArgb(30, 30, 30); itemGrid20.Changed = false; itemGrid20.FieldType = ItemType.Text; itemGrid20.FontColor = Color.Yellow; itemGrid20.FontStyle = FontStyle.Regular; itemGrid20.Height = 1f; itemGrid20.IsBlink = 0; itemGrid20.Name = "tbPC"; itemGrid20.Text = ""; itemGrid20.ValueFormat = FormatType.Text; itemGrid20.Visible = true; itemGrid20.Width = 42; itemGrid20.X = 58; itemGrid20.Y = 1f; itemGrid21.AdjustFontSize = 0f; itemGrid21.Alignment = StringAlignment.Near; itemGrid21.BackColor = Color.FromArgb(30, 30, 30); itemGrid21.Changed = false; itemGrid21.FieldType = ItemType.Label2; itemGrid21.FontColor = Color.White; itemGrid21.FontStyle = FontStyle.Regular; itemGrid21.Height = 1f; itemGrid21.IsBlink = 0; itemGrid21.Name = "lbStatus"; itemGrid21.Text = "Status"; itemGrid21.ValueFormat = FormatType.Text; itemGrid21.Visible = true; itemGrid21.Width = 58; itemGrid21.X = 0; itemGrid21.Y = 2f; itemGrid22.AdjustFontSize = 0f; itemGrid22.Alignment = StringAlignment.Far; itemGrid22.BackColor = Color.FromArgb(30, 30, 30); itemGrid22.Changed = false; itemGrid22.FieldType = ItemType.Text; itemGrid22.FontColor = Color.Cyan; itemGrid22.FontStyle = FontStyle.Regular; itemGrid22.Height = 1f; itemGrid22.IsBlink = 0; itemGrid22.Name = "tbStatus"; itemGrid22.Text = ""; itemGrid22.ValueFormat = FormatType.Text; itemGrid22.Visible = true; itemGrid22.Width = 42; itemGrid22.X = 58; itemGrid22.Y = 2f; itemGrid23.AdjustFontSize = 0f; itemGrid23.Alignment = StringAlignment.Near; itemGrid23.BackColor = Color.FromArgb(30, 30, 30); itemGrid23.Changed = false; itemGrid23.FieldType = ItemType.Label2; itemGrid23.FontColor = Color.White; itemGrid23.FontStyle = FontStyle.Regular; itemGrid23.Height = 1f; itemGrid23.IsBlink = 0; itemGrid23.Name = "lbEntryTime"; itemGrid23.Text = "Entry Time"; itemGrid23.ValueFormat = FormatType.Text; itemGrid23.Visible = true; itemGrid23.Width = 58; itemGrid23.X = 0; itemGrid23.Y = 3f; itemGrid24.AdjustFontSize = 0f; itemGrid24.Alignment = StringAlignment.Far; itemGrid24.BackColor = Color.FromArgb(30, 30, 30); itemGrid24.Changed = false; itemGrid24.FieldType = ItemType.Text; itemGrid24.FontColor = Color.Yellow; itemGrid24.FontStyle = FontStyle.Regular; itemGrid24.Height = 1f; itemGrid24.IsBlink = 0; itemGrid24.Name = "tbEntryTime"; itemGrid24.Text = ""; itemGrid24.ValueFormat = FormatType.Text; itemGrid24.Visible = true; itemGrid24.Width = 42; itemGrid24.X = 58; itemGrid24.Y = 3f; itemGrid25.AdjustFontSize = 0f; itemGrid25.Alignment = StringAlignment.Near; itemGrid25.BackColor = Color.FromArgb(30, 30, 30); itemGrid25.Changed = false; itemGrid25.FieldType = ItemType.Label2; itemGrid25.FontColor = Color.White; itemGrid25.FontStyle = FontStyle.Regular; itemGrid25.Height = 1f; itemGrid25.IsBlink = 0; itemGrid25.Name = "lbQuote"; itemGrid25.Text = "Quote"; itemGrid25.ValueFormat = FormatType.Text; itemGrid25.Visible = true; itemGrid25.Width = 58; itemGrid25.X = 0; itemGrid25.Y = 4f; itemGrid26.AdjustFontSize = 0f; itemGrid26.Alignment = StringAlignment.Far; itemGrid26.BackColor = Color.FromArgb(30, 30, 30); itemGrid26.Changed = false; itemGrid26.FieldType = ItemType.Text; itemGrid26.FontColor = Color.Yellow; itemGrid26.FontStyle = FontStyle.Regular; itemGrid26.Height = 1f; itemGrid26.IsBlink = 0; itemGrid26.Name = "tbQuote"; itemGrid26.Text = ""; itemGrid26.ValueFormat = FormatType.Text; itemGrid26.Visible = true; itemGrid26.Width = 42; itemGrid26.X = 58; itemGrid26.Y = 4f; itemGrid27.AdjustFontSize = 0f; itemGrid27.Alignment = StringAlignment.Near; itemGrid27.BackColor = Color.FromArgb(30, 30, 30); itemGrid27.Changed = false; itemGrid27.FieldType = ItemType.Label2; itemGrid27.FontColor = Color.White; itemGrid27.FontStyle = FontStyle.Regular; itemGrid27.Height = 1f; itemGrid27.IsBlink = 0; itemGrid27.Name = "lbQuoteTime"; itemGrid27.Text = "Quote Time"; itemGrid27.ValueFormat = FormatType.Text; itemGrid27.Visible = true; itemGrid27.Width = 58; itemGrid27.X = 0; itemGrid27.Y = 5f; itemGrid28.AdjustFontSize = 0f; itemGrid28.Alignment = StringAlignment.Far; itemGrid28.BackColor = Color.FromArgb(30, 30, 30); itemGrid28.Changed = false; itemGrid28.FieldType = ItemType.Text; itemGrid28.FontColor = Color.Yellow; itemGrid28.FontStyle = FontStyle.Regular; itemGrid28.Height = 1f; itemGrid28.IsBlink = 0; itemGrid28.Name = "tbQuoteTime"; itemGrid28.Text = ""; itemGrid28.ValueFormat = FormatType.Text; itemGrid28.Visible = true; itemGrid28.Width = 42; itemGrid28.X = 58; itemGrid28.Y = 5f; itemGrid29.AdjustFontSize = 0f; itemGrid29.Alignment = StringAlignment.Near; itemGrid29.BackColor = Color.FromArgb(30, 30, 30); itemGrid29.Changed = false; itemGrid29.FieldType = ItemType.Label2; itemGrid29.FontColor = Color.White; itemGrid29.FontStyle = FontStyle.Regular; itemGrid29.Height = 1f; itemGrid29.IsBlink = 0; itemGrid29.Name = "lbOrigPrice"; itemGrid29.Text = "Original Price"; itemGrid29.ValueFormat = FormatType.Text; itemGrid29.Visible = true; itemGrid29.Width = 58; itemGrid29.X = 0; itemGrid29.Y = 6f; itemGrid30.AdjustFontSize = 0f; itemGrid30.Alignment = StringAlignment.Far; itemGrid30.BackColor = Color.FromArgb(30, 30, 30); itemGrid30.Changed = false; itemGrid30.FieldType = ItemType.Text; itemGrid30.FontColor = Color.Yellow; itemGrid30.FontStyle = FontStyle.Regular; itemGrid30.Height = 1f; itemGrid30.IsBlink = 0; itemGrid30.Name = "tbOrigPrice"; itemGrid30.Text = ""; itemGrid30.ValueFormat = FormatType.Text; itemGrid30.Visible = true; itemGrid30.Width = 42; itemGrid30.X = 58; itemGrid30.Y = 6f; itemGrid31.AdjustFontSize = 0f; itemGrid31.Alignment = StringAlignment.Near; itemGrid31.BackColor = Color.FromArgb(30, 30, 30); itemGrid31.Changed = false; itemGrid31.FieldType = ItemType.Label2; itemGrid31.FontColor = Color.White; itemGrid31.FontStyle = FontStyle.Regular; itemGrid31.Height = 1f; itemGrid31.IsBlink = 0; itemGrid31.Name = "lbEntryId"; itemGrid31.Text = "Entry Id"; itemGrid31.ValueFormat = FormatType.Text; itemGrid31.Visible = true; itemGrid31.Width = 58; itemGrid31.X = 0; itemGrid31.Y = 7f; itemGrid32.AdjustFontSize = 0f; itemGrid32.Alignment = StringAlignment.Far; itemGrid32.BackColor = Color.FromArgb(30, 30, 30); itemGrid32.Changed = false; itemGrid32.FieldType = ItemType.Text; itemGrid32.FontColor = Color.Yellow; itemGrid32.FontStyle = FontStyle.Regular; itemGrid32.Height = 1f; itemGrid32.IsBlink = 0; itemGrid32.Name = "tbEntryId"; itemGrid32.Text = ""; itemGrid32.ValueFormat = FormatType.Text; itemGrid32.Visible = true; itemGrid32.Width = 42; itemGrid32.X = 58; itemGrid32.Y = 7f; this.intzaInfo2.Items.Add(itemGrid17); this.intzaInfo2.Items.Add(itemGrid18); this.intzaInfo2.Items.Add(itemGrid19); this.intzaInfo2.Items.Add(itemGrid20); this.intzaInfo2.Items.Add(itemGrid21); this.intzaInfo2.Items.Add(itemGrid22); this.intzaInfo2.Items.Add(itemGrid23); this.intzaInfo2.Items.Add(itemGrid24); this.intzaInfo2.Items.Add(itemGrid25); this.intzaInfo2.Items.Add(itemGrid26); this.intzaInfo2.Items.Add(itemGrid27); this.intzaInfo2.Items.Add(itemGrid28); this.intzaInfo2.Items.Add(itemGrid29); this.intzaInfo2.Items.Add(itemGrid30); this.intzaInfo2.Items.Add(itemGrid31); this.intzaInfo2.Items.Add(itemGrid32); this.intzaInfo2.LineColor = Color.Red; this.intzaInfo2.Location = new Point(155, 2); this.intzaInfo2.Name = "intzaInfo2"; this.intzaInfo2.Size = new Size(149, 151); this.intzaInfo2.TabIndex = 151; this.intzaInfo3.AllowDrop = true; this.intzaInfo3.BackColor = Color.FromArgb(30, 30, 30); this.intzaInfo3.CanDrag = false; this.intzaInfo3.IsAutoRepaint = true; this.intzaInfo3.IsDroped = false; itemGrid33.AdjustFontSize = 0f; itemGrid33.Alignment = StringAlignment.Near; itemGrid33.BackColor = Color.FromArgb(30, 30, 30); itemGrid33.Changed = false; itemGrid33.FieldType = ItemType.Label2; itemGrid33.FontColor = Color.White; itemGrid33.FontStyle = FontStyle.Regular; itemGrid33.Height = 1f; itemGrid33.IsBlink = 0; itemGrid33.Name = "lbApprover"; itemGrid33.Text = "Approver"; itemGrid33.ValueFormat = FormatType.Text; itemGrid33.Visible = true; itemGrid33.Width = 50; itemGrid33.X = 0; itemGrid33.Y = 0f; itemGrid34.AdjustFontSize = 0f; itemGrid34.Alignment = StringAlignment.Far; itemGrid34.BackColor = Color.FromArgb(30, 30, 30); itemGrid34.Changed = false; itemGrid34.FieldType = ItemType.Text; itemGrid34.FontColor = Color.Yellow; itemGrid34.FontStyle = FontStyle.Regular; itemGrid34.Height = 1f; itemGrid34.IsBlink = 0; itemGrid34.Name = "tbApprover"; itemGrid34.Text = ""; itemGrid34.ValueFormat = FormatType.Text; itemGrid34.Visible = true; itemGrid34.Width = 50; itemGrid34.X = 50; itemGrid34.Y = 0f; itemGrid35.AdjustFontSize = 0f; itemGrid35.Alignment = StringAlignment.Near; itemGrid35.BackColor = Color.FromArgb(30, 30, 30); itemGrid35.Changed = false; itemGrid35.FieldType = ItemType.Label2; itemGrid35.FontColor = Color.White; itemGrid35.FontStyle = FontStyle.Regular; itemGrid35.Height = 1f; itemGrid35.IsBlink = 0; itemGrid35.Name = "lbCanceller"; itemGrid35.Text = "Canceller"; itemGrid35.ValueFormat = FormatType.Text; itemGrid35.Visible = true; itemGrid35.Width = 50; itemGrid35.X = 0; itemGrid35.Y = 1f; itemGrid36.AdjustFontSize = 0f; itemGrid36.Alignment = StringAlignment.Far; itemGrid36.BackColor = Color.FromArgb(30, 30, 30); itemGrid36.Changed = false; itemGrid36.FieldType = ItemType.Text; itemGrid36.FontColor = Color.Yellow; itemGrid36.FontStyle = FontStyle.Regular; itemGrid36.Height = 1f; itemGrid36.IsBlink = 0; itemGrid36.Name = "tbCanceller"; itemGrid36.Text = ""; itemGrid36.ValueFormat = FormatType.Text; itemGrid36.Visible = true; itemGrid36.Width = 50; itemGrid36.X = 50; itemGrid36.Y = 1f; itemGrid37.AdjustFontSize = 0f; itemGrid37.Alignment = StringAlignment.Near; itemGrid37.BackColor = Color.FromArgb(30, 30, 30); itemGrid37.Changed = false; itemGrid37.FieldType = ItemType.Label2; itemGrid37.FontColor = Color.White; itemGrid37.FontStyle = FontStyle.Regular; itemGrid37.Height = 1f; itemGrid37.IsBlink = 0; itemGrid37.Name = "lbCancelTime"; itemGrid37.Text = "Cancel Time"; itemGrid37.ValueFormat = FormatType.Text; itemGrid37.Visible = true; itemGrid37.Width = 50; itemGrid37.X = 0; itemGrid37.Y = 2f; itemGrid38.AdjustFontSize = 0f; itemGrid38.Alignment = StringAlignment.Far; itemGrid38.BackColor = Color.FromArgb(30, 30, 30); itemGrid38.Changed = false; itemGrid38.FieldType = ItemType.Text; itemGrid38.FontColor = Color.Yellow; itemGrid38.FontStyle = FontStyle.Regular; itemGrid38.Height = 1f; itemGrid38.IsBlink = 0; itemGrid38.Name = "tbCancelTime"; itemGrid38.Text = ""; itemGrid38.ValueFormat = FormatType.Text; itemGrid38.Visible = true; itemGrid38.Width = 50; itemGrid38.X = 50; itemGrid38.Y = 2f; itemGrid39.AdjustFontSize = 0f; itemGrid39.Alignment = StringAlignment.Near; itemGrid39.BackColor = Color.FromArgb(30, 30, 30); itemGrid39.Changed = false; itemGrid39.FieldType = ItemType.Label2; itemGrid39.FontColor = Color.White; itemGrid39.FontStyle = FontStyle.Regular; itemGrid39.Height = 1f; itemGrid39.IsBlink = 0; itemGrid39.Name = "lbSource"; itemGrid39.Text = "Type"; itemGrid39.ValueFormat = FormatType.Text; itemGrid39.Visible = true; itemGrid39.Width = 50; itemGrid39.X = 0; itemGrid39.Y = 3f; itemGrid40.AdjustFontSize = 0f; itemGrid40.Alignment = StringAlignment.Far; itemGrid40.BackColor = Color.FromArgb(30, 30, 30); itemGrid40.Changed = false; itemGrid40.FieldType = ItemType.Text; itemGrid40.FontColor = Color.Yellow; itemGrid40.FontStyle = FontStyle.Regular; itemGrid40.Height = 1f; itemGrid40.IsBlink = 0; itemGrid40.Name = "tbSource"; itemGrid40.Text = ""; itemGrid40.ValueFormat = FormatType.Text; itemGrid40.Visible = true; itemGrid40.Width = 50; itemGrid40.X = 50; itemGrid40.Y = 3f; itemGrid41.AdjustFontSize = 0f; itemGrid41.Alignment = StringAlignment.Near; itemGrid41.BackColor = Color.FromArgb(30, 30, 30); itemGrid41.Changed = false; itemGrid41.FieldType = ItemType.Label2; itemGrid41.FontColor = Color.White; itemGrid41.FontStyle = FontStyle.Regular; itemGrid41.Height = 1f; itemGrid41.IsBlink = 0; itemGrid41.Name = "lbTerminal"; itemGrid41.Text = "Terminal"; itemGrid41.ValueFormat = FormatType.Text; itemGrid41.Visible = true; itemGrid41.Width = 50; itemGrid41.X = 0; itemGrid41.Y = 4f; itemGrid42.AdjustFontSize = 0f; itemGrid42.Alignment = StringAlignment.Far; itemGrid42.BackColor = Color.FromArgb(30, 30, 30); itemGrid42.Changed = false; itemGrid42.FieldType = ItemType.Text; itemGrid42.FontColor = Color.Cyan; itemGrid42.FontStyle = FontStyle.Regular; itemGrid42.Height = 1f; itemGrid42.IsBlink = 0; itemGrid42.Name = "tbTerminal"; itemGrid42.Text = ""; itemGrid42.ValueFormat = FormatType.Text; itemGrid42.Visible = true; itemGrid42.Width = 50; itemGrid42.X = 50; itemGrid42.Y = 4f; itemGrid43.AdjustFontSize = 0f; itemGrid43.Alignment = StringAlignment.Near; itemGrid43.BackColor = Color.FromArgb(30, 30, 30); itemGrid43.Changed = false; itemGrid43.FieldType = ItemType.Label2; itemGrid43.FontColor = Color.White; itemGrid43.FontStyle = FontStyle.Regular; itemGrid43.Height = 1f; itemGrid43.IsBlink = 0; itemGrid43.Name = "lbService"; itemGrid43.Text = "Service"; itemGrid43.ValueFormat = FormatType.Text; itemGrid43.Visible = true; itemGrid43.Width = 50; itemGrid43.X = 0; itemGrid43.Y = 5f; itemGrid44.AdjustFontSize = 0f; itemGrid44.Alignment = StringAlignment.Far; itemGrid44.BackColor = Color.FromArgb(30, 30, 30); itemGrid44.Changed = false; itemGrid44.FieldType = ItemType.Text; itemGrid44.FontColor = Color.Yellow; itemGrid44.FontStyle = FontStyle.Regular; itemGrid44.Height = 1f; itemGrid44.IsBlink = 0; itemGrid44.Name = "tbService"; itemGrid44.Text = ""; itemGrid44.ValueFormat = FormatType.Text; itemGrid44.Visible = true; itemGrid44.Width = 50; itemGrid44.X = 50; itemGrid44.Y = 5f; itemGrid45.AdjustFontSize = 0f; itemGrid45.Alignment = StringAlignment.Near; itemGrid45.BackColor = Color.FromArgb(30, 30, 30); itemGrid45.Changed = false; itemGrid45.FieldType = ItemType.Label2; itemGrid45.FontColor = Color.White; itemGrid45.FontStyle = FontStyle.Regular; itemGrid45.Height = 1f; itemGrid45.IsBlink = 0; itemGrid45.Name = "lbTradingChannel"; itemGrid45.Text = "TradingChannel"; itemGrid45.ValueFormat = FormatType.Text; itemGrid45.Visible = true; itemGrid45.Width = 70; itemGrid45.X = 0; itemGrid45.Y = 6f; itemGrid46.AdjustFontSize = 0f; itemGrid46.Alignment = StringAlignment.Far; itemGrid46.BackColor = Color.FromArgb(30, 30, 30); itemGrid46.Changed = false; itemGrid46.FieldType = ItemType.Text; itemGrid46.FontColor = Color.Yellow; itemGrid46.FontStyle = FontStyle.Regular; itemGrid46.Height = 1f; itemGrid46.IsBlink = 0; itemGrid46.Name = "tbTradingChannel"; itemGrid46.Text = ""; itemGrid46.ValueFormat = FormatType.Text; itemGrid46.Visible = true; itemGrid46.Width = 30; itemGrid46.X = 70; itemGrid46.Y = 6f; this.intzaInfo3.Items.Add(itemGrid33); this.intzaInfo3.Items.Add(itemGrid34); this.intzaInfo3.Items.Add(itemGrid35); this.intzaInfo3.Items.Add(itemGrid36); this.intzaInfo3.Items.Add(itemGrid37); this.intzaInfo3.Items.Add(itemGrid38); this.intzaInfo3.Items.Add(itemGrid39); this.intzaInfo3.Items.Add(itemGrid40); this.intzaInfo3.Items.Add(itemGrid41); this.intzaInfo3.Items.Add(itemGrid42); this.intzaInfo3.Items.Add(itemGrid43); this.intzaInfo3.Items.Add(itemGrid44); this.intzaInfo3.Items.Add(itemGrid45); this.intzaInfo3.Items.Add(itemGrid46); this.intzaInfo3.LineColor = Color.Red; this.intzaInfo3.Location = new Point(306, 2); this.intzaInfo3.Name = "intzaInfo3"; this.intzaInfo3.Size = new Size(161, 151); this.intzaInfo3.TabIndex = 152; this.lbError.BackColor = Color.FromArgb(30, 30, 30); this.lbError.ForeColor = Color.Yellow; this.lbError.Location = new Point(528, 106); this.lbError.Name = "lbError"; this.lbError.Size = new Size(88, 31); this.lbError.TabIndex = 154; this.intzaDeal.AllowDrop = true; this.intzaDeal.BackColor = Color.FromArgb(30, 30, 30); this.intzaDeal.CanBlink = true; this.intzaDeal.CanDrag = false; this.intzaDeal.CanGetMouseMove = false; columnItem.Alignment = StringAlignment.Center; columnItem.BackColor = Color.FromArgb(64, 64, 64); columnItem.ColumnAlignment = StringAlignment.Center; columnItem.FontColor = Color.LightGray; columnItem.MyStyle = FontStyle.Regular; columnItem.Name = "confirm"; columnItem.Text = "Confirm"; columnItem.ValueFormat = FormatType.Text; columnItem.Visible = true; columnItem.Width = 25; columnItem2.Alignment = StringAlignment.Far; columnItem2.BackColor = Color.FromArgb(64, 64, 64); columnItem2.ColumnAlignment = StringAlignment.Center; columnItem2.FontColor = Color.LightGray; columnItem2.MyStyle = FontStyle.Regular; columnItem2.Name = "volume"; columnItem2.Text = "Volume"; columnItem2.ValueFormat = FormatType.Volume; columnItem2.Visible = true; columnItem2.Width = 30; columnItem3.Alignment = StringAlignment.Far; columnItem3.BackColor = Color.FromArgb(64, 64, 64); columnItem3.ColumnAlignment = StringAlignment.Center; columnItem3.FontColor = Color.LightGray; columnItem3.MyStyle = FontStyle.Regular; columnItem3.Name = "price"; columnItem3.Text = "Price"; columnItem3.ValueFormat = FormatType.Price; columnItem3.Visible = true; columnItem3.Width = 21; columnItem4.Alignment = StringAlignment.Far; columnItem4.BackColor = Color.FromArgb(64, 64, 64); columnItem4.ColumnAlignment = StringAlignment.Center; columnItem4.FontColor = Color.LightGray; columnItem4.MyStyle = FontStyle.Regular; columnItem4.Name = "time"; columnItem4.Text = "Time"; columnItem4.ValueFormat = FormatType.Text; columnItem4.Visible = true; columnItem4.Width = 24; this.intzaDeal.Columns.Add(columnItem); this.intzaDeal.Columns.Add(columnItem2); this.intzaDeal.Columns.Add(columnItem3); this.intzaDeal.Columns.Add(columnItem4); this.intzaDeal.CurrentScroll = 0; this.intzaDeal.FocusItemIndex = -1; this.intzaDeal.ForeColor = Color.Black; this.intzaDeal.GridColor = Color.FromArgb(45, 45, 45); this.intzaDeal.HeaderPctHeight = 80f; this.intzaDeal.IsAutoRepaint = true; this.intzaDeal.IsDrawFullRow = false; this.intzaDeal.IsDrawGrid = true; this.intzaDeal.IsDrawHeader = true; this.intzaDeal.IsScrollable = true; this.intzaDeal.Location = new Point(469, 2); this.intzaDeal.MainColumn = ""; this.intzaDeal.Name = "intzaDeal"; this.intzaDeal.Rows = 0; this.intzaDeal.RowSelectColor = Color.FromArgb(95, 158, 160); this.intzaDeal.RowSelectType = 0; this.intzaDeal.RowsVisible = 0; this.intzaDeal.Size = new Size(233, 151); this.intzaDeal.SortColumnName = ""; this.intzaDeal.SortType = SortType.Desc; this.intzaDeal.TabIndex = 155; base.AutoScaleDimensions = new SizeF(7f, 15f); base.AutoScaleMode = AutoScaleMode.Font; this.BackColor = Color.FromArgb(20, 20, 20); base.ClientSize = new Size(706, 155); base.Controls.Add(this.intzaDeal); base.Controls.Add(this.lbError); base.Controls.Add(this.intzaInfo3); base.Controls.Add(this.intzaInfo2); base.Controls.Add(this.intzaInfo1); this.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 222); base.FormBorderStyle = FormBorderStyle.FixedToolWindow; base.KeyPreview = true; base.MaximizeBox = false; base.Name = "frmViewOrderInfo"; base.StartPosition = FormStartPosition.Manual; this.Text = "Deal Data"; base.Load += new EventHandler(this.frmViewOrderInfo_Load); base.Shown += new EventHandler(this.frmViewOrderInfo_Shown); base.Enter += new EventHandler(this.frmViewOrderInfo_Enter); base.Leave += new EventHandler(this.frmViewOrderInfo_Leave); base.KeyDown += new KeyEventHandler(this.frmViewOrderInfo_KeyDown); base.ResumeLayout(false); }
public IDataResult <IColumnItem> ColumnParser (IExcelWorksheetEntity worksheetEntity, ExcelConfiguration excelConfiguration) { IDataResult <IColumnItem> dataResult = new DataResult <IColumnItem>() { Success = false }; IColumnItem columnItem = new ColumnItem(); int column = worksheetEntity.CellNo; IDataResult <string> resultValue = _readExcelData.GetValue(worksheetEntity); int nomertitle = excelConfiguration.DataRowIndex.Title; if (!resultValue.Success) { dataResult.Message = resultValue.Message; } IExcelWorksheetEntity tmpExcel = new ExcelWorksheetEntity(); tmpExcel.RowNo = nomertitle; tmpExcel.ExcelWorksheet = worksheetEntity.ExcelWorksheet; tmpExcel.CellNo = column; IDataResult <string> resultNameTitle = _readExcelData.GetValue(tmpExcel); if (!resultNameTitle.Success) { dataResult.Message = MessageHolder.GetErrorMessage(MessageType.NotNameTitle); } string nameTitle = resultNameTitle.Data; nameTitle = _dataNormalization.NormalizeString(nameTitle).Data; string titleConfig = excelConfiguration.DataColumn.Datas? .FirstOrDefault(p => p.ColumnType == (int)ColumnType.Section)?.Name; titleConfig = _dataNormalization.NormalizeString(titleConfig).Data; ITranslationEntity translationEntity = new TranslationEntity(); translationEntity.Value = resultValue.Data; string mainLanguage = excelConfiguration.NameColumnSection.MainLanguage; mainLanguage = _dataNormalization.NormalizeString(mainLanguage).Data; string excelLanguage = null; if (titleConfig != null) { excelLanguage = nameTitle.Replace(titleConfig, string.Empty); } if (nameTitle.Equals(titleConfig) || (excelLanguage != null && excelLanguage.Equals(mainLanguage))) { columnItem.ColumnType = ColumnType.Section; translationEntity.Language = LanguageHolder.GetISOCodes(mainLanguage, _dataNormalization); if (!resultValue.Success) { dataResult.Message = resultValue.Message; return(dataResult); } columnItem.BaseEntity = translationEntity; } else { columnItem.ColumnType = ColumnType.SectionTransfer; translationEntity.Language = LanguageHolder.GetISOCodes(excelLanguage, _dataNormalization); if (!resultValue.Success) { dataResult.Message = resultValue.Message; return(dataResult); } columnItem.BaseEntity = translationEntity; } dataResult.Data = columnItem; dataResult.Success = true; return(dataResult); }
private void InitializeComponent() { ColumnItem columnItem = new ColumnItem(); ColumnItem columnItem2 = new ColumnItem(); ColumnItem columnItem3 = new ColumnItem(); ColumnItem columnItem4 = new ColumnItem(); ColumnItem columnItem5 = new ColumnItem(); ColumnItem columnItem6 = new ColumnItem(); ColumnItem columnItem7 = new ColumnItem(); ColumnItem columnItem8 = new ColumnItem(); this.toolStrip1 = new ToolStrip(); this.tsbtnReload = new ToolStripButton(); this.toolStripSeparator2 = new ToolStripSeparator(); this.tsbtnSellAll = new ToolStripButton(); this.toolStripSeparator1 = new ToolStripSeparator(); this.tsbtnSell = new ToolStripButton(); this.tsbtnClose = new ToolStripButton(); this.intza = new SortGrid(); this.toolStrip1.SuspendLayout(); base.SuspendLayout(); this.toolStrip1.GripStyle = ToolStripGripStyle.Hidden; this.toolStrip1.Items.AddRange(new ToolStripItem[] { this.tsbtnReload, this.toolStripSeparator2, this.tsbtnSellAll, this.toolStripSeparator1, this.tsbtnSell, this.tsbtnClose }); this.toolStrip1.Location = new Point(0, 0); this.toolStrip1.Name = "toolStrip1"; this.toolStrip1.Size = new Size(644, 25); this.toolStrip1.TabIndex = 1; this.toolStrip1.Text = "toolStrip1"; this.tsbtnReload.ForeColor = Color.Black; this.tsbtnReload.Image = Resources.refresh; this.tsbtnReload.ImageTransparentColor = Color.Magenta; this.tsbtnReload.Name = "tsbtnReload"; this.tsbtnReload.Padding = new Padding(10, 0, 5, 0); this.tsbtnReload.Size = new Size(78, 22); this.tsbtnReload.Text = "Reload"; this.tsbtnReload.Click += new EventHandler(this.tsbtnReload_Click); this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new Size(6, 25); this.tsbtnSellAll.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnSellAll.ForeColor = Color.Black; this.tsbtnSellAll.ImageTransparentColor = Color.Magenta; this.tsbtnSellAll.Name = "tsbtnSellAll"; this.tsbtnSellAll.Padding = new Padding(5, 0, 5, 0); this.tsbtnSellAll.Size = new Size(54, 22); this.tsbtnSellAll.Text = "Sell all"; this.tsbtnSellAll.Click += new EventHandler(this.tsbtnSellAll_Click); this.toolStripSeparator1.ForeColor = Color.Black; this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(6, 25); this.tsbtnSell.ForeColor = Color.Black; this.tsbtnSell.ImageTransparentColor = Color.Magenta; this.tsbtnSell.Name = "tsbtnSell"; this.tsbtnSell.Padding = new Padding(0, 0, 5, 0); this.tsbtnSell.Size = new Size(34, 22); this.tsbtnSell.Text = "Sell"; this.tsbtnSell.Click += new EventHandler(this.tsbtnSell_Click); this.tsbtnClose.Alignment = ToolStripItemAlignment.Right; this.tsbtnClose.ForeColor = Color.Black; this.tsbtnClose.Image = Resources.fileclose; this.tsbtnClose.ImageTransparentColor = Color.Magenta; this.tsbtnClose.Name = "tsbtnClose"; this.tsbtnClose.Size = new Size(56, 22); this.tsbtnClose.Text = "Close"; this.tsbtnClose.Click += new EventHandler(this.tsbtnClose_Click); this.intza.AllowDrop = true; this.intza.BackColor = Color.LightGray; this.intza.CanBlink = false; this.intza.CanDrag = false; this.intza.CanGetMouseMove = false; columnItem.Alignment = StringAlignment.Near; columnItem.BackColor = Color.FromArgb(64, 64, 64); columnItem.ColumnAlignment = StringAlignment.Center; columnItem.FontColor = Color.LightGray; columnItem.MyStyle = FontStyle.Regular; columnItem.Name = "stock"; columnItem.Text = "Symbol"; columnItem.ValueFormat = FormatType.Text; columnItem.Visible = true; columnItem.Width = 13; columnItem2.Alignment = StringAlignment.Center; columnItem2.BackColor = Color.FromArgb(64, 64, 64); columnItem2.ColumnAlignment = StringAlignment.Center; columnItem2.FontColor = Color.LightGray; columnItem2.MyStyle = FontStyle.Regular; columnItem2.Name = "sType"; columnItem2.Text = "Type"; columnItem2.ValueFormat = FormatType.Text; columnItem2.Visible = true; columnItem2.Width = 8; columnItem3.Alignment = StringAlignment.Center; columnItem3.BackColor = Color.FromArgb(64, 64, 64); columnItem3.ColumnAlignment = StringAlignment.Center; columnItem3.FontColor = Color.LightGray; columnItem3.MyStyle = FontStyle.Regular; columnItem3.Name = "trusteeId"; columnItem3.Text = "TTF"; columnItem3.ValueFormat = FormatType.Text; columnItem3.Visible = true; columnItem3.Width = 8; columnItem4.Alignment = StringAlignment.Far; columnItem4.BackColor = Color.FromArgb(64, 64, 64); columnItem4.ColumnAlignment = StringAlignment.Center; columnItem4.FontColor = Color.LightGray; columnItem4.MyStyle = FontStyle.Regular; columnItem4.Name = "onhand"; columnItem4.Text = "OnHand"; columnItem4.ValueFormat = FormatType.Text; columnItem4.Visible = true; columnItem4.Width = 15; columnItem5.Alignment = StringAlignment.Far; columnItem5.BackColor = Color.FromArgb(64, 64, 64); columnItem5.ColumnAlignment = StringAlignment.Center; columnItem5.FontColor = Color.LightGray; columnItem5.MyStyle = FontStyle.Regular; columnItem5.Name = "sellable"; columnItem5.Text = "Sellable"; columnItem5.ValueFormat = FormatType.Text; columnItem5.Visible = true; columnItem5.Width = 15; columnItem6.Alignment = StringAlignment.Far; columnItem6.BackColor = Color.FromArgb(64, 64, 64); columnItem6.ColumnAlignment = StringAlignment.Center; columnItem6.FontColor = Color.LightGray; columnItem6.MyStyle = FontStyle.Regular; columnItem6.Name = "avgPrice"; columnItem6.Text = "Average"; columnItem6.ValueFormat = FormatType.Text; columnItem6.Visible = true; columnItem6.Width = 12; columnItem7.Alignment = StringAlignment.Far; columnItem7.BackColor = Color.FromArgb(64, 64, 64); columnItem7.ColumnAlignment = StringAlignment.Center; columnItem7.FontColor = Color.LightGray; columnItem7.MyStyle = FontStyle.Regular; columnItem7.Name = "last"; columnItem7.Text = "Last"; columnItem7.ValueFormat = FormatType.Text; columnItem7.Visible = true; columnItem7.Width = 12; columnItem8.Alignment = StringAlignment.Far; columnItem8.BackColor = Color.FromArgb(64, 64, 64); columnItem8.ColumnAlignment = StringAlignment.Center; columnItem8.FontColor = Color.LightGray; columnItem8.MyStyle = FontStyle.Regular; columnItem8.Name = "ul"; columnItem8.Text = "UnReal P/L"; columnItem8.ValueFormat = FormatType.Text; columnItem8.Visible = true; columnItem8.Width = 17; this.intza.Columns.Add(columnItem); this.intza.Columns.Add(columnItem2); this.intza.Columns.Add(columnItem3); this.intza.Columns.Add(columnItem4); this.intza.Columns.Add(columnItem5); this.intza.Columns.Add(columnItem6); this.intza.Columns.Add(columnItem7); this.intza.Columns.Add(columnItem8); this.intza.CurrentScroll = 0; this.intza.Dock = DockStyle.Fill; this.intza.FocusItemIndex = -1; this.intza.ForeColor = Color.Black; this.intza.GridColor = Color.DarkGray; this.intza.HeaderPctHeight = 100f; this.intza.IsAutoRepaint = true; this.intza.IsDrawFullRow = false; this.intza.IsDrawGrid = true; this.intza.IsDrawHeader = true; this.intza.IsScrollable = true; this.intza.Location = new Point(0, 25); this.intza.MainColumn = ""; this.intza.Name = "intza"; this.intza.Rows = 0; this.intza.RowSelectColor = Color.DarkGray; this.intza.RowSelectType = 3; this.intza.RowsVisible = 0; this.intza.Size = new Size(644, 223); this.intza.SortColumnName = ""; this.intza.SortType = SortType.Desc; this.intza.TabIndex = 3; base.AutoScaleDimensions = new SizeF(7f, 15f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(644, 248); base.ControlBox = false; base.Controls.Add(this.intza); base.Controls.Add(this.toolStrip1); this.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 222); base.MaximizeBox = false; base.Name = "frmCleanPort"; base.StartPosition = FormStartPosition.CenterParent; this.Text = "Portfolio Clearing Process"; base.Shown += new EventHandler(this.frmCleanPort_Shown); this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
public void RaiseStatusWrapper(ColumnItem iteme) { RaiseNewItem(iteme); }
//table alias veya full name olabilir. public SelectSql Column(string table, string name, string alias) { TableItem tableInfo = null; if (!String.IsNullOrEmpty(table)) { tableInfo = this.GetOrCreateTable(table); } SelectSql.ColumnItem clmn = new ColumnItem(name) { Alias = alias, Table = tableInfo }; this.columns.Add(clmn); return this; }
private void LoadColumns() { System.Web.UI.WebControls.DataGrid baseControl = (System.Web.UI.WebControls.DataGrid) base.GetBaseControl(); DataGridColumnCollection columns = baseControl.Columns; if (columns != null) { int count = columns.Count; for (int i = 0; i < count; i++) { DataGridColumn runtimeColumn = columns[i]; ColumnItem item = null; if (runtimeColumn is BoundColumn) { item = new BoundColumnItem((BoundColumn) runtimeColumn); } else if (runtimeColumn is ButtonColumn) { item = new ButtonColumnItem((ButtonColumn) runtimeColumn); } else if (runtimeColumn is HyperLinkColumn) { item = new HyperLinkColumnItem((HyperLinkColumn) runtimeColumn); } else if (runtimeColumn is TemplateColumn) { item = new TemplateColumnItem((TemplateColumn) runtimeColumn); } else if (runtimeColumn is EditCommandColumn) { item = new EditCommandColumnItem((EditCommandColumn) runtimeColumn); } else { item = new CustomColumnItem(runtimeColumn); } item.LoadColumnInfo(); this.selColumnsList.Items.Add(item); } if (this.selColumnsList.Items.Count != 0) { this.currentColumnItem = (ColumnItem) this.selColumnsList.Items[0]; this.currentColumnItem.Selected = true; } } }
private void InitializeComponent() { this.components = new Container(); ColumnItem columnItem = new ColumnItem(); ColumnItem columnItem2 = new ColumnItem(); ColumnItem columnItem3 = new ColumnItem(); ColumnItem columnItem4 = new ColumnItem(); ColumnItem columnItem5 = new ColumnItem(); ColumnItem columnItem6 = new ColumnItem(); ColumnItem columnItem7 = new ColumnItem(); ColumnItem columnItem8 = new ColumnItem(); ColumnItem columnItem9 = new ColumnItem(); ColumnItem columnItem10 = new ColumnItem(); ColumnItem columnItem11 = new ColumnItem(); ColumnItem columnItem12 = new ColumnItem(); ColumnItem columnItem13 = new ColumnItem(); ColumnItem columnItem14 = new ColumnItem(); ColumnItem columnItem15 = new ColumnItem(); ColumnItem columnItem16 = new ColumnItem(); ColumnItem columnItem17 = new ColumnItem(); ColumnItem columnItem18 = new ColumnItem(); ColumnItem columnItem19 = new ColumnItem(); ColumnItem columnItem20 = new ColumnItem(); ColumnItem columnItem21 = new ColumnItem(); ColumnItem columnItem22 = new ColumnItem(); ColumnItem columnItem23 = new ColumnItem(); ColumnItem columnItem24 = new ColumnItem(); ColumnItem columnItem25 = new ColumnItem(); ColumnItem columnItem26 = new ColumnItem(); ColumnItem columnItem27 = new ColumnItem(); ColumnItem columnItem28 = new ColumnItem(); ColumnItem columnItem29 = new ColumnItem(); ColumnItem columnItem30 = new ColumnItem(); ColumnItem columnItem31 = new ColumnItem(); ColumnItem columnItem32 = new ColumnItem(); ColumnItem columnItem33 = new ColumnItem(); ColumnItem columnItem34 = new ColumnItem(); ColumnItem columnItem35 = new ColumnItem(); ColumnItem columnItem36 = new ColumnItem(); ColumnItem columnItem37 = new ColumnItem(); ColumnItem columnItem38 = new ColumnItem(); ColumnItem columnItem39 = new ColumnItem(); ColumnItem columnItem40 = new ColumnItem(); ColumnItem columnItem41 = new ColumnItem(); ColumnItem columnItem42 = new ColumnItem(); ColumnItem columnItem43 = new ColumnItem(); ColumnItem columnItem44 = new ColumnItem(); ColumnItem columnItem45 = new ColumnItem(); this.tStripMenu = new ToolStrip(); this.toolStripLabel10 = new ToolStripLabel(); this.tscbSelection = new ToolStripComboBox(); this.tslbTopActiveType = new ToolStripLabel(); this.tscbTopActiveType = new ToolStripComboBox(); this.tslbTopActiveMkt = new ToolStripLabel(); this.tscbTopActiveMkt = new ToolStripComboBox(); this.tslbBoard = new ToolStripLabel(); this.tscbBoard = new ToolStripComboBox(); this.tslbSort = new ToolStripLabel(); this.tscbSort = new ToolStripComboBox(); this.tslbBestOpenMktSession = new ToolStripLabel(); this.tscbBestOpenMktSession = new ToolStripComboBox(); this.intzaBestOpen = new SortGrid(); this.intzaProjectedOpen = new SortGrid(); this.intzaProjectedClose = new SortGrid(); this.intzaTopActive = new SortGrid(); this.contextLink = new ContextMenuStrip(this.components); this.tsmCallHistoricalChart = new ToolStripMenuItem(); this.tsmCallNews = new ToolStripMenuItem(); this.toolStripMenuItem1 = new ToolStripSeparator(); this.tsmCallMarketWatch = new ToolStripMenuItem(); this.tsmCallStockInPlay = new ToolStripMenuItem(); this.tsmCallSaleByPrice = new ToolStripMenuItem(); this.tsmCallSaleByTime = new ToolStripMenuItem(); this.tsmCallOddlot = new ToolStripMenuItem(); this.tStripMenu.SuspendLayout(); this.contextLink.SuspendLayout(); base.SuspendLayout(); this.tStripMenu.AllowMerge = false; this.tStripMenu.BackColor = Color.FromArgb(30, 30, 30); this.tStripMenu.GripStyle = ToolStripGripStyle.Hidden; this.tStripMenu.Items.AddRange(new ToolStripItem[] { this.toolStripLabel10, this.tscbSelection, this.tslbTopActiveType, this.tscbTopActiveType, this.tslbTopActiveMkt, this.tscbTopActiveMkt, this.tslbBoard, this.tscbBoard, this.tslbSort, this.tscbSort, this.tslbBestOpenMktSession, this.tscbBestOpenMktSession }); this.tStripMenu.Location = new Point(0, 0); this.tStripMenu.Name = "tStripMenu"; this.tStripMenu.Padding = new Padding(1, 1, 1, 2); this.tStripMenu.RenderMode = ToolStripRenderMode.System; this.tStripMenu.Size = new Size(1252, 26); this.tStripMenu.TabIndex = 0; this.tStripMenu.TabStop = true; this.tStripMenu.Tag = "-1"; this.toolStripLabel10.ForeColor = Color.LightGray; this.toolStripLabel10.Margin = new Padding(3, 1, 0, 2); this.toolStripLabel10.Name = "toolStripLabel10"; this.toolStripLabel10.Size = new Size(33, 20); this.toolStripLabel10.Text = "Page"; this.tscbSelection.BackColor = Color.FromArgb(30, 30, 30); this.tscbSelection.DropDownStyle = ComboBoxStyle.DropDownList; this.tscbSelection.ForeColor = Color.LightGray; this.tscbSelection.Name = "tscbSelection"; this.tscbSelection.Size = new Size(170, 23); this.tscbSelection.SelectedIndexChanged += new EventHandler(this.CallPage); this.tslbTopActiveType.ForeColor = Color.LightGray; this.tslbTopActiveType.Margin = new Padding(5, 1, 0, 2); this.tslbTopActiveType.Name = "tslbTopActiveType"; this.tslbTopActiveType.Size = new Size(41, 20); this.tslbTopActiveType.Text = "View : "; this.tscbTopActiveType.AutoCompleteCustomSource.AddRange(new string[] { "Most Active", "Biglot", "Gainer", "Loser", "Most Swing" }); this.tscbTopActiveType.AutoCompleteSource = AutoCompleteSource.CustomSource; this.tscbTopActiveType.AutoSize = false; this.tscbTopActiveType.BackColor = Color.FromArgb(30, 30, 30); this.tscbTopActiveType.DropDownStyle = ComboBoxStyle.DropDownList; this.tscbTopActiveType.ForeColor = Color.LightGray; this.tscbTopActiveType.Items.AddRange(new object[] { "Most Active - Main", "Most Active - Foreign", "Biglot", "Gainer - Main", "Gainer - Foreign", "Loser - Main", "Loser - Foreign", "Most Swing - Main", "Most Swing - Foreign" }); this.tscbTopActiveType.Name = "tscbTopActiveType"; this.tscbTopActiveType.Size = new Size(160, 23); this.tscbTopActiveType.SelectedIndexChanged += new EventHandler(this.tscbTopActiveType_SelectedIndexChanged); this.tslbTopActiveMkt.ForeColor = Color.LightGray; this.tslbTopActiveMkt.Margin = new Padding(5, 1, 0, 2); this.tslbTopActiveMkt.Name = "tslbTopActiveMkt"; this.tslbTopActiveMkt.Size = new Size(53, 20); this.tslbTopActiveMkt.Text = "Market : "; this.tscbTopActiveMkt.BackColor = Color.FromArgb(30, 30, 30); this.tscbTopActiveMkt.DropDownStyle = ComboBoxStyle.DropDownList; this.tscbTopActiveMkt.ForeColor = Color.LightGray; this.tscbTopActiveMkt.Items.AddRange(new object[] { "SET", "MAI" }); this.tscbTopActiveMkt.Name = "tscbTopActiveMkt"; this.tscbTopActiveMkt.Size = new Size(90, 23); this.tscbTopActiveMkt.SelectedIndexChanged += new EventHandler(this.tscbTopActiveMkt_SelectedIndexChanged); this.tslbBoard.ForeColor = Color.LightGray; this.tslbBoard.Margin = new Padding(5, 1, 0, 2); this.tslbBoard.Name = "tslbBoard"; this.tslbBoard.Size = new Size(47, 20); this.tslbBoard.Text = "Board : "; this.tscbBoard.BackColor = Color.FromArgb(30, 30, 30); this.tscbBoard.DropDownStyle = ComboBoxStyle.DropDownList; this.tscbBoard.ForeColor = Color.LightGray; this.tscbBoard.Items.AddRange(new object[] { "Main", "Foreign" }); this.tscbBoard.Name = "tscbBoard"; this.tscbBoard.Size = new Size(90, 23); this.tscbBoard.SelectedIndexChanged += new EventHandler(this.tscbBoard_SelectedIndexChanged); this.tslbSort.ForeColor = Color.LightGray; this.tslbSort.Margin = new Padding(5, 1, 0, 2); this.tslbSort.Name = "tslbSort"; this.tslbSort.Size = new Size(53, 20); this.tslbSort.Text = "Sort by : "; this.tscbSort.BackColor = Color.FromArgb(30, 30, 30); this.tscbSort.DropDownStyle = ComboBoxStyle.DropDownList; this.tscbSort.ForeColor = Color.LightGray; this.tscbSort.Items.AddRange(new object[] { "Gainer", "Loser" }); this.tscbSort.Name = "tscbSort"; this.tscbSort.Size = new Size(90, 23); this.tscbSort.SelectedIndexChanged += new EventHandler(this.tscbSort_SelectedIndexChanged); this.tslbBestOpenMktSession.ForeColor = Color.LightGray; this.tslbBestOpenMktSession.Margin = new Padding(5, 1, 0, 2); this.tslbBestOpenMktSession.Name = "tslbBestOpenMktSession"; this.tslbBestOpenMktSession.Size = new Size(95, 20); this.tslbBestOpenMktSession.Text = "Market Session : "; this.tscbBestOpenMktSession.BackColor = Color.FromArgb(30, 30, 30); this.tscbBestOpenMktSession.DropDownStyle = ComboBoxStyle.DropDownList; this.tscbBestOpenMktSession.ForeColor = Color.LightGray; this.tscbBestOpenMktSession.Items.AddRange(new object[] { "1", "2" }); this.tscbBestOpenMktSession.Name = "tscbBestOpenMktSession"; this.tscbBestOpenMktSession.Size = new Size(75, 23); this.tscbBestOpenMktSession.SelectedIndexChanged += new EventHandler(this.tscbBestOpenMktSession_SelectedIndexChanged); this.intzaBestOpen.AllowDrop = true; this.intzaBestOpen.BackColor = Color.FromArgb(30, 30, 30); this.intzaBestOpen.CanBlink = true; this.intzaBestOpen.CanDrag = false; this.intzaBestOpen.CanGetMouseMove = false; columnItem.Alignment = StringAlignment.Center; columnItem.BackColor = Color.FromArgb(64, 64, 64); columnItem.ColumnAlignment = StringAlignment.Center; columnItem.FontColor = Color.LightGray; columnItem.MyStyle = FontStyle.Regular; columnItem.Name = "no"; columnItem.Text = "No."; columnItem.ValueFormat = FormatType.RecordNumber; columnItem.Visible = true; columnItem.Width = 4; columnItem2.Alignment = StringAlignment.Near; columnItem2.BackColor = Color.FromArgb(64, 64, 64); columnItem2.ColumnAlignment = StringAlignment.Center; columnItem2.FontColor = Color.LightGray; columnItem2.MyStyle = FontStyle.Regular; columnItem2.Name = "stock"; columnItem2.Text = "Symbol"; columnItem2.ValueFormat = FormatType.Symbol; columnItem2.Visible = true; columnItem2.Width = 16; columnItem3.Alignment = StringAlignment.Far; columnItem3.BackColor = Color.FromArgb(64, 64, 64); columnItem3.ColumnAlignment = StringAlignment.Center; columnItem3.FontColor = Color.LightGray; columnItem3.MyStyle = FontStyle.Regular; columnItem3.Name = "last"; columnItem3.Text = "Last"; columnItem3.ValueFormat = FormatType.Price; columnItem3.Visible = true; columnItem3.Width = 8; columnItem4.Alignment = StringAlignment.Far; columnItem4.BackColor = Color.FromArgb(64, 64, 64); columnItem4.ColumnAlignment = StringAlignment.Center; columnItem4.FontColor = Color.LightGray; columnItem4.MyStyle = FontStyle.Regular; columnItem4.Name = "high"; columnItem4.Text = "High"; columnItem4.ValueFormat = FormatType.Price; columnItem4.Visible = true; columnItem4.Width = 8; columnItem5.Alignment = StringAlignment.Far; columnItem5.BackColor = Color.FromArgb(64, 64, 64); columnItem5.ColumnAlignment = StringAlignment.Center; columnItem5.FontColor = Color.LightGray; columnItem5.MyStyle = FontStyle.Regular; columnItem5.Name = "low"; columnItem5.Text = "Low"; columnItem5.ValueFormat = FormatType.Price; columnItem5.Visible = true; columnItem5.Width = 8; columnItem6.Alignment = StringAlignment.Far; columnItem6.BackColor = Color.FromArgb(64, 64, 64); columnItem6.ColumnAlignment = StringAlignment.Center; columnItem6.FontColor = Color.LightGray; columnItem6.MyStyle = FontStyle.Regular; columnItem6.Name = "avg"; columnItem6.Text = "Avg"; columnItem6.ValueFormat = FormatType.Price; columnItem6.Visible = true; columnItem6.Width = 9; columnItem7.Alignment = StringAlignment.Far; columnItem7.BackColor = Color.FromArgb(64, 64, 64); columnItem7.ColumnAlignment = StringAlignment.Center; columnItem7.FontColor = Color.LightGray; columnItem7.MyStyle = FontStyle.Regular; columnItem7.Name = "open_volume"; columnItem7.Text = "OpenVol-1"; columnItem7.ValueFormat = FormatType.Volume; columnItem7.Visible = true; columnItem7.Width = 13; columnItem8.Alignment = StringAlignment.Far; columnItem8.BackColor = Color.FromArgb(64, 64, 64); columnItem8.ColumnAlignment = StringAlignment.Center; columnItem8.FontColor = Color.LightGray; columnItem8.MyStyle = FontStyle.Regular; columnItem8.Name = "open_price"; columnItem8.Text = "Open-1"; columnItem8.ValueFormat = FormatType.Price; columnItem8.Visible = true; columnItem8.Width = 8; columnItem9.Alignment = StringAlignment.Far; columnItem9.BackColor = Color.FromArgb(64, 64, 64); columnItem9.ColumnAlignment = StringAlignment.Center; columnItem9.FontColor = Color.LightGray; columnItem9.MyStyle = FontStyle.Regular; columnItem9.Name = "prior"; columnItem9.Text = "Prior"; columnItem9.ValueFormat = FormatType.Price; columnItem9.Visible = true; columnItem9.Width = 8; columnItem10.Alignment = StringAlignment.Far; columnItem10.BackColor = Color.FromArgb(64, 64, 64); columnItem10.ColumnAlignment = StringAlignment.Center; columnItem10.FontColor = Color.LightGray; columnItem10.MyStyle = FontStyle.Regular; columnItem10.Name = "chg"; columnItem10.Text = "Chg"; columnItem10.ValueFormat = FormatType.ChangePrice; columnItem10.Visible = true; columnItem10.Width = 9; columnItem11.Alignment = StringAlignment.Far; columnItem11.BackColor = Color.FromArgb(64, 64, 64); columnItem11.ColumnAlignment = StringAlignment.Center; columnItem11.FontColor = Color.LightGray; columnItem11.MyStyle = FontStyle.Regular; columnItem11.Name = "pchg"; columnItem11.Text = "%Chg"; columnItem11.ValueFormat = FormatType.ChangePrice; columnItem11.Visible = true; columnItem11.Width = 9; this.intzaBestOpen.Columns.Add(columnItem); this.intzaBestOpen.Columns.Add(columnItem2); this.intzaBestOpen.Columns.Add(columnItem3); this.intzaBestOpen.Columns.Add(columnItem4); this.intzaBestOpen.Columns.Add(columnItem5); this.intzaBestOpen.Columns.Add(columnItem6); this.intzaBestOpen.Columns.Add(columnItem7); this.intzaBestOpen.Columns.Add(columnItem8); this.intzaBestOpen.Columns.Add(columnItem9); this.intzaBestOpen.Columns.Add(columnItem10); this.intzaBestOpen.Columns.Add(columnItem11); this.intzaBestOpen.CurrentScroll = 0; this.intzaBestOpen.FocusItemIndex = -1; this.intzaBestOpen.ForeColor = Color.Black; this.intzaBestOpen.GridColor = Color.FromArgb(45, 45, 45); this.intzaBestOpen.HeaderPctHeight = 80f; this.intzaBestOpen.IsAutoRepaint = true; this.intzaBestOpen.IsDrawFullRow = false; this.intzaBestOpen.IsDrawGrid = true; this.intzaBestOpen.IsDrawHeader = true; this.intzaBestOpen.IsScrollable = true; this.intzaBestOpen.Location = new Point(59, 146); this.intzaBestOpen.MainColumn = ""; this.intzaBestOpen.Name = "intzaBestOpen"; this.intzaBestOpen.Rows = 45; this.intzaBestOpen.RowSelectColor = Color.FromArgb(50, 50, 50); this.intzaBestOpen.RowSelectType = 2; this.intzaBestOpen.RowsVisible = 40; this.intzaBestOpen.Size = new Size(697, 38); this.intzaBestOpen.SortColumnName = ""; this.intzaBestOpen.SortType = SortType.Desc; this.intzaBestOpen.TabIndex = 1; this.intzaBestOpen.TableMouseClick += new SortGrid.TableMouseClickEventHandler(this.intzaBestOpen_TableMouseClick); this.intzaProjectedOpen.AllowDrop = true; this.intzaProjectedOpen.BackColor = Color.FromArgb(30, 30, 30); this.intzaProjectedOpen.CanBlink = true; this.intzaProjectedOpen.CanDrag = false; this.intzaProjectedOpen.CanGetMouseMove = false; columnItem12.Alignment = StringAlignment.Center; columnItem12.BackColor = Color.FromArgb(64, 64, 64); columnItem12.ColumnAlignment = StringAlignment.Center; columnItem12.FontColor = Color.LightGray; columnItem12.MyStyle = FontStyle.Regular; columnItem12.Name = "no"; columnItem12.Text = "No."; columnItem12.ValueFormat = FormatType.RecordNumber; columnItem12.Visible = true; columnItem12.Width = 4; columnItem13.Alignment = StringAlignment.Near; columnItem13.BackColor = Color.FromArgb(64, 64, 64); columnItem13.ColumnAlignment = StringAlignment.Center; columnItem13.FontColor = Color.LightGray; columnItem13.MyStyle = FontStyle.Regular; columnItem13.Name = "stock"; columnItem13.Text = "Symbol"; columnItem13.ValueFormat = FormatType.Symbol; columnItem13.Visible = true; columnItem13.Width = 16; columnItem14.Alignment = StringAlignment.Far; columnItem14.BackColor = Color.FromArgb(64, 64, 64); columnItem14.ColumnAlignment = StringAlignment.Center; columnItem14.FontColor = Color.LightGray; columnItem14.MyStyle = FontStyle.Regular; columnItem14.Name = "avg"; columnItem14.Text = "Avg"; columnItem14.ValueFormat = FormatType.Price; columnItem14.Visible = true; columnItem14.Width = 8; columnItem15.Alignment = StringAlignment.Far; columnItem15.BackColor = Color.FromArgb(64, 64, 64); columnItem15.ColumnAlignment = StringAlignment.Center; columnItem15.FontColor = Color.LightGray; columnItem15.MyStyle = FontStyle.Regular; columnItem15.Name = "high"; columnItem15.Text = "High"; columnItem15.ValueFormat = FormatType.Price; columnItem15.Visible = true; columnItem15.Width = 8; columnItem16.Alignment = StringAlignment.Far; columnItem16.BackColor = Color.FromArgb(64, 64, 64); columnItem16.ColumnAlignment = StringAlignment.Center; columnItem16.FontColor = Color.LightGray; columnItem16.MyStyle = FontStyle.Regular; columnItem16.Name = "low"; columnItem16.Text = "Low"; columnItem16.ValueFormat = FormatType.Price; columnItem16.Visible = true; columnItem16.Width = 8; columnItem17.Alignment = StringAlignment.Far; columnItem17.BackColor = Color.FromArgb(64, 64, 64); columnItem17.ColumnAlignment = StringAlignment.Center; columnItem17.FontColor = Color.LightGray; columnItem17.MyStyle = FontStyle.Regular; columnItem17.Name = "open1"; columnItem17.Text = "Open-1"; columnItem17.ValueFormat = FormatType.Price; columnItem17.Visible = true; columnItem17.Width = 8; columnItem18.Alignment = StringAlignment.Far; columnItem18.BackColor = Color.FromArgb(64, 64, 64); columnItem18.ColumnAlignment = StringAlignment.Center; columnItem18.FontColor = Color.LightGray; columnItem18.MyStyle = FontStyle.Regular; columnItem18.Name = "ovolume1"; columnItem18.Text = "OpenVol-1"; columnItem18.ValueFormat = FormatType.Volume; columnItem18.Visible = true; columnItem18.Width = 14; columnItem19.Alignment = StringAlignment.Far; columnItem19.BackColor = Color.FromArgb(64, 64, 64); columnItem19.ColumnAlignment = StringAlignment.Center; columnItem19.FontColor = Color.LightGray; columnItem19.MyStyle = FontStyle.Regular; columnItem19.Name = "prior"; columnItem19.Text = "Prior"; columnItem19.ValueFormat = FormatType.Text; columnItem19.Visible = true; columnItem19.Width = 8; columnItem20.Alignment = StringAlignment.Far; columnItem20.BackColor = Color.FromArgb(64, 64, 64); columnItem20.ColumnAlignment = StringAlignment.Center; columnItem20.FontColor = Color.LightGray; columnItem20.MyStyle = FontStyle.Regular; columnItem20.Name = "po"; columnItem20.Text = "PrjOpn"; columnItem20.ValueFormat = FormatType.Price; columnItem20.Visible = true; columnItem20.Width = 8; columnItem21.Alignment = StringAlignment.Far; columnItem21.BackColor = Color.FromArgb(64, 64, 64); columnItem21.ColumnAlignment = StringAlignment.Center; columnItem21.FontColor = Color.LightGray; columnItem21.MyStyle = FontStyle.Regular; columnItem21.Name = "chg"; columnItem21.Text = "Chg"; columnItem21.ValueFormat = FormatType.ChangePrice; columnItem21.Visible = true; columnItem21.Width = 9; columnItem22.Alignment = StringAlignment.Far; columnItem22.BackColor = Color.FromArgb(64, 64, 64); columnItem22.ColumnAlignment = StringAlignment.Center; columnItem22.FontColor = Color.LightGray; columnItem22.MyStyle = FontStyle.Regular; columnItem22.Name = "pchg"; columnItem22.Text = "%Chg"; columnItem22.ValueFormat = FormatType.ChangePrice; columnItem22.Visible = true; columnItem22.Width = 9; this.intzaProjectedOpen.Columns.Add(columnItem12); this.intzaProjectedOpen.Columns.Add(columnItem13); this.intzaProjectedOpen.Columns.Add(columnItem14); this.intzaProjectedOpen.Columns.Add(columnItem15); this.intzaProjectedOpen.Columns.Add(columnItem16); this.intzaProjectedOpen.Columns.Add(columnItem17); this.intzaProjectedOpen.Columns.Add(columnItem18); this.intzaProjectedOpen.Columns.Add(columnItem19); this.intzaProjectedOpen.Columns.Add(columnItem20); this.intzaProjectedOpen.Columns.Add(columnItem21); this.intzaProjectedOpen.Columns.Add(columnItem22); this.intzaProjectedOpen.CurrentScroll = 0; this.intzaProjectedOpen.FocusItemIndex = -1; this.intzaProjectedOpen.ForeColor = Color.Black; this.intzaProjectedOpen.GridColor = Color.FromArgb(45, 45, 45); this.intzaProjectedOpen.HeaderPctHeight = 80f; this.intzaProjectedOpen.IsAutoRepaint = true; this.intzaProjectedOpen.IsDrawFullRow = false; this.intzaProjectedOpen.IsDrawGrid = true; this.intzaProjectedOpen.IsDrawHeader = true; this.intzaProjectedOpen.IsScrollable = true; this.intzaProjectedOpen.Location = new Point(59, 205); this.intzaProjectedOpen.MainColumn = ""; this.intzaProjectedOpen.Name = "intzaProjectedOpen"; this.intzaProjectedOpen.Rows = 45; this.intzaProjectedOpen.RowSelectColor = Color.FromArgb(50, 50, 50); this.intzaProjectedOpen.RowSelectType = 2; this.intzaProjectedOpen.RowsVisible = 40; this.intzaProjectedOpen.Size = new Size(705, 53); this.intzaProjectedOpen.SortColumnName = ""; this.intzaProjectedOpen.SortType = SortType.Desc; this.intzaProjectedOpen.TabIndex = 2; this.intzaProjectedOpen.TableMouseClick += new SortGrid.TableMouseClickEventHandler(this.intzaProjectedOpen_TableMouseClick); this.intzaProjectedClose.AllowDrop = true; this.intzaProjectedClose.BackColor = Color.FromArgb(30, 30, 30); this.intzaProjectedClose.CanBlink = true; this.intzaProjectedClose.CanDrag = false; this.intzaProjectedClose.CanGetMouseMove = false; columnItem23.Alignment = StringAlignment.Center; columnItem23.BackColor = Color.FromArgb(64, 64, 64); columnItem23.ColumnAlignment = StringAlignment.Center; columnItem23.FontColor = Color.LightGray; columnItem23.MyStyle = FontStyle.Regular; columnItem23.Name = "no"; columnItem23.Text = "No."; columnItem23.ValueFormat = FormatType.RecordNumber; columnItem23.Visible = true; columnItem23.Width = 4; columnItem24.Alignment = StringAlignment.Near; columnItem24.BackColor = Color.FromArgb(64, 64, 64); columnItem24.ColumnAlignment = StringAlignment.Center; columnItem24.FontColor = Color.LightGray; columnItem24.MyStyle = FontStyle.Regular; columnItem24.Name = "stock"; columnItem24.Text = "Symbol"; columnItem24.ValueFormat = FormatType.Symbol; columnItem24.Visible = true; columnItem24.Width = 16; columnItem25.Alignment = StringAlignment.Far; columnItem25.BackColor = Color.FromArgb(64, 64, 64); columnItem25.ColumnAlignment = StringAlignment.Center; columnItem25.FontColor = Color.LightGray; columnItem25.MyStyle = FontStyle.Regular; columnItem25.Name = "avg"; columnItem25.Text = "Avg"; columnItem25.ValueFormat = FormatType.Price; columnItem25.Visible = true; columnItem25.Width = 10; columnItem26.Alignment = StringAlignment.Far; columnItem26.BackColor = Color.FromArgb(64, 64, 64); columnItem26.ColumnAlignment = StringAlignment.Center; columnItem26.FontColor = Color.LightGray; columnItem26.MyStyle = FontStyle.Regular; columnItem26.Name = "high"; columnItem26.Text = "High"; columnItem26.ValueFormat = FormatType.Price; columnItem26.Visible = true; columnItem26.Width = 10; columnItem27.Alignment = StringAlignment.Far; columnItem27.BackColor = Color.FromArgb(64, 64, 64); columnItem27.ColumnAlignment = StringAlignment.Center; columnItem27.FontColor = Color.LightGray; columnItem27.MyStyle = FontStyle.Regular; columnItem27.Name = "low"; columnItem27.Text = "Low"; columnItem27.ValueFormat = FormatType.Price; columnItem27.Visible = true; columnItem27.Width = 10; columnItem28.Alignment = StringAlignment.Far; columnItem28.BackColor = Color.FromArgb(64, 64, 64); columnItem28.ColumnAlignment = StringAlignment.Center; columnItem28.FontColor = Color.LightGray; columnItem28.MyStyle = FontStyle.Regular; columnItem28.Name = "prior"; columnItem28.Text = "Prior"; columnItem28.ValueFormat = FormatType.Price; columnItem28.Visible = true; columnItem28.Width = 10; columnItem29.Alignment = StringAlignment.Far; columnItem29.BackColor = Color.FromArgb(64, 64, 64); columnItem29.ColumnAlignment = StringAlignment.Center; columnItem29.FontColor = Color.LightGray; columnItem29.MyStyle = FontStyle.Regular; columnItem29.Name = "last"; columnItem29.Text = "Last"; columnItem29.ValueFormat = FormatType.Price; columnItem29.Visible = true; columnItem29.Width = 10; columnItem30.Alignment = StringAlignment.Far; columnItem30.BackColor = Color.FromArgb(64, 64, 64); columnItem30.ColumnAlignment = StringAlignment.Center; columnItem30.FontColor = Color.LightGray; columnItem30.MyStyle = FontStyle.Regular; columnItem30.Name = "poclose"; columnItem30.Text = "PrjCls"; columnItem30.ValueFormat = FormatType.Price; columnItem30.Visible = true; columnItem30.Width = 10; columnItem31.Alignment = StringAlignment.Far; columnItem31.BackColor = Color.FromArgb(64, 64, 64); columnItem31.ColumnAlignment = StringAlignment.Center; columnItem31.FontColor = Color.LightGray; columnItem31.MyStyle = FontStyle.Regular; columnItem31.Name = "chg"; columnItem31.Text = "Chg"; columnItem31.ValueFormat = FormatType.ChangePrice; columnItem31.Visible = true; columnItem31.Width = 10; columnItem32.Alignment = StringAlignment.Far; columnItem32.BackColor = Color.FromArgb(64, 64, 64); columnItem32.ColumnAlignment = StringAlignment.Center; columnItem32.FontColor = Color.LightGray; columnItem32.MyStyle = FontStyle.Regular; columnItem32.Name = "pchg"; columnItem32.Text = "%Chg"; columnItem32.ValueFormat = FormatType.ChangePrice; columnItem32.Visible = true; columnItem32.Width = 10; this.intzaProjectedClose.Columns.Add(columnItem23); this.intzaProjectedClose.Columns.Add(columnItem24); this.intzaProjectedClose.Columns.Add(columnItem25); this.intzaProjectedClose.Columns.Add(columnItem26); this.intzaProjectedClose.Columns.Add(columnItem27); this.intzaProjectedClose.Columns.Add(columnItem28); this.intzaProjectedClose.Columns.Add(columnItem29); this.intzaProjectedClose.Columns.Add(columnItem30); this.intzaProjectedClose.Columns.Add(columnItem31); this.intzaProjectedClose.Columns.Add(columnItem32); this.intzaProjectedClose.CurrentScroll = 0; this.intzaProjectedClose.FocusItemIndex = -1; this.intzaProjectedClose.ForeColor = Color.Black; this.intzaProjectedClose.GridColor = Color.FromArgb(45, 45, 45); this.intzaProjectedClose.HeaderPctHeight = 80f; this.intzaProjectedClose.IsAutoRepaint = true; this.intzaProjectedClose.IsDrawFullRow = false; this.intzaProjectedClose.IsDrawGrid = true; this.intzaProjectedClose.IsDrawHeader = true; this.intzaProjectedClose.IsScrollable = true; this.intzaProjectedClose.Location = new Point(59, 286); this.intzaProjectedClose.MainColumn = ""; this.intzaProjectedClose.Name = "intzaProjectedClose"; this.intzaProjectedClose.Rows = 45; this.intzaProjectedClose.RowSelectColor = Color.FromArgb(50, 50, 50); this.intzaProjectedClose.RowSelectType = 2; this.intzaProjectedClose.RowsVisible = 40; this.intzaProjectedClose.Size = new Size(705, 46); this.intzaProjectedClose.SortColumnName = ""; this.intzaProjectedClose.SortType = SortType.Desc; this.intzaProjectedClose.TabIndex = 3; this.intzaProjectedClose.TableMouseClick += new SortGrid.TableMouseClickEventHandler(this.intzaProjectedClose_TableMouseClick); this.intzaTopActive.AllowDrop = true; this.intzaTopActive.BackColor = Color.FromArgb(30, 30, 30); this.intzaTopActive.CanBlink = true; this.intzaTopActive.CanDrag = false; this.intzaTopActive.CanGetMouseMove = false; columnItem33.Alignment = StringAlignment.Center; columnItem33.BackColor = Color.FromArgb(64, 64, 64); columnItem33.ColumnAlignment = StringAlignment.Center; columnItem33.FontColor = Color.LightGray; columnItem33.MyStyle = FontStyle.Regular; columnItem33.Name = "No"; columnItem33.Text = "No."; columnItem33.ValueFormat = FormatType.RecordNumber; columnItem33.Visible = true; columnItem33.Width = 4; columnItem34.Alignment = StringAlignment.Near; columnItem34.BackColor = Color.FromArgb(64, 64, 64); columnItem34.ColumnAlignment = StringAlignment.Center; columnItem34.FontColor = Color.LightGray; columnItem34.MyStyle = FontStyle.Regular; columnItem34.Name = "stock"; columnItem34.Text = "Symbol"; columnItem34.ValueFormat = FormatType.Symbol; columnItem34.Visible = true; columnItem34.Width = 11; columnItem35.Alignment = StringAlignment.Far; columnItem35.BackColor = Color.FromArgb(64, 64, 64); columnItem35.ColumnAlignment = StringAlignment.Center; columnItem35.FontColor = Color.LightGray; columnItem35.MyStyle = FontStyle.Regular; columnItem35.Name = "deals"; columnItem35.Text = "Deals"; columnItem35.ValueFormat = FormatType.Volume; columnItem35.Visible = true; columnItem35.Width = 6; columnItem36.Alignment = StringAlignment.Far; columnItem36.BackColor = Color.FromArgb(64, 64, 64); columnItem36.ColumnAlignment = StringAlignment.Center; columnItem36.FontColor = Color.LightGray; columnItem36.MyStyle = FontStyle.Regular; columnItem36.Name = "volume"; columnItem36.Text = "Volume"; columnItem36.ValueFormat = FormatType.Volume; columnItem36.Visible = true; columnItem36.Width = 11; columnItem37.Alignment = StringAlignment.Far; columnItem37.BackColor = Color.FromArgb(64, 64, 64); columnItem37.ColumnAlignment = StringAlignment.Center; columnItem37.FontColor = Color.LightGray; columnItem37.MyStyle = FontStyle.Regular; columnItem37.Name = "value"; columnItem37.Text = "Value"; columnItem37.ValueFormat = FormatType.Volume; columnItem37.Visible = true; columnItem37.Width = 12; columnItem38.Alignment = StringAlignment.Far; columnItem38.BackColor = Color.FromArgb(64, 64, 64); columnItem38.ColumnAlignment = StringAlignment.Center; columnItem38.FontColor = Color.LightGray; columnItem38.MyStyle = FontStyle.Regular; columnItem38.Name = "avg"; columnItem38.Text = "Avg"; columnItem38.ValueFormat = FormatType.Price; columnItem38.Visible = true; columnItem38.Width = 7; columnItem39.Alignment = StringAlignment.Far; columnItem39.BackColor = Color.FromArgb(64, 64, 64); columnItem39.ColumnAlignment = StringAlignment.Center; columnItem39.FontColor = Color.LightGray; columnItem39.MyStyle = FontStyle.Regular; columnItem39.Name = "high"; columnItem39.Text = "High"; columnItem39.ValueFormat = FormatType.Price; columnItem39.Visible = true; columnItem39.Width = 7; columnItem40.Alignment = StringAlignment.Far; columnItem40.BackColor = Color.FromArgb(64, 64, 64); columnItem40.ColumnAlignment = StringAlignment.Center; columnItem40.FontColor = Color.LightGray; columnItem40.MyStyle = FontStyle.Regular; columnItem40.Name = "low"; columnItem40.Text = "Low"; columnItem40.ValueFormat = FormatType.Price; columnItem40.Visible = true; columnItem40.Width = 7; columnItem41.Alignment = StringAlignment.Far; columnItem41.BackColor = Color.FromArgb(64, 64, 64); columnItem41.ColumnAlignment = StringAlignment.Center; columnItem41.FontColor = Color.LightGray; columnItem41.MyStyle = FontStyle.Regular; columnItem41.Name = "last"; columnItem41.Text = "Last"; columnItem41.ValueFormat = FormatType.Price; columnItem41.Visible = true; columnItem41.Width = 7; columnItem42.Alignment = StringAlignment.Far; columnItem42.BackColor = Color.FromArgb(64, 64, 64); columnItem42.ColumnAlignment = StringAlignment.Center; columnItem42.FontColor = Color.LightGray; columnItem42.MyStyle = FontStyle.Regular; columnItem42.Name = "chg"; columnItem42.Text = "Chg"; columnItem42.ValueFormat = FormatType.ChangePrice; columnItem42.Visible = true; columnItem42.Width = 7; columnItem43.Alignment = StringAlignment.Far; columnItem43.BackColor = Color.FromArgb(64, 64, 64); columnItem43.ColumnAlignment = StringAlignment.Center; columnItem43.FontColor = Color.LightGray; columnItem43.MyStyle = FontStyle.Regular; columnItem43.Name = "pchg"; columnItem43.Text = "%Chg"; columnItem43.ValueFormat = FormatType.ChangePrice; columnItem43.Visible = true; columnItem43.Width = 7; columnItem44.Alignment = StringAlignment.Far; columnItem44.BackColor = Color.FromArgb(64, 64, 64); columnItem44.ColumnAlignment = StringAlignment.Center; columnItem44.FontColor = Color.LightGray; columnItem44.MyStyle = FontStyle.Regular; columnItem44.Name = "swing"; columnItem44.Text = "Swing"; columnItem44.ValueFormat = FormatType.Price; columnItem44.Visible = true; columnItem44.Width = 7; columnItem45.Alignment = StringAlignment.Far; columnItem45.BackColor = Color.FromArgb(64, 64, 64); columnItem45.ColumnAlignment = StringAlignment.Center; columnItem45.FontColor = Color.LightGray; columnItem45.MyStyle = FontStyle.Regular; columnItem45.Name = "pswing"; columnItem45.Text = "%Swing"; columnItem45.ValueFormat = FormatType.Price; columnItem45.Visible = true; columnItem45.Width = 7; this.intzaTopActive.Columns.Add(columnItem33); this.intzaTopActive.Columns.Add(columnItem34); this.intzaTopActive.Columns.Add(columnItem35); this.intzaTopActive.Columns.Add(columnItem36); this.intzaTopActive.Columns.Add(columnItem37); this.intzaTopActive.Columns.Add(columnItem38); this.intzaTopActive.Columns.Add(columnItem39); this.intzaTopActive.Columns.Add(columnItem40); this.intzaTopActive.Columns.Add(columnItem41); this.intzaTopActive.Columns.Add(columnItem42); this.intzaTopActive.Columns.Add(columnItem43); this.intzaTopActive.Columns.Add(columnItem44); this.intzaTopActive.Columns.Add(columnItem45); this.intzaTopActive.CurrentScroll = 0; this.intzaTopActive.FocusItemIndex = -1; this.intzaTopActive.ForeColor = Color.Black; this.intzaTopActive.GridColor = Color.FromArgb(45, 45, 45); this.intzaTopActive.HeaderPctHeight = 80f; this.intzaTopActive.IsAutoRepaint = true; this.intzaTopActive.IsDrawFullRow = false; this.intzaTopActive.IsDrawGrid = true; this.intzaTopActive.IsDrawHeader = true; this.intzaTopActive.IsScrollable = true; this.intzaTopActive.Location = new Point(29, 354); this.intzaTopActive.MainColumn = "stock"; this.intzaTopActive.Name = "intzaTopActive"; this.intzaTopActive.Rows = 45; this.intzaTopActive.RowSelectColor = Color.FromArgb(50, 50, 50); this.intzaTopActive.RowSelectType = 2; this.intzaTopActive.RowsVisible = 40; this.intzaTopActive.Size = new Size(708, 55); this.intzaTopActive.SortColumnName = "pchg"; this.intzaTopActive.SortType = SortType.Desc; this.intzaTopActive.TabIndex = 4; this.intzaTopActive.TableMouseClick += new SortGrid.TableMouseClickEventHandler(this.intzaTopActive_TableMouseClick); this.contextLink.Items.AddRange(new ToolStripItem[] { this.tsmCallHistoricalChart, this.tsmCallNews, this.toolStripMenuItem1, this.tsmCallMarketWatch, this.tsmCallStockInPlay, this.tsmCallSaleByPrice, this.tsmCallSaleByTime, this.tsmCallOddlot }); this.contextLink.Name = "contextMenuStrip1"; this.contextLink.Size = new Size(212, 164); this.tsmCallHistoricalChart.Name = "tsmCallHistoricalChart"; this.tsmCallHistoricalChart.Size = new Size(211, 22); this.tsmCallHistoricalChart.Text = "Historical Chart"; this.tsmCallHistoricalChart.Click += new EventHandler(this.tsmCallHistoricalChart_Click); this.tsmCallNews.Name = "tsmCallNews"; this.tsmCallNews.Size = new Size(211, 22); this.tsmCallNews.Text = "News - ข่าวตลาดหลักทรัพย์ฯ"; this.tsmCallNews.Click += new EventHandler(this.tsmCallNews_Click); this.toolStripMenuItem1.Name = "toolStripMenuItem1"; this.toolStripMenuItem1.Size = new Size(208, 6); this.tsmCallMarketWatch.Name = "tsmCallMarketWatch"; this.tsmCallMarketWatch.Size = new Size(211, 22); this.tsmCallMarketWatch.Text = "Market Watch"; this.tsmCallMarketWatch.Click += new EventHandler(this.tsmCallMarketWatch_Click); this.tsmCallStockInPlay.Name = "tsmCallStockInPlay"; this.tsmCallStockInPlay.Size = new Size(211, 22); this.tsmCallStockInPlay.Text = "Stock in Play"; this.tsmCallStockInPlay.Click += new EventHandler(this.tsmCallStockSummary_Click); this.tsmCallSaleByPrice.Name = "tsmCallSaleByPrice"; this.tsmCallSaleByPrice.Size = new Size(211, 22); this.tsmCallSaleByPrice.Text = "Sale by Price"; this.tsmCallSaleByPrice.Click += new EventHandler(this.tsmCallSaleByPrice_Click); this.tsmCallSaleByTime.Name = "tsmCallSaleByTime"; this.tsmCallSaleByTime.Size = new Size(211, 22); this.tsmCallSaleByTime.Text = "Sale by Time"; this.tsmCallSaleByTime.Click += new EventHandler(this.tsmCallSaleByTime_Click); this.tsmCallOddlot.Name = "tsmCallOddlot"; this.tsmCallOddlot.Size = new Size(211, 22); this.tsmCallOddlot.Text = "View Oddlot"; this.tsmCallOddlot.Click += new EventHandler(this.tsmCallOddlot_Click); base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; this.BackColor = Color.FromArgb(20, 20, 20); base.ClientSize = new Size(1252, 421); base.Controls.Add(this.intzaBestOpen); base.Controls.Add(this.intzaProjectedOpen); base.Controls.Add(this.intzaProjectedClose); base.Controls.Add(this.intzaTopActive); base.Controls.Add(this.tStripMenu); base.FormBorderStyle = FormBorderStyle.FixedToolWindow; base.Name = "frmStockRanking"; this.Text = "Stock Ranking"; base.IDoShownDelay += new ClientBaseForm.OnShownDelayEventHandler(this.frmStockRanking_IDoShownDelay); base.IDoLoadData += new ClientBaseForm.OnIDoLoadDataEventHandler(this.frmStockRanking_IDoLoadData); base.IDoFontChanged += new ClientBaseForm.OnFontChangedEventHandler(this.frmStockRanking_IDoFontChanged); base.IDoCustomSizeChanged += new ClientBaseForm.CustomSizeChangedEventHandler(this.frmStockRanking_IDoCustomSizeChanged); base.IDoMainFormKeyUp += new ClientBaseForm.OnFormKeyUpEventHandler(this.frmStockRanking_IDoMainFormKeyUp); base.IDoReActivated += new ClientBaseForm.OnReActiveEventHandler(this.frmStockRanking_IDoReActivated); base.Controls.SetChildIndex(this.tStripMenu, 0); base.Controls.SetChildIndex(this.intzaTopActive, 0); base.Controls.SetChildIndex(this.intzaProjectedClose, 0); base.Controls.SetChildIndex(this.intzaProjectedOpen, 0); base.Controls.SetChildIndex(this.intzaBestOpen, 0); this.tStripMenu.ResumeLayout(false); this.tStripMenu.PerformLayout(); this.contextLink.ResumeLayout(false); base.ResumeLayout(false); base.PerformLayout(); }
private void OnClickDeleteColumn(object source, EventArgs e) { int index = this.currentColumnItem.Index; int num2 = -1; int count = this.selColumnsList.Items.Count; if (count > 1) { if (index == (count - 1)) { num2 = index - 1; } else { num2 = index; } } this.propChangesPending = false; this.currentColumnItem.Remove(); this.currentColumnItem = null; if (num2 != -1) { this.currentColumnItem = (ColumnItem) this.selColumnsList.Items[num2]; this.currentColumnItem.Selected = true; this.currentColumnItem.EnsureVisible(); } this.SetDirty(); this.UpdateEnabledVisibleState(); }
private void InitializeComponent() { ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmStockSummary)); ColumnItem columnItem = new ColumnItem(); ColumnItem columnItem2 = new ColumnItem(); ColumnItem columnItem3 = new ColumnItem(); ColumnItem columnItem4 = new ColumnItem(); ColumnItem columnItem5 = new ColumnItem(); ColumnItem columnItem6 = new ColumnItem(); ColumnItem columnItem7 = new ColumnItem(); ColumnItem columnItem8 = new ColumnItem(); ItemGrid itemGrid = new ItemGrid(); ItemGrid itemGrid2 = new ItemGrid(); ItemGrid itemGrid3 = new ItemGrid(); ItemGrid itemGrid4 = new ItemGrid(); ItemGrid itemGrid5 = new ItemGrid(); ItemGrid itemGrid6 = new ItemGrid(); ItemGrid itemGrid7 = new ItemGrid(); ItemGrid itemGrid8 = new ItemGrid(); ItemGrid itemGrid9 = new ItemGrid(); ItemGrid itemGrid10 = new ItemGrid(); ItemGrid itemGrid11 = new ItemGrid(); ItemGrid itemGrid12 = new ItemGrid(); ItemGrid itemGrid13 = new ItemGrid(); ItemGrid itemGrid14 = new ItemGrid(); ItemGrid itemGrid15 = new ItemGrid(); ItemGrid itemGrid16 = new ItemGrid(); ItemGrid itemGrid17 = new ItemGrid(); ItemGrid itemGrid18 = new ItemGrid(); ItemGrid itemGrid19 = new ItemGrid(); ItemGrid itemGrid20 = new ItemGrid(); ColumnItem columnItem9 = new ColumnItem(); ColumnItem columnItem10 = new ColumnItem(); ColumnItem columnItem11 = new ColumnItem(); ColumnItem columnItem12 = new ColumnItem(); ColumnItem columnItem13 = new ColumnItem(); ColumnItem columnItem14 = new ColumnItem(); ColumnItem columnItem15 = new ColumnItem(); ColumnItem columnItem16 = new ColumnItem(); ColumnItem columnItem17 = new ColumnItem(); ColumnItem columnItem18 = new ColumnItem(); ColumnItem columnItem19 = new ColumnItem(); ColumnItem columnItem20 = new ColumnItem(); ColumnItem columnItem21 = new ColumnItem(); ColumnItem columnItem22 = new ColumnItem(); ColumnItem columnItem23 = new ColumnItem(); ColumnItem columnItem24 = new ColumnItem(); ColumnItem columnItem25 = new ColumnItem(); ColumnItem columnItem26 = new ColumnItem(); ColumnItem columnItem27 = new ColumnItem(); ColumnItem columnItem28 = new ColumnItem(); ColumnItem columnItem29 = new ColumnItem(); ColumnItem columnItem30 = new ColumnItem(); ColumnItem columnItem31 = new ColumnItem(); ColumnItem columnItem32 = new ColumnItem(); ItemGrid itemGrid21 = new ItemGrid(); ItemGrid itemGrid22 = new ItemGrid(); ItemGrid itemGrid23 = new ItemGrid(); ItemGrid itemGrid24 = new ItemGrid(); ItemGrid itemGrid25 = new ItemGrid(); ItemGrid itemGrid26 = new ItemGrid(); ItemGrid itemGrid27 = new ItemGrid(); ItemGrid itemGrid28 = new ItemGrid(); ItemGrid itemGrid29 = new ItemGrid(); ItemGrid itemGrid30 = new ItemGrid(); ItemGrid itemGrid31 = new ItemGrid(); ItemGrid itemGrid32 = new ItemGrid(); ItemGrid itemGrid33 = new ItemGrid(); ItemGrid itemGrid34 = new ItemGrid(); ItemGrid itemGrid35 = new ItemGrid(); ItemGrid itemGrid36 = new ItemGrid(); ItemGrid itemGrid37 = new ItemGrid(); ItemGrid itemGrid38 = new ItemGrid(); ItemGrid itemGrid39 = new ItemGrid(); ItemGrid itemGrid40 = new ItemGrid(); ItemGrid itemGrid41 = new ItemGrid(); ItemGrid itemGrid42 = new ItemGrid(); ItemGrid itemGrid43 = new ItemGrid(); ItemGrid itemGrid44 = new ItemGrid(); ItemGrid itemGrid45 = new ItemGrid(); ItemGrid itemGrid46 = new ItemGrid(); ItemGrid itemGrid47 = new ItemGrid(); ItemGrid itemGrid48 = new ItemGrid(); ItemGrid itemGrid49 = new ItemGrid(); ItemGrid itemGrid50 = new ItemGrid(); ItemGrid itemGrid51 = new ItemGrid(); ItemGrid itemGrid52 = new ItemGrid(); ItemGrid itemGrid53 = new ItemGrid(); ItemGrid itemGrid54 = new ItemGrid(); ItemGrid itemGrid55 = new ItemGrid(); ItemGrid itemGrid56 = new ItemGrid(); ItemGrid itemGrid57 = new ItemGrid(); ItemGrid itemGrid58 = new ItemGrid(); ItemGrid itemGrid59 = new ItemGrid(); ItemGrid itemGrid60 = new ItemGrid(); ItemGrid itemGrid61 = new ItemGrid(); ItemGrid itemGrid62 = new ItemGrid(); ItemGrid itemGrid63 = new ItemGrid(); ItemGrid itemGrid64 = new ItemGrid(); ItemGrid itemGrid65 = new ItemGrid(); ItemGrid itemGrid66 = new ItemGrid(); ItemGrid itemGrid67 = new ItemGrid(); ItemGrid itemGrid68 = new ItemGrid(); ItemGrid itemGrid69 = new ItemGrid(); ItemGrid itemGrid70 = new ItemGrid(); ItemGrid itemGrid71 = new ItemGrid(); ItemGrid itemGrid72 = new ItemGrid(); ItemGrid itemGrid73 = new ItemGrid(); ItemGrid itemGrid74 = new ItemGrid(); ItemGrid itemGrid75 = new ItemGrid(); ItemGrid itemGrid76 = new ItemGrid(); ItemGrid itemGrid77 = new ItemGrid(); ItemGrid itemGrid78 = new ItemGrid(); ItemGrid itemGrid79 = new ItemGrid(); ItemGrid itemGrid80 = new ItemGrid(); ItemGrid itemGrid81 = new ItemGrid(); ItemGrid itemGrid82 = new ItemGrid(); ItemGrid itemGrid83 = new ItemGrid(); ItemGrid itemGrid84 = new ItemGrid(); ItemGrid itemGrid85 = new ItemGrid(); ItemGrid itemGrid86 = new ItemGrid(); ItemGrid itemGrid87 = new ItemGrid(); ItemGrid itemGrid88 = new ItemGrid(); ItemGrid itemGrid89 = new ItemGrid(); ItemGrid itemGrid90 = new ItemGrid(); ItemGrid itemGrid91 = new ItemGrid(); ItemGrid itemGrid92 = new ItemGrid(); ItemGrid itemGrid93 = new ItemGrid(); ItemGrid itemGrid94 = new ItemGrid(); ItemGrid itemGrid95 = new ItemGrid(); ItemGrid itemGrid96 = new ItemGrid(); ItemGrid itemGrid97 = new ItemGrid(); ItemGrid itemGrid98 = new ItemGrid(); ItemGrid itemGrid99 = new ItemGrid(); ItemGrid itemGrid100 = new ItemGrid(); ItemGrid itemGrid101 = new ItemGrid(); ItemGrid itemGrid102 = new ItemGrid(); ItemGrid itemGrid103 = new ItemGrid(); ItemGrid itemGrid104 = new ItemGrid(); clsPermission clsPermission = new clsPermission(); clsPermission clsPermission2 = new clsPermission(); this.tStripMenu = new ToolStrip(); this.toolStripLabel1 = new ToolStripLabel(); this.tscbSelection = new ToolStripComboBox(); this.toolStripSeparator1 = new ToolStripSeparator(); this.tslblStockInPlayStock = new ToolStripLabel(); this.tscbStock = new ToolStripComboBox(); this.tsbtnStockInPlayPrevPage = new ToolStripButton(); this.tsbtnStockInPlayNextPage = new ToolStripButton(); this.tslbHour = new ToolStripLabel(); this.tstxtSaleByTimeSearchTimeHour = new ToolStripTextBox(); this.tslbMinute = new ToolStripLabel(); this.tstxtSaleByTimeSearchTimeMinute = new ToolStripTextBox(); this.tsbtnSaleByTimeClearTime2 = new ToolStripButton(); this.tssepSaleByTime2 = new ToolStripSeparator(); this.tsbtnSaleByTimeFirstPage = new ToolStripButton(); this.tsbtnSaleByTimePrevPage = new ToolStripButton(); this.tslblSaleByTimePageNo = new ToolStripLabel(); this.tsbtnSaleByTimeNextPage = new ToolStripButton(); this.intzaVolumeByBoard = new SortGrid(); this.intzaLS = new SortGrid(); this.intzaViewOddLotInfo = new IntzaCustomGrid(); this.intzaSaleByTime = new SortGrid(); this.intzaSaleByPrice = new SortGrid(); this.intzaViewOddLot = new SortGrid(); this.intzaStockInPlay = new SortGrid(); this.intzaInfo = new IntzaCustomGrid(); this.intzaInfoTFEX = new IntzaCustomGrid(); this.wcGraphVolume = new ucVolumeAtPrice(); this.tStripMenu.SuspendLayout(); base.SuspendLayout(); this.tStripMenu.AllowMerge = false; this.tStripMenu.BackColor = Color.FromArgb(30, 30, 30); this.tStripMenu.GripStyle = ToolStripGripStyle.Hidden; this.tStripMenu.Items.AddRange(new ToolStripItem[] { this.toolStripLabel1, this.tscbSelection, this.toolStripSeparator1, this.tslblStockInPlayStock, this.tscbStock, this.tsbtnStockInPlayPrevPage, this.tsbtnStockInPlayNextPage, this.tslbHour, this.tstxtSaleByTimeSearchTimeHour, this.tslbMinute, this.tstxtSaleByTimeSearchTimeMinute, this.tsbtnSaleByTimeClearTime2, this.tssepSaleByTime2, this.tsbtnSaleByTimeFirstPage, this.tsbtnSaleByTimePrevPage, this.tslblSaleByTimePageNo, this.tsbtnSaleByTimeNextPage }); this.tStripMenu.Location = new Point(0, 0); this.tStripMenu.Name = "tStripMenu"; this.tStripMenu.Padding = new Padding(1, 1, 1, 2); this.tStripMenu.RenderMode = ToolStripRenderMode.System; this.tStripMenu.Size = new Size(888, 26); this.tStripMenu.TabIndex = 17; this.tStripMenu.TabStop = true; this.toolStripLabel1.ForeColor = Color.LightGray; this.toolStripLabel1.Margin = new Padding(2, 1, 2, 2); this.toolStripLabel1.Name = "toolStripLabel1"; this.toolStripLabel1.Size = new Size(33, 20); this.toolStripLabel1.Text = "Page"; this.tscbSelection.BackColor = Color.FromArgb(30, 30, 30); this.tscbSelection.DropDownStyle = ComboBoxStyle.DropDownList; this.tscbSelection.ForeColor = Color.LightGray; this.tscbSelection.Items.AddRange(new object[] { "Stock in Play", "Sale by Price", "Sale by Time", "View Oddlot" }); this.tscbSelection.Name = "tscbSelection"; this.tscbSelection.Size = new Size(130, 23); this.tscbSelection.SelectedIndexChanged += new EventHandler(this.tscbSelection_SelectedIndexChanged); this.toolStripSeparator1.Margin = new Padding(5, 0, 5, 0); this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new Size(6, 23); this.tslblStockInPlayStock.BackColor = Color.Transparent; this.tslblStockInPlayStock.Font = new Font("Microsoft Sans Serif", 8.25f); this.tslblStockInPlayStock.ForeColor = Color.LightGray; this.tslblStockInPlayStock.Margin = new Padding(5, 1, 0, 2); this.tslblStockInPlayStock.Name = "tslblStockInPlayStock"; this.tslblStockInPlayStock.Size = new Size(41, 20); this.tslblStockInPlayStock.Text = "Symbol"; this.tscbStock.AutoCompleteSource = AutoCompleteSource.CustomSource; this.tscbStock.BackColor = Color.FromArgb(30, 30, 30); this.tscbStock.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 222); this.tscbStock.ForeColor = Color.Yellow; this.tscbStock.MaxLength = 25; this.tscbStock.Name = "tscbStock"; this.tscbStock.Size = new Size(125, 23); this.tscbStock.SelectedIndexChanged += new EventHandler(this.tscbStock_SelectedIndexChanged); this.tscbStock.KeyUp += new KeyEventHandler(this.tscbStock_KeyUp); this.tscbStock.KeyDown += new KeyEventHandler(this.comboStock_KeyDown); this.tscbStock.KeyPress += new KeyPressEventHandler(this.tscbStock_KeyPress); this.tsbtnStockInPlayPrevPage.Font = new Font("Microsoft Sans Serif", 8.25f); this.tsbtnStockInPlayPrevPage.ForeColor = Color.LightGray; this.tsbtnStockInPlayPrevPage.Image = (Image)componentResourceManager.GetObject("tsbtnStockInPlayPrevPage.Image"); this.tsbtnStockInPlayPrevPage.ImageTransparentColor = Color.Magenta; this.tsbtnStockInPlayPrevPage.Margin = new Padding(5, 1, 0, 2); this.tsbtnStockInPlayPrevPage.Name = "tsbtnStockInPlayPrevPage"; this.tsbtnStockInPlayPrevPage.Size = new Size(69, 20); this.tsbtnStockInPlayPrevPage.Text = "Page Up"; this.tsbtnStockInPlayPrevPage.ToolTipText = "Up Page"; this.tsbtnStockInPlayPrevPage.Click += new EventHandler(this.tsbtnStockInPlayPrevPage_Click); this.tsbtnStockInPlayNextPage.Font = new Font("Microsoft Sans Serif", 8.25f); this.tsbtnStockInPlayNextPage.ForeColor = Color.LightGray; this.tsbtnStockInPlayNextPage.Image = (Image)componentResourceManager.GetObject("tsbtnStockInPlayNextPage.Image"); this.tsbtnStockInPlayNextPage.ImageTransparentColor = Color.Magenta; this.tsbtnStockInPlayNextPage.Name = "tsbtnStockInPlayNextPage"; this.tsbtnStockInPlayNextPage.Size = new Size(83, 20); this.tsbtnStockInPlayNextPage.Text = "Page Down"; this.tsbtnStockInPlayNextPage.ToolTipText = "Down Page"; this.tsbtnStockInPlayNextPage.Click += new EventHandler(this.tsbtnStockInPlayNextPage_Click); this.tslbHour.Font = new Font("Microsoft Sans Serif", 8.25f); this.tslbHour.ForeColor = Color.LightGray; this.tslbHour.Name = "tslbHour"; this.tslbHour.Size = new Size(36, 20); this.tslbHour.Text = "Hour :"; this.tstxtSaleByTimeSearchTimeHour.BackColor = Color.FromArgb(45, 45, 45); this.tstxtSaleByTimeSearchTimeHour.BorderStyle = BorderStyle.FixedSingle; this.tstxtSaleByTimeSearchTimeHour.Font = new Font("Microsoft Sans Serif", 8.25f); this.tstxtSaleByTimeSearchTimeHour.ForeColor = Color.LightGray; this.tstxtSaleByTimeSearchTimeHour.MaxLength = 2; this.tstxtSaleByTimeSearchTimeHour.Name = "tstxtSaleByTimeSearchTimeHour"; this.tstxtSaleByTimeSearchTimeHour.Size = new Size(26, 23); this.tstxtSaleByTimeSearchTimeHour.TextBoxTextAlign = HorizontalAlignment.Center; this.tstxtSaleByTimeSearchTimeHour.ToolTipText = "{ เวลา ที่ต้องการค้นหา หน่วยเป็น ชม.}"; this.tstxtSaleByTimeSearchTimeHour.KeyUp += new KeyEventHandler(this.tstxtSaleByTimeSearchTimeHour_KeyUp); this.tslbMinute.Font = new Font("Microsoft Sans Serif", 8.25f); this.tslbMinute.ForeColor = Color.LightGray; this.tslbMinute.Margin = new Padding(2, 1, 0, 2); this.tslbMinute.Name = "tslbMinute"; this.tslbMinute.Size = new Size(45, 20); this.tslbMinute.Text = "Minute :"; this.tstxtSaleByTimeSearchTimeMinute.BackColor = Color.FromArgb(45, 45, 45); this.tstxtSaleByTimeSearchTimeMinute.BorderStyle = BorderStyle.FixedSingle; this.tstxtSaleByTimeSearchTimeMinute.Font = new Font("Microsoft Sans Serif", 8.25f); this.tstxtSaleByTimeSearchTimeMinute.ForeColor = Color.LightGray; this.tstxtSaleByTimeSearchTimeMinute.MaxLength = 2; this.tstxtSaleByTimeSearchTimeMinute.Name = "tstxtSaleByTimeSearchTimeMinute"; this.tstxtSaleByTimeSearchTimeMinute.Size = new Size(26, 23); this.tstxtSaleByTimeSearchTimeMinute.TextBoxTextAlign = HorizontalAlignment.Center; this.tstxtSaleByTimeSearchTimeMinute.ToolTipText = "{ เวลา ที่ต้องการค้นหา หน่วยเป็น นาที}"; this.tstxtSaleByTimeSearchTimeMinute.KeyUp += new KeyEventHandler(this.tstxtSaleByTimeSearchTimeMinute_KeyUp); this.tsbtnSaleByTimeClearTime2.DisplayStyle = ToolStripItemDisplayStyle.Text; this.tsbtnSaleByTimeClearTime2.ForeColor = Color.LightGray; this.tsbtnSaleByTimeClearTime2.ImageTransparentColor = Color.Magenta; this.tsbtnSaleByTimeClearTime2.Margin = new Padding(5, 1, 3, 2); this.tsbtnSaleByTimeClearTime2.Name = "tsbtnSaleByTimeClearTime2"; this.tsbtnSaleByTimeClearTime2.Size = new Size(38, 20); this.tsbtnSaleByTimeClearTime2.Text = "Clear"; this.tsbtnSaleByTimeClearTime2.ToolTipText = "Clear Filter"; this.tsbtnSaleByTimeClearTime2.Click += new EventHandler(this.tsbtnSaleByTimeClearTime_Click); this.tssepSaleByTime2.Margin = new Padding(2, 0, 5, 0); this.tssepSaleByTime2.Name = "tssepSaleByTime2"; this.tssepSaleByTime2.Size = new Size(6, 23); this.tsbtnSaleByTimeFirstPage.DisplayStyle = ToolStripItemDisplayStyle.Image; this.tsbtnSaleByTimeFirstPage.Font = new Font("Microsoft Sans Serif", 8.25f); this.tsbtnSaleByTimeFirstPage.Image = Resources.MoveFirstHS; this.tsbtnSaleByTimeFirstPage.ImageTransparentColor = Color.Magenta; this.tsbtnSaleByTimeFirstPage.Name = "tsbtnSaleByTimeFirstPage"; this.tsbtnSaleByTimeFirstPage.Size = new Size(23, 20); this.tsbtnSaleByTimeFirstPage.ToolTipText = "First"; this.tsbtnSaleByTimeFirstPage.Click += new EventHandler(this.tsbtnSaleByTimeFirstPage_Click); this.tsbtnSaleByTimePrevPage.DisplayStyle = ToolStripItemDisplayStyle.Image; this.tsbtnSaleByTimePrevPage.Font = new Font("Microsoft Sans Serif", 8.25f); this.tsbtnSaleByTimePrevPage.Image = Resources.MovePreviousHS; this.tsbtnSaleByTimePrevPage.ImageTransparentColor = Color.Magenta; this.tsbtnSaleByTimePrevPage.Name = "tsbtnSaleByTimePrevPage"; this.tsbtnSaleByTimePrevPage.Size = new Size(23, 20); this.tsbtnSaleByTimePrevPage.ToolTipText = "Previous"; this.tsbtnSaleByTimePrevPage.Click += new EventHandler(this.tsbtnSaleByTimePrevPage_Click); this.tslblSaleByTimePageNo.BackColor = Color.Transparent; this.tslblSaleByTimePageNo.Font = new Font("Microsoft Sans Serif", 8.25f); this.tslblSaleByTimePageNo.ForeColor = Color.LightGray; this.tslblSaleByTimePageNo.Name = "tslblSaleByTimePageNo"; this.tslblSaleByTimePageNo.Size = new Size(13, 20); this.tslblSaleByTimePageNo.Text = "0"; this.tsbtnSaleByTimeNextPage.DisplayStyle = ToolStripItemDisplayStyle.Image; this.tsbtnSaleByTimeNextPage.Font = new Font("Microsoft Sans Serif", 8.25f); this.tsbtnSaleByTimeNextPage.Image = Resources.MoveNextHS; this.tsbtnSaleByTimeNextPage.ImageTransparentColor = Color.Magenta; this.tsbtnSaleByTimeNextPage.Name = "tsbtnSaleByTimeNextPage"; this.tsbtnSaleByTimeNextPage.Size = new Size(23, 20); this.tsbtnSaleByTimeNextPage.ToolTipText = "Next"; this.tsbtnSaleByTimeNextPage.Click += new EventHandler(this.tsbtnSaleByTimeNextPage_Click); this.intzaVolumeByBoard.AllowDrop = true; this.intzaVolumeByBoard.BackColor = Color.FromArgb(30, 30, 30); this.intzaVolumeByBoard.CanBlink = true; this.intzaVolumeByBoard.CanDrag = false; this.intzaVolumeByBoard.CanGetMouseMove = false; columnItem.Alignment = StringAlignment.Near; columnItem.BackColor = Color.FromArgb(64, 64, 64); columnItem.ColumnAlignment = StringAlignment.Center; columnItem.FontColor = Color.LightGray; columnItem.MyStyle = FontStyle.Regular; columnItem.Name = "h1"; columnItem.Text = ""; columnItem.ValueFormat = FormatType.Label; columnItem.Visible = true; columnItem.Width = 17; columnItem2.Alignment = StringAlignment.Far; columnItem2.BackColor = Color.DimGray; columnItem2.ColumnAlignment = StringAlignment.Center; columnItem2.FontColor = Color.White; columnItem2.MyStyle = FontStyle.Regular; columnItem2.Name = "deals"; columnItem2.Text = "Deals"; columnItem2.ValueFormat = FormatType.Volume; columnItem2.Visible = true; columnItem2.Width = 20; columnItem3.Alignment = StringAlignment.Far; columnItem3.BackColor = Color.DimGray; columnItem3.ColumnAlignment = StringAlignment.Center; columnItem3.FontColor = Color.White; columnItem3.MyStyle = FontStyle.Regular; columnItem3.Name = "volume"; columnItem3.Text = "Volume"; columnItem3.ValueFormat = FormatType.Volume; columnItem3.Visible = true; columnItem3.Width = 29; columnItem4.Alignment = StringAlignment.Far; columnItem4.BackColor = Color.DimGray; columnItem4.ColumnAlignment = StringAlignment.Center; columnItem4.FontColor = Color.White; columnItem4.MyStyle = FontStyle.Regular; columnItem4.Name = "value"; columnItem4.Text = "Value"; columnItem4.ValueFormat = FormatType.Text; columnItem4.Visible = true; columnItem4.Width = 34; this.intzaVolumeByBoard.Columns.Add(columnItem); this.intzaVolumeByBoard.Columns.Add(columnItem2); this.intzaVolumeByBoard.Columns.Add(columnItem3); this.intzaVolumeByBoard.Columns.Add(columnItem4); this.intzaVolumeByBoard.CurrentScroll = 0; this.intzaVolumeByBoard.FocusItemIndex = -1; this.intzaVolumeByBoard.ForeColor = Color.Black; this.intzaVolumeByBoard.GridColor = Color.FromArgb(45, 45, 45); this.intzaVolumeByBoard.HeaderPctHeight = 80f; this.intzaVolumeByBoard.IsAutoRepaint = true; this.intzaVolumeByBoard.IsDrawFullRow = false; this.intzaVolumeByBoard.IsDrawGrid = false; this.intzaVolumeByBoard.IsDrawHeader = true; this.intzaVolumeByBoard.IsScrollable = false; this.intzaVolumeByBoard.Location = new Point(612, 278); this.intzaVolumeByBoard.MainColumn = ""; this.intzaVolumeByBoard.Margin = new Padding(0); this.intzaVolumeByBoard.Name = "intzaVolumeByBoard"; this.intzaVolumeByBoard.Rows = 2; this.intzaVolumeByBoard.RowSelectColor = Color.FromArgb(95, 158, 160); this.intzaVolumeByBoard.RowSelectType = 0; this.intzaVolumeByBoard.RowsVisible = 2; this.intzaVolumeByBoard.Size = new Size(265, 48); this.intzaVolumeByBoard.SortColumnName = ""; this.intzaVolumeByBoard.SortType = SortType.Desc; this.intzaVolumeByBoard.TabIndex = 87; this.intzaLS.AllowDrop = true; this.intzaLS.BackColor = Color.FromArgb(30, 30, 30); this.intzaLS.CanBlink = true; this.intzaLS.CanDrag = false; this.intzaLS.CanGetMouseMove = false; columnItem5.Alignment = StringAlignment.Center; columnItem5.BackColor = Color.FromArgb(64, 64, 64); columnItem5.ColumnAlignment = StringAlignment.Center; columnItem5.FontColor = Color.LightGray; columnItem5.MyStyle = FontStyle.Regular; columnItem5.Name = "side"; columnItem5.Text = "B/S"; columnItem5.ValueFormat = FormatType.Text; columnItem5.Visible = true; columnItem5.Width = 13; columnItem6.Alignment = StringAlignment.Far; columnItem6.BackColor = Color.FromArgb(64, 64, 64); columnItem6.ColumnAlignment = StringAlignment.Center; columnItem6.FontColor = Color.LightGray; columnItem6.MyStyle = FontStyle.Regular; columnItem6.Name = "volume"; columnItem6.Text = "Volume"; columnItem6.ValueFormat = FormatType.Volume; columnItem6.Visible = true; columnItem6.Width = 36; columnItem7.Alignment = StringAlignment.Far; columnItem7.BackColor = Color.FromArgb(64, 64, 64); columnItem7.ColumnAlignment = StringAlignment.Center; columnItem7.FontColor = Color.LightGray; columnItem7.MyStyle = FontStyle.Regular; columnItem7.Name = "price"; columnItem7.Text = "Price"; columnItem7.ValueFormat = FormatType.Text; columnItem7.Visible = true; columnItem7.Width = 24; columnItem8.Alignment = StringAlignment.Far; columnItem8.BackColor = Color.FromArgb(64, 64, 64); columnItem8.ColumnAlignment = StringAlignment.Center; columnItem8.FontColor = Color.LightGray; columnItem8.MyStyle = FontStyle.Regular; columnItem8.Name = "time"; columnItem8.Text = "Time"; columnItem8.ValueFormat = FormatType.Text; columnItem8.Visible = true; columnItem8.Width = 27; this.intzaLS.Columns.Add(columnItem5); this.intzaLS.Columns.Add(columnItem6); this.intzaLS.Columns.Add(columnItem7); this.intzaLS.Columns.Add(columnItem8); this.intzaLS.CurrentScroll = 0; this.intzaLS.FocusItemIndex = -1; this.intzaLS.ForeColor = Color.Black; this.intzaLS.GridColor = Color.FromArgb(45, 45, 45); this.intzaLS.HeaderPctHeight = 80f; this.intzaLS.IsAutoRepaint = true; this.intzaLS.IsDrawFullRow = true; this.intzaLS.IsDrawGrid = false; this.intzaLS.IsDrawHeader = true; this.intzaLS.IsScrollable = false; this.intzaLS.Location = new Point(612, 199); this.intzaLS.MainColumn = ""; this.intzaLS.Margin = new Padding(2); this.intzaLS.Name = "intzaLS"; this.intzaLS.Rows = 0; this.intzaLS.RowSelectColor = Color.FromArgb(95, 158, 160); this.intzaLS.RowSelectType = 0; this.intzaLS.RowsVisible = 0; this.intzaLS.Size = new Size(265, 77); this.intzaLS.SortColumnName = ""; this.intzaLS.SortType = SortType.Desc; this.intzaLS.TabIndex = 86; this.intzaViewOddLotInfo.AllowDrop = true; this.intzaViewOddLotInfo.BackColor = Color.FromArgb(30, 30, 30); this.intzaViewOddLotInfo.CanDrag = false; this.intzaViewOddLotInfo.IsAutoRepaint = true; this.intzaViewOddLotInfo.IsDroped = false; itemGrid.AdjustFontSize = 0f; itemGrid.Alignment = StringAlignment.Near; itemGrid.BackColor = Color.FromArgb(30, 30, 30); itemGrid.Changed = false; itemGrid.FieldType = ItemType.Label2; itemGrid.FontColor = Color.WhiteSmoke; itemGrid.FontStyle = FontStyle.Regular; itemGrid.Height = 1f; itemGrid.IsBlink = 0; itemGrid.Name = "lboddavg"; itemGrid.Text = "Oddlot Avg"; itemGrid.ValueFormat = FormatType.Text; itemGrid.Visible = true; itemGrid.Width = 25; itemGrid.X = 0; itemGrid.Y = 0f; itemGrid2.AdjustFontSize = 0f; itemGrid2.Alignment = StringAlignment.Near; itemGrid2.BackColor = Color.FromArgb(30, 30, 30); itemGrid2.Changed = false; itemGrid2.FieldType = ItemType.Text; itemGrid2.FontColor = Color.White; itemGrid2.FontStyle = FontStyle.Regular; itemGrid2.Height = 1f; itemGrid2.IsBlink = 0; itemGrid2.Name = "oddavg"; itemGrid2.Text = ""; itemGrid2.ValueFormat = FormatType.Text; itemGrid2.Visible = true; itemGrid2.Width = 25; itemGrid2.X = 25; itemGrid2.Y = 0f; itemGrid3.AdjustFontSize = 0f; itemGrid3.Alignment = StringAlignment.Near; itemGrid3.BackColor = Color.FromArgb(30, 30, 30); itemGrid3.Changed = false; itemGrid3.FieldType = ItemType.Label2; itemGrid3.FontColor = Color.WhiteSmoke; itemGrid3.FontStyle = FontStyle.Regular; itemGrid3.Height = 1f; itemGrid3.IsBlink = 0; itemGrid3.Name = "lbodddeal"; itemGrid3.Text = "Oddlot Deal"; itemGrid3.ValueFormat = FormatType.Text; itemGrid3.Visible = true; itemGrid3.Width = 25; itemGrid3.X = 0; itemGrid3.Y = 1f; itemGrid4.AdjustFontSize = 0f; itemGrid4.Alignment = StringAlignment.Near; itemGrid4.BackColor = Color.FromArgb(30, 30, 30); itemGrid4.Changed = false; itemGrid4.FieldType = ItemType.Text; itemGrid4.FontColor = Color.Yellow; itemGrid4.FontStyle = FontStyle.Regular; itemGrid4.Height = 1f; itemGrid4.IsBlink = 0; itemGrid4.Name = "odddeal"; itemGrid4.Text = ""; itemGrid4.ValueFormat = FormatType.Text; itemGrid4.Visible = true; itemGrid4.Width = 25; itemGrid4.X = 25; itemGrid4.Y = 1f; itemGrid5.AdjustFontSize = 0f; itemGrid5.Alignment = StringAlignment.Near; itemGrid5.BackColor = Color.FromArgb(30, 30, 30); itemGrid5.Changed = false; itemGrid5.FieldType = ItemType.Label2; itemGrid5.FontColor = Color.WhiteSmoke; itemGrid5.FontStyle = FontStyle.Regular; itemGrid5.Height = 1f; itemGrid5.IsBlink = 0; itemGrid5.Name = "lboddvol"; itemGrid5.Text = "Oddlot Volume"; itemGrid5.ValueFormat = FormatType.Text; itemGrid5.Visible = true; itemGrid5.Width = 25; itemGrid5.X = 0; itemGrid5.Y = 2f; itemGrid6.AdjustFontSize = 0f; itemGrid6.Alignment = StringAlignment.Near; itemGrid6.BackColor = Color.FromArgb(30, 30, 30); itemGrid6.Changed = false; itemGrid6.FieldType = ItemType.Text; itemGrid6.FontColor = Color.Yellow; itemGrid6.FontStyle = FontStyle.Regular; itemGrid6.Height = 1f; itemGrid6.IsBlink = 0; itemGrid6.Name = "oddvol"; itemGrid6.Text = ""; itemGrid6.ValueFormat = FormatType.Text; itemGrid6.Visible = true; itemGrid6.Width = 25; itemGrid6.X = 25; itemGrid6.Y = 2f; itemGrid7.AdjustFontSize = 0f; itemGrid7.Alignment = StringAlignment.Near; itemGrid7.BackColor = Color.FromArgb(30, 30, 30); itemGrid7.Changed = false; itemGrid7.FieldType = ItemType.Label2; itemGrid7.FontColor = Color.WhiteSmoke; itemGrid7.FontStyle = FontStyle.Regular; itemGrid7.Height = 1f; itemGrid7.IsBlink = 0; itemGrid7.Name = "lboddvalue"; itemGrid7.Text = "Oddlot Value"; itemGrid7.ValueFormat = FormatType.Text; itemGrid7.Visible = true; itemGrid7.Width = 25; itemGrid7.X = 50; itemGrid7.Y = 2f; itemGrid8.AdjustFontSize = 0f; itemGrid8.Alignment = StringAlignment.Near; itemGrid8.BackColor = Color.FromArgb(30, 30, 30); itemGrid8.Changed = false; itemGrid8.FieldType = ItemType.Text; itemGrid8.FontColor = Color.Yellow; itemGrid8.FontStyle = FontStyle.Regular; itemGrid8.Height = 1f; itemGrid8.IsBlink = 0; itemGrid8.Name = "oddval"; itemGrid8.Text = ""; itemGrid8.ValueFormat = FormatType.Text; itemGrid8.Visible = true; itemGrid8.Width = 25; itemGrid8.X = 75; itemGrid8.Y = 2f; itemGrid9.AdjustFontSize = 0f; itemGrid9.Alignment = StringAlignment.Near; itemGrid9.BackColor = Color.FromArgb(30, 30, 30); itemGrid9.Changed = false; itemGrid9.FieldType = ItemType.Label2; itemGrid9.FontColor = Color.WhiteSmoke; itemGrid9.FontStyle = FontStyle.Regular; itemGrid9.Height = 1f; itemGrid9.IsBlink = 0; itemGrid9.Name = "lbceiling"; itemGrid9.Text = "Ceiling"; itemGrid9.ValueFormat = FormatType.Text; itemGrid9.Visible = true; itemGrid9.Width = 25; itemGrid9.X = 0; itemGrid9.Y = 3f; itemGrid10.AdjustFontSize = 0f; itemGrid10.Alignment = StringAlignment.Near; itemGrid10.BackColor = Color.FromArgb(30, 30, 30); itemGrid10.Changed = false; itemGrid10.FieldType = ItemType.Text; itemGrid10.FontColor = Color.Cyan; itemGrid10.FontStyle = FontStyle.Regular; itemGrid10.Height = 1f; itemGrid10.IsBlink = 0; itemGrid10.Name = "ceiling"; itemGrid10.Text = ""; itemGrid10.ValueFormat = FormatType.Price; itemGrid10.Visible = true; itemGrid10.Width = 25; itemGrid10.X = 25; itemGrid10.Y = 3f; itemGrid11.AdjustFontSize = 0f; itemGrid11.Alignment = StringAlignment.Near; itemGrid11.BackColor = Color.FromArgb(30, 30, 30); itemGrid11.Changed = false; itemGrid11.FieldType = ItemType.Label2; itemGrid11.FontColor = Color.WhiteSmoke; itemGrid11.FontStyle = FontStyle.Regular; itemGrid11.Height = 1f; itemGrid11.IsBlink = 0; itemGrid11.Name = "lbfloor"; itemGrid11.Text = "Floor"; itemGrid11.ValueFormat = FormatType.Text; itemGrid11.Visible = true; itemGrid11.Width = 25; itemGrid11.X = 50; itemGrid11.Y = 3f; itemGrid12.AdjustFontSize = 0f; itemGrid12.Alignment = StringAlignment.Near; itemGrid12.BackColor = Color.FromArgb(30, 30, 30); itemGrid12.Changed = false; itemGrid12.FieldType = ItemType.Text; itemGrid12.FontColor = Color.Magenta; itemGrid12.FontStyle = FontStyle.Regular; itemGrid12.Height = 1f; itemGrid12.IsBlink = 0; itemGrid12.Name = "floor"; itemGrid12.Text = ""; itemGrid12.ValueFormat = FormatType.Price; itemGrid12.Visible = true; itemGrid12.Width = 25; itemGrid12.X = 75; itemGrid12.Y = 3f; itemGrid13.AdjustFontSize = 0f; itemGrid13.Alignment = StringAlignment.Near; itemGrid13.BackColor = Color.FromArgb(30, 30, 30); itemGrid13.Changed = false; itemGrid13.FieldType = ItemType.Label2; itemGrid13.FontColor = Color.WhiteSmoke; itemGrid13.FontStyle = FontStyle.Regular; itemGrid13.Height = 1f; itemGrid13.IsBlink = 0; itemGrid13.Name = "lbTotOddMktVol"; itemGrid13.Text = "Total Odd Mkt Volume"; itemGrid13.ValueFormat = FormatType.Text; itemGrid13.Visible = true; itemGrid13.Width = 30; itemGrid13.X = 50; itemGrid13.Y = 0f; itemGrid14.AdjustFontSize = 0f; itemGrid14.Alignment = StringAlignment.Near; itemGrid14.BackColor = Color.FromArgb(30, 30, 30); itemGrid14.Changed = false; itemGrid14.FieldType = ItemType.Text; itemGrid14.FontColor = Color.Yellow; itemGrid14.FontStyle = FontStyle.Regular; itemGrid14.Height = 1f; itemGrid14.IsBlink = 0; itemGrid14.Name = "totvolume"; itemGrid14.Text = ""; itemGrid14.ValueFormat = FormatType.Volume; itemGrid14.Visible = true; itemGrid14.Width = 20; itemGrid14.X = 80; itemGrid14.Y = 0f; itemGrid15.AdjustFontSize = 0f; itemGrid15.Alignment = StringAlignment.Near; itemGrid15.BackColor = Color.FromArgb(30, 30, 30); itemGrid15.Changed = false; itemGrid15.FieldType = ItemType.Label2; itemGrid15.FontColor = Color.WhiteSmoke; itemGrid15.FontStyle = FontStyle.Regular; itemGrid15.Height = 1f; itemGrid15.IsBlink = 0; itemGrid15.Name = "lbTotOddMktVal"; itemGrid15.Text = "Total Odd Mkt Value"; itemGrid15.ValueFormat = FormatType.Text; itemGrid15.Visible = true; itemGrid15.Width = 30; itemGrid15.X = 50; itemGrid15.Y = 1f; itemGrid16.AdjustFontSize = 0f; itemGrid16.Alignment = StringAlignment.Near; itemGrid16.BackColor = Color.FromArgb(30, 30, 30); itemGrid16.Changed = false; itemGrid16.FieldType = ItemType.Text; itemGrid16.FontColor = Color.Yellow; itemGrid16.FontStyle = FontStyle.Regular; itemGrid16.Height = 1f; itemGrid16.IsBlink = 0; itemGrid16.Name = "totvalue"; itemGrid16.Text = ""; itemGrid16.ValueFormat = FormatType.Volume; itemGrid16.Visible = true; itemGrid16.Width = 20; itemGrid16.X = 80; itemGrid16.Y = 1f; itemGrid17.AdjustFontSize = 0f; itemGrid17.Alignment = StringAlignment.Near; itemGrid17.BackColor = Color.FromArgb(30, 30, 30); itemGrid17.Changed = false; itemGrid17.FieldType = ItemType.Label2; itemGrid17.FontColor = Color.WhiteSmoke; itemGrid17.FontStyle = FontStyle.Regular; itemGrid17.Height = 1f; itemGrid17.IsBlink = 0; itemGrid17.Name = "lblast"; itemGrid17.Text = "Last"; itemGrid17.ValueFormat = FormatType.Text; itemGrid17.Visible = true; itemGrid17.Width = 25; itemGrid17.X = 0; itemGrid17.Y = 4f; itemGrid18.AdjustFontSize = 0f; itemGrid18.Alignment = StringAlignment.Near; itemGrid18.BackColor = Color.FromArgb(30, 30, 30); itemGrid18.Changed = false; itemGrid18.FieldType = ItemType.Text; itemGrid18.FontColor = Color.White; itemGrid18.FontStyle = FontStyle.Regular; itemGrid18.Height = 1f; itemGrid18.IsBlink = 0; itemGrid18.Name = "oddlast"; itemGrid18.Text = ""; itemGrid18.ValueFormat = FormatType.Text; itemGrid18.Visible = true; itemGrid18.Width = 25; itemGrid18.X = 25; itemGrid18.Y = 4f; itemGrid19.AdjustFontSize = 0f; itemGrid19.Alignment = StringAlignment.Near; itemGrid19.BackColor = Color.FromArgb(30, 30, 30); itemGrid19.Changed = false; itemGrid19.FieldType = ItemType.Label2; itemGrid19.FontColor = Color.White; itemGrid19.FontStyle = FontStyle.Regular; itemGrid19.Height = 1f; itemGrid19.IsBlink = 0; itemGrid19.Name = "lbprior"; itemGrid19.Text = "Prev"; itemGrid19.ValueFormat = FormatType.Text; itemGrid19.Visible = true; itemGrid19.Width = 25; itemGrid19.X = 50; itemGrid19.Y = 4f; itemGrid20.AdjustFontSize = 0f; itemGrid20.Alignment = StringAlignment.Near; itemGrid20.BackColor = Color.FromArgb(30, 30, 30); itemGrid20.Changed = false; itemGrid20.FieldType = ItemType.Text; itemGrid20.FontColor = Color.Yellow; itemGrid20.FontStyle = FontStyle.Regular; itemGrid20.Height = 1f; itemGrid20.IsBlink = 0; itemGrid20.Name = "prior"; itemGrid20.Text = ""; itemGrid20.ValueFormat = FormatType.Price; itemGrid20.Visible = true; itemGrid20.Width = 25; itemGrid20.X = 75; itemGrid20.Y = 4f; this.intzaViewOddLotInfo.Items.Add(itemGrid); this.intzaViewOddLotInfo.Items.Add(itemGrid2); this.intzaViewOddLotInfo.Items.Add(itemGrid3); this.intzaViewOddLotInfo.Items.Add(itemGrid4); this.intzaViewOddLotInfo.Items.Add(itemGrid5); this.intzaViewOddLotInfo.Items.Add(itemGrid6); this.intzaViewOddLotInfo.Items.Add(itemGrid7); this.intzaViewOddLotInfo.Items.Add(itemGrid8); this.intzaViewOddLotInfo.Items.Add(itemGrid9); this.intzaViewOddLotInfo.Items.Add(itemGrid10); this.intzaViewOddLotInfo.Items.Add(itemGrid11); this.intzaViewOddLotInfo.Items.Add(itemGrid12); this.intzaViewOddLotInfo.Items.Add(itemGrid13); this.intzaViewOddLotInfo.Items.Add(itemGrid14); this.intzaViewOddLotInfo.Items.Add(itemGrid15); this.intzaViewOddLotInfo.Items.Add(itemGrid16); this.intzaViewOddLotInfo.Items.Add(itemGrid17); this.intzaViewOddLotInfo.Items.Add(itemGrid18); this.intzaViewOddLotInfo.Items.Add(itemGrid19); this.intzaViewOddLotInfo.Items.Add(itemGrid20); this.intzaViewOddLotInfo.LineColor = Color.Red; this.intzaViewOddLotInfo.Location = new Point(38, 43); this.intzaViewOddLotInfo.Margin = new Padding(0); this.intzaViewOddLotInfo.Name = "intzaViewOddLotInfo"; this.intzaViewOddLotInfo.Size = new Size(572, 87); this.intzaViewOddLotInfo.TabIndex = 10; this.intzaSaleByTime.AllowDrop = true; this.intzaSaleByTime.BackColor = Color.FromArgb(30, 30, 30); this.intzaSaleByTime.CanBlink = true; this.intzaSaleByTime.CanDrag = false; this.intzaSaleByTime.CanGetMouseMove = false; columnItem9.Alignment = StringAlignment.Center; columnItem9.BackColor = Color.FromArgb(64, 64, 64); columnItem9.ColumnAlignment = StringAlignment.Center; columnItem9.FontColor = Color.LightGray; columnItem9.MyStyle = FontStyle.Regular; columnItem9.Name = "time"; columnItem9.Text = "Time"; columnItem9.ValueFormat = FormatType.Text; columnItem9.Visible = true; columnItem9.Width = 22; columnItem10.Alignment = StringAlignment.Center; columnItem10.BackColor = Color.FromArgb(64, 64, 64); columnItem10.ColumnAlignment = StringAlignment.Center; columnItem10.FontColor = Color.LightGray; columnItem10.MyStyle = FontStyle.Regular; columnItem10.Name = "side"; columnItem10.Text = "B/S"; columnItem10.ValueFormat = FormatType.Text; columnItem10.Visible = true; columnItem10.Width = 11; columnItem11.Alignment = StringAlignment.Far; columnItem11.BackColor = Color.FromArgb(64, 64, 64); columnItem11.ColumnAlignment = StringAlignment.Center; columnItem11.FontColor = Color.LightGray; columnItem11.MyStyle = FontStyle.Regular; columnItem11.Name = "volume"; columnItem11.Text = "Volume"; columnItem11.ValueFormat = FormatType.Volume; columnItem11.Visible = true; columnItem11.Width = 22; columnItem12.Alignment = StringAlignment.Far; columnItem12.BackColor = Color.FromArgb(64, 64, 64); columnItem12.ColumnAlignment = StringAlignment.Center; columnItem12.FontColor = Color.LightGray; columnItem12.MyStyle = FontStyle.Regular; columnItem12.Name = "price"; columnItem12.Text = "Price"; columnItem12.ValueFormat = FormatType.Price; columnItem12.Visible = true; columnItem12.Width = 15; columnItem13.Alignment = StringAlignment.Far; columnItem13.BackColor = Color.FromArgb(64, 64, 64); columnItem13.ColumnAlignment = StringAlignment.Center; columnItem13.FontColor = Color.LightGray; columnItem13.MyStyle = FontStyle.Regular; columnItem13.Name = "chg"; columnItem13.Text = "Change"; columnItem13.ValueFormat = FormatType.ChangePrice; columnItem13.Visible = true; columnItem13.Width = 15; columnItem14.Alignment = StringAlignment.Far; columnItem14.BackColor = Color.FromArgb(64, 64, 64); columnItem14.ColumnAlignment = StringAlignment.Center; columnItem14.FontColor = Color.LightGray; columnItem14.MyStyle = FontStyle.Regular; columnItem14.Name = "avg"; columnItem14.Text = "Average"; columnItem14.ValueFormat = FormatType.Price; columnItem14.Visible = true; columnItem14.Width = 15; this.intzaSaleByTime.Columns.Add(columnItem9); this.intzaSaleByTime.Columns.Add(columnItem10); this.intzaSaleByTime.Columns.Add(columnItem11); this.intzaSaleByTime.Columns.Add(columnItem12); this.intzaSaleByTime.Columns.Add(columnItem13); this.intzaSaleByTime.Columns.Add(columnItem14); this.intzaSaleByTime.CurrentScroll = 0; this.intzaSaleByTime.FocusItemIndex = -1; this.intzaSaleByTime.ForeColor = Color.Black; this.intzaSaleByTime.GridColor = Color.FromArgb(45, 45, 45); this.intzaSaleByTime.HeaderPctHeight = 100f; this.intzaSaleByTime.IsAutoRepaint = true; this.intzaSaleByTime.IsDrawFullRow = false; this.intzaSaleByTime.IsDrawGrid = true; this.intzaSaleByTime.IsDrawHeader = true; this.intzaSaleByTime.IsScrollable = false; this.intzaSaleByTime.Location = new Point(12, 74); this.intzaSaleByTime.MainColumn = ""; this.intzaSaleByTime.Name = "intzaSaleByTime"; this.intzaSaleByTime.Rows = 0; this.intzaSaleByTime.RowSelectColor = Color.FromArgb(95, 158, 160); this.intzaSaleByTime.RowSelectType = 0; this.intzaSaleByTime.RowsVisible = 0; this.intzaSaleByTime.Size = new Size(540, 85); this.intzaSaleByTime.SortColumnName = ""; this.intzaSaleByTime.SortType = SortType.Desc; this.intzaSaleByTime.TabIndex = 28; this.intzaSaleByTime.TableMouseClick += new SortGrid.TableMouseClickEventHandler(this.intzaSaleByTime_TableMouseClick); this.intzaSaleByPrice.AllowDrop = true; this.intzaSaleByPrice.BackColor = Color.FromArgb(30, 30, 30); this.intzaSaleByPrice.CanBlink = true; this.intzaSaleByPrice.CanDrag = false; this.intzaSaleByPrice.CanGetMouseMove = false; columnItem15.Alignment = StringAlignment.Far; columnItem15.BackColor = Color.FromArgb(64, 64, 64); columnItem15.ColumnAlignment = StringAlignment.Center; columnItem15.FontColor = Color.LightGray; columnItem15.MyStyle = FontStyle.Regular; columnItem15.Name = "buy_deal"; columnItem15.Text = "Deals"; columnItem15.ValueFormat = FormatType.Volume; columnItem15.Visible = true; columnItem15.Width = 10; columnItem16.Alignment = StringAlignment.Far; columnItem16.BackColor = Color.FromArgb(64, 64, 64); columnItem16.ColumnAlignment = StringAlignment.Center; columnItem16.FontColor = Color.LightGray; columnItem16.MyStyle = FontStyle.Regular; columnItem16.Name = "buy_vol"; columnItem16.Text = "Buy Volume"; columnItem16.ValueFormat = FormatType.Volume; columnItem16.Visible = true; columnItem16.Width = 17; columnItem17.Alignment = StringAlignment.Center; columnItem17.BackColor = Color.FromArgb(64, 64, 64); columnItem17.ColumnAlignment = StringAlignment.Center; columnItem17.FontColor = Color.LightGray; columnItem17.MyStyle = FontStyle.Regular; columnItem17.Name = "price"; columnItem17.Text = "Price"; columnItem17.ValueFormat = FormatType.Text; columnItem17.Visible = true; columnItem17.Width = 12; columnItem18.Alignment = StringAlignment.Far; columnItem18.BackColor = Color.FromArgb(64, 64, 64); columnItem18.ColumnAlignment = StringAlignment.Center; columnItem18.FontColor = Color.LightGray; columnItem18.MyStyle = FontStyle.Regular; columnItem18.Name = "sell_vol"; columnItem18.Text = "Sell Volume"; columnItem18.ValueFormat = FormatType.Volume; columnItem18.Visible = true; columnItem18.Width = 17; columnItem19.Alignment = StringAlignment.Far; columnItem19.BackColor = Color.FromArgb(64, 64, 64); columnItem19.ColumnAlignment = StringAlignment.Center; columnItem19.FontColor = Color.LightGray; columnItem19.MyStyle = FontStyle.Regular; columnItem19.Name = "sell_deal"; columnItem19.Text = "Deals"; columnItem19.ValueFormat = FormatType.Volume; columnItem19.Visible = true; columnItem19.Width = 10; columnItem20.Alignment = StringAlignment.Far; columnItem20.BackColor = Color.FromArgb(64, 64, 64); columnItem20.ColumnAlignment = StringAlignment.Center; columnItem20.FontColor = Color.LightGray; columnItem20.MyStyle = FontStyle.Regular; columnItem20.Name = "mvol"; columnItem20.Text = "Volume"; columnItem20.ValueFormat = FormatType.Volume; columnItem20.Visible = true; columnItem20.Width = 15; columnItem21.Alignment = StringAlignment.Far; columnItem21.BackColor = Color.FromArgb(64, 64, 64); columnItem21.ColumnAlignment = StringAlignment.Center; columnItem21.FontColor = Color.LightGray; columnItem21.MyStyle = FontStyle.Regular; columnItem21.Name = "mval"; columnItem21.Text = "Value"; columnItem21.ValueFormat = FormatType.Volume; columnItem21.Visible = true; columnItem21.Width = 19; this.intzaSaleByPrice.Columns.Add(columnItem15); this.intzaSaleByPrice.Columns.Add(columnItem16); this.intzaSaleByPrice.Columns.Add(columnItem17); this.intzaSaleByPrice.Columns.Add(columnItem18); this.intzaSaleByPrice.Columns.Add(columnItem19); this.intzaSaleByPrice.Columns.Add(columnItem20); this.intzaSaleByPrice.Columns.Add(columnItem21); this.intzaSaleByPrice.CurrentScroll = 0; this.intzaSaleByPrice.FocusItemIndex = -1; this.intzaSaleByPrice.ForeColor = Color.Black; this.intzaSaleByPrice.GridColor = Color.FromArgb(45, 45, 45); this.intzaSaleByPrice.HeaderPctHeight = 80f; this.intzaSaleByPrice.IsAutoRepaint = true; this.intzaSaleByPrice.IsDrawFullRow = false; this.intzaSaleByPrice.IsDrawGrid = true; this.intzaSaleByPrice.IsDrawHeader = true; this.intzaSaleByPrice.IsScrollable = true; this.intzaSaleByPrice.Location = new Point(12, 165); this.intzaSaleByPrice.MainColumn = ""; this.intzaSaleByPrice.Name = "intzaSaleByPrice"; this.intzaSaleByPrice.Rows = 0; this.intzaSaleByPrice.RowSelectColor = Color.FromArgb(95, 158, 160); this.intzaSaleByPrice.RowSelectType = 0; this.intzaSaleByPrice.RowsVisible = 0; this.intzaSaleByPrice.Size = new Size(540, 53); this.intzaSaleByPrice.SortColumnName = ""; this.intzaSaleByPrice.SortType = SortType.Desc; this.intzaSaleByPrice.TabIndex = 27; this.intzaSaleByPrice.TableMouseClick += new SortGrid.TableMouseClickEventHandler(this.intzaSaleByPrice_TableMouseClick); this.intzaViewOddLot.AllowDrop = true; this.intzaViewOddLot.BackColor = Color.FromArgb(30, 30, 30); this.intzaViewOddLot.CanBlink = true; this.intzaViewOddLot.CanDrag = false; this.intzaViewOddLot.CanGetMouseMove = false; columnItem22.Alignment = StringAlignment.Center; columnItem22.BackColor = Color.FromArgb(64, 64, 64); columnItem22.ColumnAlignment = StringAlignment.Center; columnItem22.FontColor = Color.LightGray; columnItem22.MyStyle = FontStyle.Regular; columnItem22.Name = "bid_vol"; columnItem22.Text = "Volume"; columnItem22.ValueFormat = FormatType.Volume; columnItem22.Visible = true; columnItem22.Width = 30; columnItem23.Alignment = StringAlignment.Center; columnItem23.BackColor = Color.FromArgb(64, 64, 64); columnItem23.ColumnAlignment = StringAlignment.Center; columnItem23.FontColor = Color.LightGray; columnItem23.MyStyle = FontStyle.Regular; columnItem23.Name = "bid"; columnItem23.Text = "Bid"; columnItem23.ValueFormat = FormatType.Price; columnItem23.Visible = true; columnItem23.Width = 20; columnItem24.Alignment = StringAlignment.Center; columnItem24.BackColor = Color.FromArgb(64, 64, 64); columnItem24.ColumnAlignment = StringAlignment.Center; columnItem24.FontColor = Color.LightGray; columnItem24.MyStyle = FontStyle.Regular; columnItem24.Name = "offer"; columnItem24.Text = "Offer"; columnItem24.ValueFormat = FormatType.Price; columnItem24.Visible = true; columnItem24.Width = 20; columnItem25.Alignment = StringAlignment.Center; columnItem25.BackColor = Color.FromArgb(64, 64, 64); columnItem25.ColumnAlignment = StringAlignment.Center; columnItem25.FontColor = Color.LightGray; columnItem25.MyStyle = FontStyle.Regular; columnItem25.Name = "offer_vol"; columnItem25.Text = "Volume"; columnItem25.ValueFormat = FormatType.Volume; columnItem25.Visible = true; columnItem25.Width = 30; this.intzaViewOddLot.Columns.Add(columnItem22); this.intzaViewOddLot.Columns.Add(columnItem23); this.intzaViewOddLot.Columns.Add(columnItem24); this.intzaViewOddLot.Columns.Add(columnItem25); this.intzaViewOddLot.CurrentScroll = 0; this.intzaViewOddLot.FocusItemIndex = -1; this.intzaViewOddLot.ForeColor = Color.Black; this.intzaViewOddLot.GridColor = Color.FromArgb(45, 45, 45); this.intzaViewOddLot.HeaderPctHeight = 100f; this.intzaViewOddLot.IsAutoRepaint = true; this.intzaViewOddLot.IsDrawFullRow = false; this.intzaViewOddLot.IsDrawGrid = true; this.intzaViewOddLot.IsDrawHeader = true; this.intzaViewOddLot.IsScrollable = true; this.intzaViewOddLot.Location = new Point(9, 336); this.intzaViewOddLot.MainColumn = ""; this.intzaViewOddLot.Name = "intzaViewOddLot"; this.intzaViewOddLot.Rows = 5; this.intzaViewOddLot.RowSelectColor = Color.FromArgb(95, 158, 160); this.intzaViewOddLot.RowSelectType = 0; this.intzaViewOddLot.RowsVisible = 5; this.intzaViewOddLot.Size = new Size(543, 73); this.intzaViewOddLot.SortColumnName = ""; this.intzaViewOddLot.SortType = SortType.Desc; this.intzaViewOddLot.TabIndex = 26; this.intzaStockInPlay.AllowDrop = true; this.intzaStockInPlay.BackColor = Color.FromArgb(30, 30, 30); this.intzaStockInPlay.CanBlink = true; this.intzaStockInPlay.CanDrag = false; this.intzaStockInPlay.CanGetMouseMove = false; columnItem26.Alignment = StringAlignment.Center; columnItem26.BackColor = Color.FromArgb(64, 64, 64); columnItem26.ColumnAlignment = StringAlignment.Center; columnItem26.FontColor = Color.LightGray; columnItem26.MyStyle = FontStyle.Regular; columnItem26.Name = "buy_deal"; columnItem26.Text = "Deals"; columnItem26.ValueFormat = FormatType.Volume; columnItem26.Visible = true; columnItem26.Width = 10; columnItem27.Alignment = StringAlignment.Far; columnItem27.BackColor = Color.FromArgb(64, 64, 64); columnItem27.ColumnAlignment = StringAlignment.Center; columnItem27.FontColor = Color.LightGray; columnItem27.MyStyle = FontStyle.Regular; columnItem27.Name = "buy_volume"; columnItem27.Text = "Buy Volume"; columnItem27.ValueFormat = FormatType.Volume; columnItem27.Visible = true; columnItem27.Width = 17; columnItem28.Alignment = StringAlignment.Far; columnItem28.BackColor = Color.FromArgb(64, 64, 64); columnItem28.ColumnAlignment = StringAlignment.Center; columnItem28.FontColor = Color.LightGray; columnItem28.MyStyle = FontStyle.Regular; columnItem28.Name = "bid"; columnItem28.Text = "Bid Volume"; columnItem28.ValueFormat = FormatType.BidOfferVolume; columnItem28.Visible = true; columnItem28.Width = 17; columnItem29.Alignment = StringAlignment.Center; columnItem29.BackColor = Color.FromArgb(64, 64, 64); columnItem29.ColumnAlignment = StringAlignment.Center; columnItem29.FontColor = Color.LightGray; columnItem29.MyStyle = FontStyle.Regular; columnItem29.Name = "price"; columnItem29.Text = "Price"; columnItem29.ValueFormat = FormatType.Text; columnItem29.Visible = true; columnItem29.Width = 12; columnItem30.Alignment = StringAlignment.Far; columnItem30.BackColor = Color.FromArgb(64, 64, 64); columnItem30.ColumnAlignment = StringAlignment.Center; columnItem30.FontColor = Color.LightGray; columnItem30.MyStyle = FontStyle.Regular; columnItem30.Name = "offer"; columnItem30.Text = "Offer Volume"; columnItem30.ValueFormat = FormatType.BidOfferVolume; columnItem30.Visible = true; columnItem30.Width = 17; columnItem31.Alignment = StringAlignment.Far; columnItem31.BackColor = Color.FromArgb(64, 64, 64); columnItem31.ColumnAlignment = StringAlignment.Center; columnItem31.FontColor = Color.LightGray; columnItem31.MyStyle = FontStyle.Regular; columnItem31.Name = "sell_vol"; columnItem31.Text = "Sell Volume"; columnItem31.ValueFormat = FormatType.Volume; columnItem31.Visible = true; columnItem31.Width = 17; columnItem32.Alignment = StringAlignment.Center; columnItem32.BackColor = Color.FromArgb(64, 64, 64); columnItem32.ColumnAlignment = StringAlignment.Center; columnItem32.FontColor = Color.LightGray; columnItem32.MyStyle = FontStyle.Regular; columnItem32.Name = "sell_deal"; columnItem32.Text = "Deals"; columnItem32.ValueFormat = FormatType.Volume; columnItem32.Visible = true; columnItem32.Width = 10; this.intzaStockInPlay.Columns.Add(columnItem26); this.intzaStockInPlay.Columns.Add(columnItem27); this.intzaStockInPlay.Columns.Add(columnItem28); this.intzaStockInPlay.Columns.Add(columnItem29); this.intzaStockInPlay.Columns.Add(columnItem30); this.intzaStockInPlay.Columns.Add(columnItem31); this.intzaStockInPlay.Columns.Add(columnItem32); this.intzaStockInPlay.CurrentScroll = 0; this.intzaStockInPlay.FocusItemIndex = -1; this.intzaStockInPlay.ForeColor = Color.Black; this.intzaStockInPlay.GridColor = Color.FromArgb(45, 45, 45); this.intzaStockInPlay.HeaderPctHeight = 80f; this.intzaStockInPlay.IsAutoRepaint = true; this.intzaStockInPlay.IsDrawFullRow = false; this.intzaStockInPlay.IsDrawGrid = true; this.intzaStockInPlay.IsDrawHeader = true; this.intzaStockInPlay.IsScrollable = false; this.intzaStockInPlay.Location = new Point(12, 252); this.intzaStockInPlay.MainColumn = ""; this.intzaStockInPlay.Name = "intzaStockInPlay"; this.intzaStockInPlay.Rows = 0; this.intzaStockInPlay.RowSelectColor = Color.FromArgb(95, 158, 160); this.intzaStockInPlay.RowSelectType = 0; this.intzaStockInPlay.RowsVisible = 0; this.intzaStockInPlay.Size = new Size(540, 53); this.intzaStockInPlay.SortColumnName = ""; this.intzaStockInPlay.SortType = SortType.Desc; this.intzaStockInPlay.TabIndex = 25; this.intzaStockInPlay.TableMouseClick += new SortGrid.TableMouseClickEventHandler(this.intzaStockInPlay_TableMouseClick); this.intzaInfo.AllowDrop = true; this.intzaInfo.BackColor = Color.FromArgb(30, 30, 30); this.intzaInfo.CanDrag = false; this.intzaInfo.IsAutoRepaint = true; this.intzaInfo.IsDroped = false; itemGrid21.AdjustFontSize = 0f; itemGrid21.Alignment = StringAlignment.Near; itemGrid21.BackColor = Color.FromArgb(30, 30, 30); itemGrid21.Changed = false; itemGrid21.FieldType = ItemType.Label2; itemGrid21.FontColor = Color.Gainsboro; itemGrid21.FontStyle = FontStyle.Regular; itemGrid21.Height = 1f; itemGrid21.IsBlink = 0; itemGrid21.Name = "lb_openvol"; itemGrid21.Text = "OpnVol"; itemGrid21.ValueFormat = FormatType.Text; itemGrid21.Visible = true; itemGrid21.Width = 22; itemGrid21.X = 0; itemGrid21.Y = 0f; itemGrid22.AdjustFontSize = 0f; itemGrid22.Alignment = StringAlignment.Far; itemGrid22.BackColor = Color.FromArgb(30, 30, 30); itemGrid22.Changed = false; itemGrid22.FieldType = ItemType.Text; itemGrid22.FontColor = Color.Yellow; itemGrid22.FontStyle = FontStyle.Regular; itemGrid22.Height = 1f; itemGrid22.IsBlink = 0; itemGrid22.Name = "open_vol"; itemGrid22.Text = ""; itemGrid22.ValueFormat = FormatType.Volume; itemGrid22.Visible = true; itemGrid22.Width = 35; itemGrid22.X = 25; itemGrid22.Y = 0f; itemGrid23.AdjustFontSize = -2f; itemGrid23.Alignment = StringAlignment.Far; itemGrid23.BackColor = Color.FromArgb(30, 30, 30); itemGrid23.Changed = false; itemGrid23.FieldType = ItemType.Text; itemGrid23.FontColor = Color.Yellow; itemGrid23.FontStyle = FontStyle.Regular; itemGrid23.Height = 1f; itemGrid23.IsBlink = 0; itemGrid23.Name = "p_open_vol"; itemGrid23.Text = ""; itemGrid23.ValueFormat = FormatType.Text; itemGrid23.Visible = false; itemGrid23.Width = 19; itemGrid23.X = 57; itemGrid23.Y = 0f; itemGrid24.AdjustFontSize = 0f; itemGrid24.Alignment = StringAlignment.Near; itemGrid24.BackColor = Color.FromArgb(30, 30, 30); itemGrid24.Changed = false; itemGrid24.FieldType = ItemType.Label2; itemGrid24.FontColor = Color.Gainsboro; itemGrid24.FontStyle = FontStyle.Regular; itemGrid24.Height = 1f; itemGrid24.IsBlink = 0; itemGrid24.Name = "lb_buyvol"; itemGrid24.Text = "BuyVol"; itemGrid24.ValueFormat = FormatType.Text; itemGrid24.Visible = true; itemGrid24.Width = 22; itemGrid24.X = 0; itemGrid24.Y = 1.2f; itemGrid25.AdjustFontSize = 0f; itemGrid25.Alignment = StringAlignment.Far; itemGrid25.BackColor = Color.FromArgb(30, 30, 30); itemGrid25.Changed = false; itemGrid25.FieldType = ItemType.Text; itemGrid25.FontColor = Color.Lime; itemGrid25.FontStyle = FontStyle.Regular; itemGrid25.Height = 1f; itemGrid25.IsBlink = 0; itemGrid25.Name = "buy_vol"; itemGrid25.Text = ""; itemGrid25.ValueFormat = FormatType.Volume; itemGrid25.Visible = true; itemGrid25.Width = 35; itemGrid25.X = 25; itemGrid25.Y = 1.2f; itemGrid26.AdjustFontSize = -2f; itemGrid26.Alignment = StringAlignment.Far; itemGrid26.BackColor = Color.FromArgb(30, 30, 30); itemGrid26.Changed = false; itemGrid26.FieldType = ItemType.Text; itemGrid26.FontColor = Color.Lime; itemGrid26.FontStyle = FontStyle.Regular; itemGrid26.Height = 1f; itemGrid26.IsBlink = 0; itemGrid26.Name = "p_buy_vol"; itemGrid26.Text = ""; itemGrid26.ValueFormat = FormatType.Text; itemGrid26.Visible = false; itemGrid26.Width = 19; itemGrid26.X = 57; itemGrid26.Y = 1.2f; itemGrid27.AdjustFontSize = 0f; itemGrid27.Alignment = StringAlignment.Near; itemGrid27.BackColor = Color.FromArgb(30, 30, 30); itemGrid27.Changed = false; itemGrid27.FieldType = ItemType.Label2; itemGrid27.FontColor = Color.Gainsboro; itemGrid27.FontStyle = FontStyle.Regular; itemGrid27.Height = 1f; itemGrid27.IsBlink = 0; itemGrid27.Name = "lb_selvol"; itemGrid27.Text = "SelVol"; itemGrid27.ValueFormat = FormatType.Text; itemGrid27.Visible = true; itemGrid27.Width = 22; itemGrid27.X = 0; itemGrid27.Y = 2.4f; itemGrid28.AdjustFontSize = 0f; itemGrid28.Alignment = StringAlignment.Far; itemGrid28.BackColor = Color.FromArgb(30, 30, 30); itemGrid28.Changed = false; itemGrid28.FieldType = ItemType.Text; itemGrid28.FontColor = Color.Red; itemGrid28.FontStyle = FontStyle.Regular; itemGrid28.Height = 1f; itemGrid28.IsBlink = 0; itemGrid28.Name = "sel_vol"; itemGrid28.Text = ""; itemGrid28.ValueFormat = FormatType.Volume; itemGrid28.Visible = true; itemGrid28.Width = 35; itemGrid28.X = 25; itemGrid28.Y = 2.4f; itemGrid29.AdjustFontSize = -2f; itemGrid29.Alignment = StringAlignment.Far; itemGrid29.BackColor = Color.FromArgb(30, 30, 30); itemGrid29.Changed = false; itemGrid29.FieldType = ItemType.Text; itemGrid29.FontColor = Color.Red; itemGrid29.FontStyle = FontStyle.Regular; itemGrid29.Height = 1f; itemGrid29.IsBlink = 0; itemGrid29.Name = "p_sel_vol"; itemGrid29.Text = ""; itemGrid29.ValueFormat = FormatType.Text; itemGrid29.Visible = false; itemGrid29.Width = 19; itemGrid29.X = 57; itemGrid29.Y = 2.4f; itemGrid30.AdjustFontSize = 0f; itemGrid30.Alignment = StringAlignment.Near; itemGrid30.BackColor = Color.FromArgb(30, 30, 30); itemGrid30.Changed = false; itemGrid30.FieldType = ItemType.Text; itemGrid30.FontColor = Color.White; itemGrid30.FontStyle = FontStyle.Regular; itemGrid30.Height = 3.4f; itemGrid30.IsBlink = 0; itemGrid30.Name = "pie"; itemGrid30.Text = ""; itemGrid30.ValueFormat = FormatType.PieChartNew; itemGrid30.Visible = true; itemGrid30.Width = 40; itemGrid30.X = 60; itemGrid30.Y = 0f; itemGrid31.AdjustFontSize = 0f; itemGrid31.Alignment = StringAlignment.Near; itemGrid31.BackColor = Color.FromArgb(30, 30, 30); itemGrid31.Changed = false; itemGrid31.FieldType = ItemType.Label2; itemGrid31.FontColor = Color.Gainsboro; itemGrid31.FontStyle = FontStyle.Regular; itemGrid31.Height = 1f; itemGrid31.IsBlink = 0; itemGrid31.Name = "lb_prior"; itemGrid31.Text = "Prev"; itemGrid31.ValueFormat = FormatType.Text; itemGrid31.Visible = true; itemGrid31.Width = 22; itemGrid31.X = 0; itemGrid31.Y = 3.6f; itemGrid32.AdjustFontSize = 0f; itemGrid32.Alignment = StringAlignment.Near; itemGrid32.BackColor = Color.FromArgb(30, 30, 30); itemGrid32.Changed = false; itemGrid32.FieldType = ItemType.Text; itemGrid32.FontColor = Color.Yellow; itemGrid32.FontStyle = FontStyle.Regular; itemGrid32.Height = 1f; itemGrid32.IsBlink = 0; itemGrid32.Name = "prior"; itemGrid32.Text = ""; itemGrid32.ValueFormat = FormatType.Text; itemGrid32.Visible = true; itemGrid32.Width = 23; itemGrid32.X = 22; itemGrid32.Y = 3.6f; itemGrid33.AdjustFontSize = 0f; itemGrid33.Alignment = StringAlignment.Near; itemGrid33.BackColor = Color.FromArgb(30, 30, 30); itemGrid33.Changed = false; itemGrid33.FieldType = ItemType.Label2; itemGrid33.FontColor = Color.Gainsboro; itemGrid33.FontStyle = FontStyle.Regular; itemGrid33.Height = 1f; itemGrid33.IsBlink = 0; itemGrid33.Name = "lb_avg"; itemGrid33.Text = "Avg"; itemGrid33.ValueFormat = FormatType.Text; itemGrid33.Visible = false; itemGrid33.Width = 25; itemGrid33.X = 48; itemGrid33.Y = 3.6f; itemGrid34.AdjustFontSize = 0f; itemGrid34.Alignment = StringAlignment.Near; itemGrid34.BackColor = Color.FromArgb(30, 30, 30); itemGrid34.Changed = false; itemGrid34.FieldType = ItemType.Text; itemGrid34.FontColor = Color.White; itemGrid34.FontStyle = FontStyle.Regular; itemGrid34.Height = 1f; itemGrid34.IsBlink = 0; itemGrid34.Name = "avg"; itemGrid34.Text = ""; itemGrid34.ValueFormat = FormatType.Price; itemGrid34.Visible = false; itemGrid34.Width = 26; itemGrid34.X = 73; itemGrid34.Y = 3.6f; itemGrid35.AdjustFontSize = 0f; itemGrid35.Alignment = StringAlignment.Near; itemGrid35.BackColor = Color.FromArgb(30, 30, 30); itemGrid35.Changed = false; itemGrid35.FieldType = ItemType.Label2; itemGrid35.FontColor = Color.Gainsboro; itemGrid35.FontStyle = FontStyle.Regular; itemGrid35.Height = 1f; itemGrid35.IsBlink = 0; itemGrid35.Name = "lbOpen"; itemGrid35.Text = "Open-1"; itemGrid35.ValueFormat = FormatType.Text; itemGrid35.Visible = true; itemGrid35.Width = 22; itemGrid35.X = 45; itemGrid35.Y = 4.6f; itemGrid36.AdjustFontSize = 0f; itemGrid36.Alignment = StringAlignment.Near; itemGrid36.BackColor = Color.FromArgb(30, 30, 30); itemGrid36.Changed = false; itemGrid36.FieldType = ItemType.Text; itemGrid36.FontColor = Color.White; itemGrid36.FontStyle = FontStyle.Regular; itemGrid36.Height = 1f; itemGrid36.IsBlink = 0; itemGrid36.Name = "open1"; itemGrid36.Text = ""; itemGrid36.ValueFormat = FormatType.Price; itemGrid36.Visible = true; itemGrid36.Width = 31; itemGrid36.X = 67; itemGrid36.Y = 4.6f; itemGrid37.AdjustFontSize = 0f; itemGrid37.Alignment = StringAlignment.Near; itemGrid37.BackColor = Color.FromArgb(30, 30, 30); itemGrid37.Changed = false; itemGrid37.FieldType = ItemType.Label2; itemGrid37.FontColor = Color.Gainsboro; itemGrid37.FontStyle = FontStyle.Regular; itemGrid37.Height = 1f; itemGrid37.IsBlink = 0; itemGrid37.Name = "lbOpen2"; itemGrid37.Text = "Open-2"; itemGrid37.ValueFormat = FormatType.Text; itemGrid37.Visible = true; itemGrid37.Width = 22; itemGrid37.X = 45; itemGrid37.Y = 5.6f; itemGrid38.AdjustFontSize = 0f; itemGrid38.Alignment = StringAlignment.Near; itemGrid38.BackColor = Color.FromArgb(30, 30, 30); itemGrid38.Changed = false; itemGrid38.FieldType = ItemType.Text; itemGrid38.FontColor = Color.White; itemGrid38.FontStyle = FontStyle.Regular; itemGrid38.Height = 1f; itemGrid38.IsBlink = 0; itemGrid38.Name = "open2"; itemGrid38.Text = ""; itemGrid38.ValueFormat = FormatType.Price; itemGrid38.Visible = true; itemGrid38.Width = 31; itemGrid38.X = 67; itemGrid38.Y = 5.6f; itemGrid39.AdjustFontSize = 0f; itemGrid39.Alignment = StringAlignment.Near; itemGrid39.BackColor = Color.FromArgb(30, 30, 30); itemGrid39.Changed = false; itemGrid39.FieldType = ItemType.Label2; itemGrid39.FontColor = Color.Gainsboro; itemGrid39.FontStyle = FontStyle.Regular; itemGrid39.Height = 1f; itemGrid39.IsBlink = 0; itemGrid39.Name = "lbHigh"; itemGrid39.Text = "High"; itemGrid39.ValueFormat = FormatType.Text; itemGrid39.Visible = true; itemGrid39.Width = 22; itemGrid39.X = 0; itemGrid39.Y = 4.6f; itemGrid40.AdjustFontSize = 0f; itemGrid40.Alignment = StringAlignment.Near; itemGrid40.BackColor = Color.FromArgb(30, 30, 30); itemGrid40.Changed = false; itemGrid40.FieldType = ItemType.Text; itemGrid40.FontColor = Color.White; itemGrid40.FontStyle = FontStyle.Regular; itemGrid40.Height = 1f; itemGrid40.IsBlink = 0; itemGrid40.Name = "high"; itemGrid40.Text = ""; itemGrid40.ValueFormat = FormatType.Price; itemGrid40.Visible = true; itemGrid40.Width = 23; itemGrid40.X = 22; itemGrid40.Y = 4.6f; itemGrid41.AdjustFontSize = 0f; itemGrid41.Alignment = StringAlignment.Near; itemGrid41.BackColor = Color.FromArgb(30, 30, 30); itemGrid41.Changed = false; itemGrid41.FieldType = ItemType.Label2; itemGrid41.FontColor = Color.Gainsboro; itemGrid41.FontStyle = FontStyle.Regular; itemGrid41.Height = 1f; itemGrid41.IsBlink = 0; itemGrid41.Name = "lbLow"; itemGrid41.Text = "Low"; itemGrid41.ValueFormat = FormatType.Text; itemGrid41.Visible = true; itemGrid41.Width = 22; itemGrid41.X = 0; itemGrid41.Y = 5.6f; itemGrid42.AdjustFontSize = 0f; itemGrid42.Alignment = StringAlignment.Near; itemGrid42.BackColor = Color.FromArgb(30, 30, 30); itemGrid42.Changed = false; itemGrid42.FieldType = ItemType.Text; itemGrid42.FontColor = Color.White; itemGrid42.FontStyle = FontStyle.Regular; itemGrid42.Height = 1f; itemGrid42.IsBlink = 0; itemGrid42.Name = "low"; itemGrid42.Text = ""; itemGrid42.ValueFormat = FormatType.Price; itemGrid42.Visible = true; itemGrid42.Width = 23; itemGrid42.X = 22; itemGrid42.Y = 5.6f; itemGrid43.AdjustFontSize = 0f; itemGrid43.Alignment = StringAlignment.Near; itemGrid43.BackColor = Color.FromArgb(30, 30, 30); itemGrid43.Changed = false; itemGrid43.FieldType = ItemType.Label2; itemGrid43.FontColor = Color.Gainsboro; itemGrid43.FontStyle = FontStyle.Regular; itemGrid43.Height = 1f; itemGrid43.IsBlink = 0; itemGrid43.Name = "lb_ceiling"; itemGrid43.Text = "Ceiling"; itemGrid43.ValueFormat = FormatType.Text; itemGrid43.Visible = true; itemGrid43.Width = 22; itemGrid43.X = 0; itemGrid43.Y = 6.6f; itemGrid44.AdjustFontSize = 0f; itemGrid44.Alignment = StringAlignment.Near; itemGrid44.BackColor = Color.FromArgb(30, 30, 30); itemGrid44.Changed = false; itemGrid44.FieldType = ItemType.Text; itemGrid44.FontColor = Color.Cyan; itemGrid44.FontStyle = FontStyle.Regular; itemGrid44.Height = 1f; itemGrid44.IsBlink = 0; itemGrid44.Name = "ceiling"; itemGrid44.Text = ""; itemGrid44.ValueFormat = FormatType.Price; itemGrid44.Visible = true; itemGrid44.Width = 23; itemGrid44.X = 22; itemGrid44.Y = 6.6f; itemGrid45.AdjustFontSize = 0f; itemGrid45.Alignment = StringAlignment.Near; itemGrid45.BackColor = Color.FromArgb(30, 30, 30); itemGrid45.Changed = false; itemGrid45.FieldType = ItemType.Label2; itemGrid45.FontColor = Color.Gainsboro; itemGrid45.FontStyle = FontStyle.Regular; itemGrid45.Height = 1f; itemGrid45.IsBlink = 0; itemGrid45.Name = "lb_floor"; itemGrid45.Text = "Floor"; itemGrid45.ValueFormat = FormatType.Text; itemGrid45.Visible = true; itemGrid45.Width = 22; itemGrid45.X = 0; itemGrid45.Y = 7.6f; itemGrid46.AdjustFontSize = 0f; itemGrid46.Alignment = StringAlignment.Near; itemGrid46.BackColor = Color.FromArgb(30, 30, 30); itemGrid46.Changed = false; itemGrid46.FieldType = ItemType.Text; itemGrid46.FontColor = Color.FromArgb(187, 44, 189); itemGrid46.FontStyle = FontStyle.Regular; itemGrid46.Height = 1f; itemGrid46.IsBlink = 0; itemGrid46.Name = "floor"; itemGrid46.Text = ""; itemGrid46.ValueFormat = FormatType.Price; itemGrid46.Visible = true; itemGrid46.Width = 23; itemGrid46.X = 22; itemGrid46.Y = 7.6f; itemGrid47.AdjustFontSize = 0f; itemGrid47.Alignment = StringAlignment.Near; itemGrid47.BackColor = Color.FromArgb(30, 30, 30); itemGrid47.Changed = false; itemGrid47.FieldType = ItemType.Label2; itemGrid47.FontColor = Color.Gainsboro; itemGrid47.FontStyle = FontStyle.Regular; itemGrid47.Height = 1f; itemGrid47.IsBlink = 0; itemGrid47.Name = "lb_par"; itemGrid47.Text = "Par"; itemGrid47.ValueFormat = FormatType.Text; itemGrid47.Visible = true; itemGrid47.Width = 22; itemGrid47.X = 45; itemGrid47.Y = 8.6f; itemGrid48.AdjustFontSize = 0f; itemGrid48.Alignment = StringAlignment.Near; itemGrid48.BackColor = Color.FromArgb(30, 30, 30); itemGrid48.Changed = false; itemGrid48.FieldType = ItemType.Text; itemGrid48.FontColor = Color.Yellow; itemGrid48.FontStyle = FontStyle.Regular; itemGrid48.Height = 1f; itemGrid48.IsBlink = 0; itemGrid48.Name = "par"; itemGrid48.Text = ""; itemGrid48.ValueFormat = FormatType.Text; itemGrid48.Visible = true; itemGrid48.Width = 31; itemGrid48.X = 67; itemGrid48.Y = 8.6f; itemGrid49.AdjustFontSize = 0f; itemGrid49.Alignment = StringAlignment.Near; itemGrid49.BackColor = Color.FromArgb(30, 30, 30); itemGrid49.Changed = false; itemGrid49.FieldType = ItemType.Label2; itemGrid49.FontColor = Color.Gainsboro; itemGrid49.FontStyle = FontStyle.Regular; itemGrid49.Height = 1f; itemGrid49.IsBlink = 0; itemGrid49.Name = "lbPoClose"; itemGrid49.Text = "Prj.Close"; itemGrid49.ValueFormat = FormatType.Text; itemGrid49.Visible = true; itemGrid49.Width = 22; itemGrid49.X = 45; itemGrid49.Y = 6.6f; itemGrid50.AdjustFontSize = 0f; itemGrid50.Alignment = StringAlignment.Near; itemGrid50.BackColor = Color.FromArgb(30, 30, 30); itemGrid50.Changed = false; itemGrid50.FieldType = ItemType.Text; itemGrid50.FontColor = Color.White; itemGrid50.FontStyle = FontStyle.Regular; itemGrid50.Height = 1f; itemGrid50.IsBlink = 0; itemGrid50.Name = "poclose"; itemGrid50.Text = ""; itemGrid50.ValueFormat = FormatType.Price; itemGrid50.Visible = true; itemGrid50.Width = 31; itemGrid50.X = 67; itemGrid50.Y = 6.6f; itemGrid51.AdjustFontSize = 0f; itemGrid51.Alignment = StringAlignment.Near; itemGrid51.BackColor = Color.FromArgb(30, 30, 30); itemGrid51.Changed = false; itemGrid51.FieldType = ItemType.Label2; itemGrid51.FontColor = Color.Gainsboro; itemGrid51.FontStyle = FontStyle.Regular; itemGrid51.Height = 1f; itemGrid51.IsBlink = 0; itemGrid51.Name = "lb_spread"; itemGrid51.Text = "Spread"; itemGrid51.ValueFormat = FormatType.Text; itemGrid51.Visible = true; itemGrid51.Width = 22; itemGrid51.X = 0; itemGrid51.Y = 8.6f; itemGrid52.AdjustFontSize = 0f; itemGrid52.Alignment = StringAlignment.Near; itemGrid52.BackColor = Color.FromArgb(30, 30, 30); itemGrid52.Changed = false; itemGrid52.FieldType = ItemType.Text; itemGrid52.FontColor = Color.Yellow; itemGrid52.FontStyle = FontStyle.Regular; itemGrid52.Height = 1f; itemGrid52.IsBlink = 0; itemGrid52.Name = "spread"; itemGrid52.Text = ""; itemGrid52.ValueFormat = FormatType.Price; itemGrid52.Visible = true; itemGrid52.Width = 23; itemGrid52.X = 22; itemGrid52.Y = 8.6f; itemGrid53.AdjustFontSize = 0f; itemGrid53.Alignment = StringAlignment.Near; itemGrid53.BackColor = Color.FromArgb(30, 30, 30); itemGrid53.Changed = false; itemGrid53.FieldType = ItemType.Label2; itemGrid53.FontColor = Color.Gainsboro; itemGrid53.FontStyle = FontStyle.Regular; itemGrid53.Height = 1f; itemGrid53.IsBlink = 0; itemGrid53.Name = "lb_povol"; itemGrid53.Text = "Prj.Vol"; itemGrid53.ValueFormat = FormatType.Text; itemGrid53.Visible = true; itemGrid53.Width = 22; itemGrid53.X = 45; itemGrid53.Y = 7.6f; itemGrid54.AdjustFontSize = 0f; itemGrid54.Alignment = StringAlignment.Near; itemGrid54.BackColor = Color.FromArgb(30, 30, 30); itemGrid54.Changed = false; itemGrid54.FieldType = ItemType.Text; itemGrid54.FontColor = Color.Yellow; itemGrid54.FontStyle = FontStyle.Regular; itemGrid54.Height = 1f; itemGrid54.IsBlink = 0; itemGrid54.Name = "povol"; itemGrid54.Text = ""; itemGrid54.ValueFormat = FormatType.Text; itemGrid54.Visible = true; itemGrid54.Width = 31; itemGrid54.X = 67; itemGrid54.Y = 7.6f; itemGrid55.AdjustFontSize = 0f; itemGrid55.Alignment = StringAlignment.Near; itemGrid55.BackColor = Color.FromArgb(30, 30, 30); itemGrid55.Changed = false; itemGrid55.FieldType = ItemType.Label2; itemGrid55.FontColor = Color.Gainsboro; itemGrid55.FontStyle = FontStyle.Regular; itemGrid55.Height = 1f; itemGrid55.IsBlink = 0; itemGrid55.Name = "lbMarginRate"; itemGrid55.Text = "IM"; itemGrid55.ValueFormat = FormatType.Text; itemGrid55.Visible = true; itemGrid55.Width = 22; itemGrid55.X = 45; itemGrid55.Y = 9.6f; itemGrid56.AdjustFontSize = 0f; itemGrid56.Alignment = StringAlignment.Near; itemGrid56.BackColor = Color.FromArgb(30, 30, 30); itemGrid56.Changed = false; itemGrid56.FieldType = ItemType.Text; itemGrid56.FontColor = Color.Yellow; itemGrid56.FontStyle = FontStyle.Regular; itemGrid56.Height = 1f; itemGrid56.IsBlink = 0; itemGrid56.Name = "tbMarginRate"; itemGrid56.Text = ""; itemGrid56.ValueFormat = FormatType.Text; itemGrid56.Visible = true; itemGrid56.Width = 31; itemGrid56.X = 67; itemGrid56.Y = 9.6f; itemGrid57.AdjustFontSize = 0f; itemGrid57.Alignment = StringAlignment.Near; itemGrid57.BackColor = Color.FromArgb(30, 30, 30); itemGrid57.Changed = false; itemGrid57.FieldType = ItemType.Label2; itemGrid57.FontColor = Color.Gainsboro; itemGrid57.FontStyle = FontStyle.Regular; itemGrid57.Height = 1f; itemGrid57.IsBlink = 0; itemGrid57.Name = "lb_flag"; itemGrid57.Text = "Flag"; itemGrid57.ValueFormat = FormatType.Text; itemGrid57.Visible = true; itemGrid57.Width = 22; itemGrid57.X = 0; itemGrid57.Y = 9.6f; itemGrid58.AdjustFontSize = 0f; itemGrid58.Alignment = StringAlignment.Near; itemGrid58.BackColor = Color.FromArgb(30, 30, 30); itemGrid58.Changed = false; itemGrid58.FieldType = ItemType.Text; itemGrid58.FontColor = Color.Yellow; itemGrid58.FontStyle = FontStyle.Regular; itemGrid58.Height = 1f; itemGrid58.IsBlink = 0; itemGrid58.Name = "flag"; itemGrid58.Text = ""; itemGrid58.ValueFormat = FormatType.Text; itemGrid58.Visible = true; itemGrid58.Width = 23; itemGrid58.X = 22; itemGrid58.Y = 9.6f; itemGrid59.AdjustFontSize = 0f; itemGrid59.Alignment = StringAlignment.Near; itemGrid59.BackColor = Color.FromArgb(30, 30, 30); itemGrid59.Changed = false; itemGrid59.FieldType = ItemType.Label2; itemGrid59.FontColor = Color.Gainsboro; itemGrid59.FontStyle = FontStyle.Regular; itemGrid59.Height = 1f; itemGrid59.IsBlink = 0; itemGrid59.Name = "lb_hl52weel"; itemGrid59.Text = "H/L 52W"; itemGrid59.ValueFormat = FormatType.Text; itemGrid59.Visible = true; itemGrid59.Width = 22; itemGrid59.X = 45; itemGrid59.Y = 3.6f; itemGrid60.AdjustFontSize = -1f; itemGrid60.Alignment = StringAlignment.Near; itemGrid60.BackColor = Color.FromArgb(30, 30, 30); itemGrid60.Changed = false; itemGrid60.FieldType = ItemType.Text; itemGrid60.FontColor = Color.White; itemGrid60.FontStyle = FontStyle.Regular; itemGrid60.Height = 1f; itemGrid60.IsBlink = 0; itemGrid60.Name = "h52w"; itemGrid60.Text = ""; itemGrid60.ValueFormat = FormatType.Price; itemGrid60.Visible = true; itemGrid60.Width = 14; itemGrid60.X = 67; itemGrid60.Y = 3.6f; itemGrid61.AdjustFontSize = 0f; itemGrid61.Alignment = StringAlignment.Center; itemGrid61.BackColor = Color.FromArgb(30, 30, 30); itemGrid61.Changed = false; itemGrid61.FieldType = ItemType.Label; itemGrid61.FontColor = Color.Gainsboro; itemGrid61.FontStyle = FontStyle.Regular; itemGrid61.Height = 1f; itemGrid61.IsBlink = 0; itemGrid61.Name = "lb2"; itemGrid61.Text = "/"; itemGrid61.ValueFormat = FormatType.Label; itemGrid61.Visible = true; itemGrid61.Width = 3; itemGrid61.X = 81; itemGrid61.Y = 3.6f; itemGrid62.AdjustFontSize = -1f; itemGrid62.Alignment = StringAlignment.Near; itemGrid62.BackColor = Color.FromArgb(30, 30, 30); itemGrid62.Changed = false; itemGrid62.FieldType = ItemType.Text; itemGrid62.FontColor = Color.White; itemGrid62.FontStyle = FontStyle.Regular; itemGrid62.Height = 1f; itemGrid62.IsBlink = 0; itemGrid62.Name = "l52w"; itemGrid62.Text = ""; itemGrid62.ValueFormat = FormatType.Price; itemGrid62.Visible = true; itemGrid62.Width = 16; itemGrid62.X = 84; itemGrid62.Y = 3.6f; this.intzaInfo.Items.Add(itemGrid21); this.intzaInfo.Items.Add(itemGrid22); this.intzaInfo.Items.Add(itemGrid23); this.intzaInfo.Items.Add(itemGrid24); this.intzaInfo.Items.Add(itemGrid25); this.intzaInfo.Items.Add(itemGrid26); this.intzaInfo.Items.Add(itemGrid27); this.intzaInfo.Items.Add(itemGrid28); this.intzaInfo.Items.Add(itemGrid29); this.intzaInfo.Items.Add(itemGrid30); this.intzaInfo.Items.Add(itemGrid31); this.intzaInfo.Items.Add(itemGrid32); this.intzaInfo.Items.Add(itemGrid33); this.intzaInfo.Items.Add(itemGrid34); this.intzaInfo.Items.Add(itemGrid35); this.intzaInfo.Items.Add(itemGrid36); this.intzaInfo.Items.Add(itemGrid37); this.intzaInfo.Items.Add(itemGrid38); this.intzaInfo.Items.Add(itemGrid39); this.intzaInfo.Items.Add(itemGrid40); this.intzaInfo.Items.Add(itemGrid41); this.intzaInfo.Items.Add(itemGrid42); this.intzaInfo.Items.Add(itemGrid43); this.intzaInfo.Items.Add(itemGrid44); this.intzaInfo.Items.Add(itemGrid45); this.intzaInfo.Items.Add(itemGrid46); this.intzaInfo.Items.Add(itemGrid47); this.intzaInfo.Items.Add(itemGrid48); this.intzaInfo.Items.Add(itemGrid49); this.intzaInfo.Items.Add(itemGrid50); this.intzaInfo.Items.Add(itemGrid51); this.intzaInfo.Items.Add(itemGrid52); this.intzaInfo.Items.Add(itemGrid53); this.intzaInfo.Items.Add(itemGrid54); this.intzaInfo.Items.Add(itemGrid55); this.intzaInfo.Items.Add(itemGrid56); this.intzaInfo.Items.Add(itemGrid57); this.intzaInfo.Items.Add(itemGrid58); this.intzaInfo.Items.Add(itemGrid59); this.intzaInfo.Items.Add(itemGrid60); this.intzaInfo.Items.Add(itemGrid61); this.intzaInfo.Items.Add(itemGrid62); this.intzaInfo.LineColor = Color.Red; this.intzaInfo.Location = new Point(612, 28); this.intzaInfo.Margin = new Padding(2); this.intzaInfo.Name = "intzaInfo"; this.intzaInfo.Size = new Size(265, 164); this.intzaInfo.TabIndex = 92; this.intzaInfo.TabStop = false; this.intzaInfoTFEX.AllowDrop = true; this.intzaInfoTFEX.BackColor = Color.FromArgb(30, 30, 30); this.intzaInfoTFEX.CanDrag = false; this.intzaInfoTFEX.IsAutoRepaint = true; this.intzaInfoTFEX.IsDroped = false; itemGrid63.AdjustFontSize = 0f; itemGrid63.Alignment = StringAlignment.Near; itemGrid63.BackColor = Color.FromArgb(30, 30, 30); itemGrid63.Changed = false; itemGrid63.FieldType = ItemType.Label; itemGrid63.FontColor = Color.Gainsboro; itemGrid63.FontStyle = FontStyle.Regular; itemGrid63.Height = 1f; itemGrid63.IsBlink = 0; itemGrid63.Name = "open_label"; itemGrid63.Text = "Open"; itemGrid63.ValueFormat = FormatType.Text; itemGrid63.Visible = true; itemGrid63.Width = 20; itemGrid63.X = 0; itemGrid63.Y = 0f; itemGrid64.AdjustFontSize = -1f; itemGrid64.Alignment = StringAlignment.Far; itemGrid64.BackColor = Color.FromArgb(30, 30, 30); itemGrid64.Changed = false; itemGrid64.FieldType = ItemType.Text; itemGrid64.FontColor = Color.Yellow; itemGrid64.FontStyle = FontStyle.Regular; itemGrid64.Height = 1f; itemGrid64.IsBlink = 0; itemGrid64.Name = "open_vol"; itemGrid64.Text = ""; itemGrid64.ValueFormat = FormatType.Volume; itemGrid64.Visible = true; itemGrid64.Width = 35; itemGrid64.X = 20; itemGrid64.Y = 0f; itemGrid65.AdjustFontSize = 0f; itemGrid65.Alignment = StringAlignment.Far; itemGrid65.BackColor = Color.FromArgb(30, 30, 30); itemGrid65.Changed = false; itemGrid65.FieldType = ItemType.Text; itemGrid65.FontColor = Color.Yellow; itemGrid65.FontStyle = FontStyle.Regular; itemGrid65.Height = 1f; itemGrid65.IsBlink = 0; itemGrid65.Name = "open_avg"; itemGrid65.Text = ""; itemGrid65.ValueFormat = FormatType.Text; itemGrid65.Visible = false; itemGrid65.Width = 27; itemGrid65.X = 73; itemGrid65.Y = 0f; itemGrid66.AdjustFontSize = 0f; itemGrid66.Alignment = StringAlignment.Near; itemGrid66.BackColor = Color.FromArgb(30, 30, 30); itemGrid66.Changed = false; itemGrid66.FieldType = ItemType.Label; itemGrid66.FontColor = Color.Gainsboro; itemGrid66.FontStyle = FontStyle.Regular; itemGrid66.Height = 1f; itemGrid66.IsBlink = 0; itemGrid66.Name = "long_label"; itemGrid66.Text = "Long"; itemGrid66.ValueFormat = FormatType.Text; itemGrid66.Visible = true; itemGrid66.Width = 20; itemGrid66.X = 0; itemGrid66.Y = 1.2f; itemGrid67.AdjustFontSize = -1f; itemGrid67.Alignment = StringAlignment.Far; itemGrid67.BackColor = Color.FromArgb(30, 30, 30); itemGrid67.Changed = false; itemGrid67.FieldType = ItemType.Text; itemGrid67.FontColor = Color.Lime; itemGrid67.FontStyle = FontStyle.Regular; itemGrid67.Height = 1f; itemGrid67.IsBlink = 0; itemGrid67.Name = "long_vol"; itemGrid67.Text = ""; itemGrid67.ValueFormat = FormatType.Volume; itemGrid67.Visible = true; itemGrid67.Width = 35; itemGrid67.X = 20; itemGrid67.Y = 1.2f; itemGrid68.AdjustFontSize = 0f; itemGrid68.Alignment = StringAlignment.Far; itemGrid68.BackColor = Color.FromArgb(30, 30, 30); itemGrid68.Changed = false; itemGrid68.FieldType = ItemType.Text; itemGrid68.FontColor = Color.Yellow; itemGrid68.FontStyle = FontStyle.Regular; itemGrid68.Height = 1f; itemGrid68.IsBlink = 0; itemGrid68.Name = "long_avg"; itemGrid68.Text = ""; itemGrid68.ValueFormat = FormatType.Text; itemGrid68.Visible = false; itemGrid68.Width = 27; itemGrid68.X = 73; itemGrid68.Y = 1.2f; itemGrid69.AdjustFontSize = 0f; itemGrid69.Alignment = StringAlignment.Near; itemGrid69.BackColor = Color.FromArgb(30, 30, 30); itemGrid69.Changed = false; itemGrid69.FieldType = ItemType.Label; itemGrid69.FontColor = Color.Gainsboro; itemGrid69.FontStyle = FontStyle.Regular; itemGrid69.Height = 1f; itemGrid69.IsBlink = 0; itemGrid69.Name = "short_label"; itemGrid69.Text = "Short"; itemGrid69.ValueFormat = FormatType.Text; itemGrid69.Visible = true; itemGrid69.Width = 20; itemGrid69.X = 0; itemGrid69.Y = 2.4f; itemGrid70.AdjustFontSize = -1f; itemGrid70.Alignment = StringAlignment.Far; itemGrid70.BackColor = Color.FromArgb(30, 30, 30); itemGrid70.Changed = false; itemGrid70.FieldType = ItemType.Text; itemGrid70.FontColor = Color.Red; itemGrid70.FontStyle = FontStyle.Regular; itemGrid70.Height = 1f; itemGrid70.IsBlink = 0; itemGrid70.Name = "short_vol"; itemGrid70.Text = ""; itemGrid70.ValueFormat = FormatType.Volume; itemGrid70.Visible = true; itemGrid70.Width = 35; itemGrid70.X = 20; itemGrid70.Y = 2.4f; itemGrid71.AdjustFontSize = 0f; itemGrid71.Alignment = StringAlignment.Far; itemGrid71.BackColor = Color.FromArgb(30, 30, 30); itemGrid71.Changed = false; itemGrid71.FieldType = ItemType.Text; itemGrid71.FontColor = Color.Yellow; itemGrid71.FontStyle = FontStyle.Regular; itemGrid71.Height = 1f; itemGrid71.IsBlink = 0; itemGrid71.Name = "short_avg"; itemGrid71.Text = ""; itemGrid71.ValueFormat = FormatType.Text; itemGrid71.Visible = false; itemGrid71.Width = 27; itemGrid71.X = 73; itemGrid71.Y = 2.4f; itemGrid72.AdjustFontSize = 0f; itemGrid72.Alignment = StringAlignment.Near; itemGrid72.BackColor = Color.FromArgb(30, 30, 30); itemGrid72.Changed = false; itemGrid72.FieldType = ItemType.Text; itemGrid72.FontColor = Color.White; itemGrid72.FontStyle = FontStyle.Regular; itemGrid72.Height = 3.4f; itemGrid72.IsBlink = 0; itemGrid72.Name = "pie"; itemGrid72.Text = ""; itemGrid72.ValueFormat = FormatType.PieChartNew; itemGrid72.Visible = true; itemGrid72.Width = 40; itemGrid72.X = 60; itemGrid72.Y = 0f; itemGrid73.AdjustFontSize = 0f; itemGrid73.Alignment = StringAlignment.Near; itemGrid73.BackColor = Color.FromArgb(30, 30, 30); itemGrid73.Changed = false; itemGrid73.FieldType = ItemType.Label; itemGrid73.FontColor = Color.Gainsboro; itemGrid73.FontStyle = FontStyle.Regular; itemGrid73.Height = 1f; itemGrid73.IsBlink = 0; itemGrid73.Name = "oi_lable"; itemGrid73.Text = "OI"; itemGrid73.ValueFormat = FormatType.Text; itemGrid73.Visible = true; itemGrid73.Width = 23; itemGrid73.X = 0; itemGrid73.Y = 3.6f; itemGrid74.AdjustFontSize = 0f; itemGrid74.Alignment = StringAlignment.Near; itemGrid74.BackColor = Color.FromArgb(30, 30, 30); itemGrid74.Changed = false; itemGrid74.FieldType = ItemType.Text; itemGrid74.FontColor = Color.Yellow; itemGrid74.FontStyle = FontStyle.Regular; itemGrid74.Height = 1f; itemGrid74.IsBlink = 0; itemGrid74.Name = "oi"; itemGrid74.Text = ""; itemGrid74.ValueFormat = FormatType.Price; itemGrid74.Visible = true; itemGrid74.Width = 26; itemGrid74.X = 23; itemGrid74.Y = 3.6f; itemGrid75.AdjustFontSize = 0f; itemGrid75.Alignment = StringAlignment.Near; itemGrid75.BackColor = Color.FromArgb(30, 30, 30); itemGrid75.Changed = false; itemGrid75.FieldType = ItemType.Label; itemGrid75.FontColor = Color.Gainsboro; itemGrid75.FontStyle = FontStyle.Regular; itemGrid75.Height = 1f; itemGrid75.IsBlink = 0; itemGrid75.Name = "psettle_label"; itemGrid75.Text = "P.Settle"; itemGrid75.ValueFormat = FormatType.Text; itemGrid75.Visible = true; itemGrid75.Width = 23; itemGrid75.X = 0; itemGrid75.Y = 4.6f; itemGrid76.AdjustFontSize = 0f; itemGrid76.Alignment = StringAlignment.Near; itemGrid76.BackColor = Color.FromArgb(30, 30, 30); itemGrid76.Changed = false; itemGrid76.FieldType = ItemType.Text; itemGrid76.FontColor = Color.Yellow; itemGrid76.FontStyle = FontStyle.Regular; itemGrid76.Height = 1f; itemGrid76.IsBlink = 0; itemGrid76.Name = "psettle"; itemGrid76.Text = ""; itemGrid76.ValueFormat = FormatType.Text; itemGrid76.Visible = true; itemGrid76.Width = 26; itemGrid76.X = 23; itemGrid76.Y = 4.6f; itemGrid77.AdjustFontSize = 0f; itemGrid77.Alignment = StringAlignment.Near; itemGrid77.BackColor = Color.FromArgb(30, 30, 30); itemGrid77.Changed = false; itemGrid77.FieldType = ItemType.Label; itemGrid77.FontColor = Color.Gainsboro; itemGrid77.FontStyle = FontStyle.Regular; itemGrid77.Height = 1f; itemGrid77.IsBlink = 0; itemGrid77.Name = "settle_label"; itemGrid77.Text = "Settle"; itemGrid77.ValueFormat = FormatType.Text; itemGrid77.Visible = true; itemGrid77.Width = 23; itemGrid77.X = 0; itemGrid77.Y = 5.6f; itemGrid78.AdjustFontSize = 0f; itemGrid78.Alignment = StringAlignment.Near; itemGrid78.BackColor = Color.FromArgb(30, 30, 30); itemGrid78.Changed = false; itemGrid78.FieldType = ItemType.Text; itemGrid78.FontColor = Color.Yellow; itemGrid78.FontStyle = FontStyle.Regular; itemGrid78.Height = 1f; itemGrid78.IsBlink = 0; itemGrid78.Name = "settle"; itemGrid78.Text = ""; itemGrid78.ValueFormat = FormatType.Text; itemGrid78.Visible = true; itemGrid78.Width = 26; itemGrid78.X = 23; itemGrid78.Y = 5.6f; itemGrid79.AdjustFontSize = 0f; itemGrid79.Alignment = StringAlignment.Near; itemGrid79.BackColor = Color.FromArgb(30, 30, 30); itemGrid79.Changed = false; itemGrid79.FieldType = ItemType.Label; itemGrid79.FontColor = Color.Gainsboro; itemGrid79.FontStyle = FontStyle.Regular; itemGrid79.Height = 1f; itemGrid79.IsBlink = 0; itemGrid79.Name = "ceiling_lable"; itemGrid79.Text = "Ceiling"; itemGrid79.ValueFormat = FormatType.Text; itemGrid79.Visible = true; itemGrid79.Width = 23; itemGrid79.X = 0; itemGrid79.Y = 6.6f; itemGrid80.AdjustFontSize = 0f; itemGrid80.Alignment = StringAlignment.Near; itemGrid80.BackColor = Color.FromArgb(30, 30, 30); itemGrid80.Changed = false; itemGrid80.FieldType = ItemType.Text; itemGrid80.FontColor = Color.Cyan; itemGrid80.FontStyle = FontStyle.Regular; itemGrid80.Height = 1f; itemGrid80.IsBlink = 0; itemGrid80.Name = "ceiling"; itemGrid80.Text = ""; itemGrid80.ValueFormat = FormatType.Text; itemGrid80.Visible = true; itemGrid80.Width = 26; itemGrid80.X = 23; itemGrid80.Y = 6.6f; itemGrid81.AdjustFontSize = 0f; itemGrid81.Alignment = StringAlignment.Near; itemGrid81.BackColor = Color.FromArgb(30, 30, 30); itemGrid81.Changed = false; itemGrid81.FieldType = ItemType.Label; itemGrid81.FontColor = Color.Gainsboro; itemGrid81.FontStyle = FontStyle.Regular; itemGrid81.Height = 1f; itemGrid81.IsBlink = 0; itemGrid81.Name = "floor_label"; itemGrid81.Text = "Floor"; itemGrid81.ValueFormat = FormatType.Text; itemGrid81.Visible = true; itemGrid81.Width = 23; itemGrid81.X = 0; itemGrid81.Y = 7.6f; itemGrid82.AdjustFontSize = 0f; itemGrid82.Alignment = StringAlignment.Near; itemGrid82.BackColor = Color.FromArgb(30, 30, 30); itemGrid82.Changed = false; itemGrid82.FieldType = ItemType.Text; itemGrid82.FontColor = Color.Magenta; itemGrid82.FontStyle = FontStyle.Regular; itemGrid82.Height = 1f; itemGrid82.IsBlink = 0; itemGrid82.Name = "floor"; itemGrid82.Text = ""; itemGrid82.ValueFormat = FormatType.Text; itemGrid82.Visible = true; itemGrid82.Width = 26; itemGrid82.X = 23; itemGrid82.Y = 7.6f; itemGrid83.AdjustFontSize = 0f; itemGrid83.Alignment = StringAlignment.Near; itemGrid83.BackColor = Color.FromArgb(30, 30, 30); itemGrid83.Changed = false; itemGrid83.FieldType = ItemType.Label; itemGrid83.FontColor = Color.White; itemGrid83.FontStyle = FontStyle.Regular; itemGrid83.Height = 1f; itemGrid83.IsBlink = 0; itemGrid83.Name = "Multiplier"; itemGrid83.Text = "Multiplier"; itemGrid83.ValueFormat = FormatType.Text; itemGrid83.Visible = true; itemGrid83.Width = 25; itemGrid83.X = 0; itemGrid83.Y = 8.6f; itemGrid84.AdjustFontSize = 0f; itemGrid84.Alignment = StringAlignment.Near; itemGrid84.BackColor = Color.FromArgb(30, 30, 30); itemGrid84.Changed = false; itemGrid84.FieldType = ItemType.Text; itemGrid84.FontColor = Color.Yellow; itemGrid84.FontStyle = FontStyle.Regular; itemGrid84.Height = 1f; itemGrid84.IsBlink = 0; itemGrid84.Name = "multiplier"; itemGrid84.Text = ""; itemGrid84.ValueFormat = FormatType.Text; itemGrid84.Visible = true; itemGrid84.Width = 26; itemGrid84.X = 23; itemGrid84.Y = 8.6f; itemGrid85.AdjustFontSize = 0f; itemGrid85.Alignment = StringAlignment.Near; itemGrid85.BackColor = Color.FromArgb(30, 30, 30); itemGrid85.Changed = false; itemGrid85.FieldType = ItemType.Label; itemGrid85.FontColor = Color.Gainsboro; itemGrid85.FontStyle = FontStyle.Regular; itemGrid85.Height = 1f; itemGrid85.IsBlink = 0; itemGrid85.Name = "tickSize_lable"; itemGrid85.Text = "Spread"; itemGrid85.ValueFormat = FormatType.Text; itemGrid85.Visible = true; itemGrid85.Width = 23; itemGrid85.X = 0; itemGrid85.Y = 9.6f; itemGrid86.AdjustFontSize = 0f; itemGrid86.Alignment = StringAlignment.Near; itemGrid86.BackColor = Color.FromArgb(30, 30, 30); itemGrid86.Changed = false; itemGrid86.FieldType = ItemType.Text; itemGrid86.FontColor = Color.Yellow; itemGrid86.FontStyle = FontStyle.Regular; itemGrid86.Height = 1f; itemGrid86.IsBlink = 0; itemGrid86.Name = "tickSize"; itemGrid86.Text = ""; itemGrid86.ValueFormat = FormatType.Text; itemGrid86.Visible = true; itemGrid86.Width = 26; itemGrid86.X = 23; itemGrid86.Y = 9.6f; itemGrid87.AdjustFontSize = 0f; itemGrid87.Alignment = StringAlignment.Near; itemGrid87.BackColor = Color.FromArgb(30, 30, 30); itemGrid87.Changed = false; itemGrid87.FieldType = ItemType.Label; itemGrid87.FontColor = Color.Gainsboro; itemGrid87.FontStyle = FontStyle.Regular; itemGrid87.Height = 1f; itemGrid87.IsBlink = 0; itemGrid87.Name = "turnover_label"; itemGrid87.Text = "Turn Over"; itemGrid87.ValueFormat = FormatType.Text; itemGrid87.Visible = false; itemGrid87.Width = 23; itemGrid87.X = 49; itemGrid87.Y = 3.6f; itemGrid88.AdjustFontSize = 0f; itemGrid88.Alignment = StringAlignment.Near; itemGrid88.BackColor = Color.FromArgb(30, 30, 30); itemGrid88.Changed = false; itemGrid88.FieldType = ItemType.Text; itemGrid88.FontColor = Color.Yellow; itemGrid88.FontStyle = FontStyle.Regular; itemGrid88.Height = 1f; itemGrid88.IsBlink = 0; itemGrid88.Name = "turnover"; itemGrid88.Text = ""; itemGrid88.ValueFormat = FormatType.Price; itemGrid88.Visible = false; itemGrid88.Width = 29; itemGrid88.X = 72; itemGrid88.Y = 3.6f; itemGrid89.AdjustFontSize = 0f; itemGrid89.Alignment = StringAlignment.Near; itemGrid89.BackColor = Color.FromArgb(30, 30, 30); itemGrid89.Changed = false; itemGrid89.FieldType = ItemType.Label; itemGrid89.FontColor = Color.Gainsboro; itemGrid89.FontStyle = FontStyle.Regular; itemGrid89.Height = 1f; itemGrid89.IsBlink = 0; itemGrid89.Name = "basis_label"; itemGrid89.Text = "Basis"; itemGrid89.ValueFormat = FormatType.Text; itemGrid89.Visible = true; itemGrid89.Width = 23; itemGrid89.X = 49; itemGrid89.Y = 3.6f; itemGrid90.AdjustFontSize = 0f; itemGrid90.Alignment = StringAlignment.Near; itemGrid90.BackColor = Color.FromArgb(30, 30, 30); itemGrid90.Changed = false; itemGrid90.FieldType = ItemType.Text; itemGrid90.FontColor = Color.Yellow; itemGrid90.FontStyle = FontStyle.Regular; itemGrid90.Height = 1f; itemGrid90.IsBlink = 0; itemGrid90.Name = "basis"; itemGrid90.Text = ""; itemGrid90.ValueFormat = FormatType.Price; itemGrid90.Visible = true; itemGrid90.Width = 29; itemGrid90.X = 72; itemGrid90.Y = 3.6f; itemGrid91.AdjustFontSize = 0f; itemGrid91.Alignment = StringAlignment.Near; itemGrid91.BackColor = Color.FromArgb(30, 30, 30); itemGrid91.Changed = false; itemGrid91.FieldType = ItemType.Label; itemGrid91.FontColor = Color.Gainsboro; itemGrid91.FontStyle = FontStyle.Regular; itemGrid91.Height = 1f; itemGrid91.IsBlink = 0; itemGrid91.Name = "open1_label"; itemGrid91.Text = "Open 1"; itemGrid91.ValueFormat = FormatType.Text; itemGrid91.Visible = true; itemGrid91.Width = 23; itemGrid91.X = 49; itemGrid91.Y = 4.6f; itemGrid92.AdjustFontSize = 0f; itemGrid92.Alignment = StringAlignment.Near; itemGrid92.BackColor = Color.FromArgb(30, 30, 30); itemGrid92.Changed = false; itemGrid92.FieldType = ItemType.Text; itemGrid92.FontColor = Color.Yellow; itemGrid92.FontStyle = FontStyle.Regular; itemGrid92.Height = 1f; itemGrid92.IsBlink = 0; itemGrid92.Name = "open1"; itemGrid92.Text = ""; itemGrid92.ValueFormat = FormatType.Text; itemGrid92.Visible = true; itemGrid92.Width = 29; itemGrid92.X = 72; itemGrid92.Y = 4.6f; itemGrid93.AdjustFontSize = 0f; itemGrid93.Alignment = StringAlignment.Near; itemGrid93.BackColor = Color.FromArgb(30, 30, 30); itemGrid93.Changed = false; itemGrid93.FieldType = ItemType.Label; itemGrid93.FontColor = Color.Gainsboro; itemGrid93.FontStyle = FontStyle.Regular; itemGrid93.Height = 1f; itemGrid93.IsBlink = 0; itemGrid93.Name = "open2_label"; itemGrid93.Text = "Open 2"; itemGrid93.ValueFormat = FormatType.Text; itemGrid93.Visible = true; itemGrid93.Width = 23; itemGrid93.X = 49; itemGrid93.Y = 5.6f; itemGrid94.AdjustFontSize = 0f; itemGrid94.Alignment = StringAlignment.Near; itemGrid94.BackColor = Color.FromArgb(30, 30, 30); itemGrid94.Changed = false; itemGrid94.FieldType = ItemType.Text; itemGrid94.FontColor = Color.Yellow; itemGrid94.FontStyle = FontStyle.Regular; itemGrid94.Height = 1f; itemGrid94.IsBlink = 0; itemGrid94.Name = "open2"; itemGrid94.Text = ""; itemGrid94.ValueFormat = FormatType.Text; itemGrid94.Visible = true; itemGrid94.Width = 29; itemGrid94.X = 72; itemGrid94.Y = 5.6f; itemGrid95.AdjustFontSize = 0f; itemGrid95.Alignment = StringAlignment.Near; itemGrid95.BackColor = Color.FromArgb(30, 30, 30); itemGrid95.Changed = false; itemGrid95.FieldType = ItemType.Label; itemGrid95.FontColor = Color.Gainsboro; itemGrid95.FontStyle = FontStyle.Regular; itemGrid95.Height = 1f; itemGrid95.IsBlink = 0; itemGrid95.Name = "poclose_label"; itemGrid95.Text = "P.Close"; itemGrid95.ValueFormat = FormatType.Text; itemGrid95.Visible = true; itemGrid95.Width = 23; itemGrid95.X = 49; itemGrid95.Y = 7.6f; itemGrid96.AdjustFontSize = 0f; itemGrid96.Alignment = StringAlignment.Near; itemGrid96.BackColor = Color.FromArgb(30, 30, 30); itemGrid96.Changed = false; itemGrid96.FieldType = ItemType.Text; itemGrid96.FontColor = Color.Yellow; itemGrid96.FontStyle = FontStyle.Regular; itemGrid96.Height = 1f; itemGrid96.IsBlink = 0; itemGrid96.Name = "poclose"; itemGrid96.Text = ""; itemGrid96.ValueFormat = FormatType.Text; itemGrid96.Visible = true; itemGrid96.Width = 29; itemGrid96.X = 72; itemGrid96.Y = 7.6f; itemGrid97.AdjustFontSize = 0f; itemGrid97.Alignment = StringAlignment.Near; itemGrid97.BackColor = Color.FromArgb(30, 30, 30); itemGrid97.Changed = false; itemGrid97.FieldType = ItemType.Label; itemGrid97.FontColor = Color.Gainsboro; itemGrid97.FontStyle = FontStyle.Regular; itemGrid97.Height = 1f; itemGrid97.IsBlink = 0; itemGrid97.Name = "open3_label"; itemGrid97.Text = "Open 3"; itemGrid97.ValueFormat = FormatType.Text; itemGrid97.Visible = true; itemGrid97.Width = 23; itemGrid97.X = 49; itemGrid97.Y = 6.6f; itemGrid98.AdjustFontSize = 0f; itemGrid98.Alignment = StringAlignment.Near; itemGrid98.BackColor = Color.FromArgb(30, 30, 30); itemGrid98.Changed = false; itemGrid98.FieldType = ItemType.Text; itemGrid98.FontColor = Color.Yellow; itemGrid98.FontStyle = FontStyle.Regular; itemGrid98.Height = 1f; itemGrid98.IsBlink = 0; itemGrid98.Name = "open3"; itemGrid98.Text = ""; itemGrid98.ValueFormat = FormatType.Text; itemGrid98.Visible = true; itemGrid98.Width = 29; itemGrid98.X = 72; itemGrid98.Y = 6.6f; itemGrid99.AdjustFontSize = 0f; itemGrid99.Alignment = StringAlignment.Near; itemGrid99.BackColor = Color.FromArgb(30, 30, 30); itemGrid99.Changed = false; itemGrid99.FieldType = ItemType.Label; itemGrid99.FontColor = Color.Gainsboro; itemGrid99.FontStyle = FontStyle.Regular; itemGrid99.Height = 1f; itemGrid99.IsBlink = 0; itemGrid99.Name = "first_date_label"; itemGrid99.Text = "First"; itemGrid99.ValueFormat = FormatType.Text; itemGrid99.Visible = false; itemGrid99.Width = 23; itemGrid99.X = 49; itemGrid99.Y = 7.6f; itemGrid100.AdjustFontSize = 0f; itemGrid100.Alignment = StringAlignment.Near; itemGrid100.BackColor = Color.FromArgb(30, 30, 30); itemGrid100.Changed = false; itemGrid100.FieldType = ItemType.Text; itemGrid100.FontColor = Color.Yellow; itemGrid100.FontStyle = FontStyle.Regular; itemGrid100.Height = 1f; itemGrid100.IsBlink = 0; itemGrid100.Name = "first_date"; itemGrid100.Text = ""; itemGrid100.ValueFormat = FormatType.Text; itemGrid100.Visible = false; itemGrid100.Width = 29; itemGrid100.X = 72; itemGrid100.Y = 7.6f; itemGrid101.AdjustFontSize = 0f; itemGrid101.Alignment = StringAlignment.Near; itemGrid101.BackColor = Color.FromArgb(30, 30, 30); itemGrid101.Changed = false; itemGrid101.FieldType = ItemType.Label; itemGrid101.FontColor = Color.Gainsboro; itemGrid101.FontStyle = FontStyle.Regular; itemGrid101.Height = 1f; itemGrid101.IsBlink = 0; itemGrid101.Name = "last_date_label"; itemGrid101.Text = "Last"; itemGrid101.ValueFormat = FormatType.Text; itemGrid101.Visible = true; itemGrid101.Width = 23; itemGrid101.X = 49; itemGrid101.Y = 8.6f; itemGrid102.AdjustFontSize = 0f; itemGrid102.Alignment = StringAlignment.Near; itemGrid102.BackColor = Color.FromArgb(30, 30, 30); itemGrid102.Changed = false; itemGrid102.FieldType = ItemType.Text; itemGrid102.FontColor = Color.Yellow; itemGrid102.FontStyle = FontStyle.Regular; itemGrid102.Height = 1f; itemGrid102.IsBlink = 0; itemGrid102.Name = "last_date"; itemGrid102.Text = ""; itemGrid102.ValueFormat = FormatType.Text; itemGrid102.Visible = true; itemGrid102.Width = 29; itemGrid102.X = 72; itemGrid102.Y = 8.6f; itemGrid103.AdjustFontSize = 0f; itemGrid103.Alignment = StringAlignment.Near; itemGrid103.BackColor = Color.FromArgb(30, 30, 30); itemGrid103.Changed = false; itemGrid103.FieldType = ItemType.Label; itemGrid103.FontColor = Color.Gainsboro; itemGrid103.FontStyle = FontStyle.Regular; itemGrid103.Height = 1f; itemGrid103.IsBlink = 0; itemGrid103.Name = "lastIndex_label"; itemGrid103.Text = "Index"; itemGrid103.ValueFormat = FormatType.Text; itemGrid103.Visible = true; itemGrid103.Width = 23; itemGrid103.X = 49; itemGrid103.Y = 9.6f; itemGrid104.AdjustFontSize = 0f; itemGrid104.Alignment = StringAlignment.Near; itemGrid104.BackColor = Color.FromArgb(30, 30, 30); itemGrid104.Changed = false; itemGrid104.FieldType = ItemType.Text; itemGrid104.FontColor = Color.Yellow; itemGrid104.FontStyle = FontStyle.Regular; itemGrid104.Height = 1f; itemGrid104.IsBlink = 0; itemGrid104.Name = "lastIndex"; itemGrid104.Text = ""; itemGrid104.ValueFormat = FormatType.Text; itemGrid104.Visible = true; itemGrid104.Width = 29; itemGrid104.X = 72; itemGrid104.Y = 9.6f; this.intzaInfoTFEX.Items.Add(itemGrid63); this.intzaInfoTFEX.Items.Add(itemGrid64); this.intzaInfoTFEX.Items.Add(itemGrid65); this.intzaInfoTFEX.Items.Add(itemGrid66); this.intzaInfoTFEX.Items.Add(itemGrid67); this.intzaInfoTFEX.Items.Add(itemGrid68); this.intzaInfoTFEX.Items.Add(itemGrid69); this.intzaInfoTFEX.Items.Add(itemGrid70); this.intzaInfoTFEX.Items.Add(itemGrid71); this.intzaInfoTFEX.Items.Add(itemGrid72); this.intzaInfoTFEX.Items.Add(itemGrid73); this.intzaInfoTFEX.Items.Add(itemGrid74); this.intzaInfoTFEX.Items.Add(itemGrid75); this.intzaInfoTFEX.Items.Add(itemGrid76); this.intzaInfoTFEX.Items.Add(itemGrid77); this.intzaInfoTFEX.Items.Add(itemGrid78); this.intzaInfoTFEX.Items.Add(itemGrid79); this.intzaInfoTFEX.Items.Add(itemGrid80); this.intzaInfoTFEX.Items.Add(itemGrid81); this.intzaInfoTFEX.Items.Add(itemGrid82); this.intzaInfoTFEX.Items.Add(itemGrid83); this.intzaInfoTFEX.Items.Add(itemGrid84); this.intzaInfoTFEX.Items.Add(itemGrid85); this.intzaInfoTFEX.Items.Add(itemGrid86); this.intzaInfoTFEX.Items.Add(itemGrid87); this.intzaInfoTFEX.Items.Add(itemGrid88); this.intzaInfoTFEX.Items.Add(itemGrid89); this.intzaInfoTFEX.Items.Add(itemGrid90); this.intzaInfoTFEX.Items.Add(itemGrid91); this.intzaInfoTFEX.Items.Add(itemGrid92); this.intzaInfoTFEX.Items.Add(itemGrid93); this.intzaInfoTFEX.Items.Add(itemGrid94); this.intzaInfoTFEX.Items.Add(itemGrid95); this.intzaInfoTFEX.Items.Add(itemGrid96); this.intzaInfoTFEX.Items.Add(itemGrid97); this.intzaInfoTFEX.Items.Add(itemGrid98); this.intzaInfoTFEX.Items.Add(itemGrid99); this.intzaInfoTFEX.Items.Add(itemGrid100); this.intzaInfoTFEX.Items.Add(itemGrid101); this.intzaInfoTFEX.Items.Add(itemGrid102); this.intzaInfoTFEX.Items.Add(itemGrid103); this.intzaInfoTFEX.Items.Add(itemGrid104); this.intzaInfoTFEX.LineColor = Color.Red; this.intzaInfoTFEX.Location = new Point(612, 336); this.intzaInfoTFEX.Margin = new Padding(2); this.intzaInfoTFEX.Name = "intzaInfoTFEX"; this.intzaInfoTFEX.Size = new Size(236, 158); this.intzaInfoTFEX.TabIndex = 93; this.intzaInfoTFEX.TabStop = false; clsPermission.DisplayBuySell = enumDisplayBuySell.Yes; clsPermission.HistoricalDay = 30.0; clsPermission.Permission = enumPermission.Visible; clsPermission.VolType = null; clsPermission.WordingType = null; this.wcGraphVolume.ActiveSET = clsPermission; clsPermission2.DisplayBuySell = enumDisplayBuySell.Yes; clsPermission2.HistoricalDay = 30.0; clsPermission2.Permission = enumPermission.Visible; clsPermission2.VolType = null; clsPermission2.WordingType = null; this.wcGraphVolume.ActiveTFEX = clsPermission2; this.wcGraphVolume.BackColor = Color.FromArgb(30, 30, 30); this.wcGraphVolume.ColorBg = Color.FromArgb(30, 30, 30); this.wcGraphVolume.ColorBuy = Color.Lime; this.wcGraphVolume.ColorCeiling = Color.Aqua; this.wcGraphVolume.ColorDown = Color.Red; this.wcGraphVolume.ColorFloor = Color.Fuchsia; this.wcGraphVolume.ColorGrid = Color.DarkGray; this.wcGraphVolume.ColorNoChg = Color.Yellow; this.wcGraphVolume.ColorSell = Color.Red; this.wcGraphVolume.ColorUp = Color.Lime; this.wcGraphVolume.ColorValue = Color.White; this.wcGraphVolume.ColorVolume = Color.Yellow; this.wcGraphVolume.CurDate = null; this.wcGraphVolume.dictIPO = (Dictionary<string, float>)componentResourceManager.GetObject("wcGraphVolume.dictIPO"); this.wcGraphVolume.FontName = "Arial"; this.wcGraphVolume.FontSize = 10f; this.wcGraphVolume.Location = new Point(435, 224); this.wcGraphVolume.Mode = 0; this.wcGraphVolume.Name = "wcGraphVolume"; this.wcGraphVolume.Size = new Size(197, 69); this.wcGraphVolume.SymbolList = null; this.wcGraphVolume.SymbolType = enumType.eSet; this.wcGraphVolume.TabIndex = 94; this.wcGraphVolume.TextBoxBgColor = Color.Empty; this.wcGraphVolume.TextBoxForeColor = Color.Empty; this.wcGraphVolume.TypeMode = enumMode.Previous; base.AutoScaleDimensions = new SizeF(6f, 13f); base.AutoScaleMode = AutoScaleMode.Font; this.BackColor = Color.FromArgb(20, 20, 20); base.ClientSize = new Size(888, 419); base.Controls.Add(this.wcGraphVolume); base.Controls.Add(this.intzaInfoTFEX); base.Controls.Add(this.intzaInfo); base.Controls.Add(this.intzaVolumeByBoard); base.Controls.Add(this.intzaLS); base.Controls.Add(this.intzaViewOddLotInfo); base.Controls.Add(this.intzaSaleByTime); base.Controls.Add(this.intzaSaleByPrice); base.Controls.Add(this.intzaViewOddLot); base.Controls.Add(this.intzaStockInPlay); base.Controls.Add(this.tStripMenu); base.FormBorderStyle = FormBorderStyle.FixedToolWindow; base.Margin = new Padding(4); base.Name = "frmStockSummary"; this.Text = "Stock Summary"; base.IDoShownDelay += new ClientBaseForm.OnShownDelayEventHandler(this.frmStockSummary_IDoShownDelay); base.IDoLoadData += new ClientBaseForm.OnIDoLoadDataEventHandler(this.frmStockSummary_IDoLoadData); base.IDoFontChanged += new ClientBaseForm.OnFontChangedEventHandler(this.frmStockSummary_IDoFontChanged); base.IDoCustomSizeChanged += new ClientBaseForm.CustomSizeChangedEventHandler(this.frmStockSummary_IDoCustomSizeChanged); base.IDoSymbolLinked += new ClientBaseForm.OnSymbolLinkEventHandler(this.frmStockSummary_IDoSymbolLinked); base.IDoMainFormKeyUp += new ClientBaseForm.OnFormKeyUpEventHandler(this.frmStockSummary_IDoMainFormKeyUp); base.IDoReActivated += new ClientBaseForm.OnReActiveEventHandler(this.frmStockSummary_IDoReActivated); base.Controls.SetChildIndex(this.tStripMenu, 0); base.Controls.SetChildIndex(this.intzaStockInPlay, 0); base.Controls.SetChildIndex(this.intzaViewOddLot, 0); base.Controls.SetChildIndex(this.intzaSaleByPrice, 0); base.Controls.SetChildIndex(this.intzaSaleByTime, 0); base.Controls.SetChildIndex(this.intzaViewOddLotInfo, 0); base.Controls.SetChildIndex(this.intzaLS, 0); base.Controls.SetChildIndex(this.intzaVolumeByBoard, 0); base.Controls.SetChildIndex(this.intzaInfo, 0); base.Controls.SetChildIndex(this.intzaInfoTFEX, 0); base.Controls.SetChildIndex(this.wcGraphVolume, 0); this.tStripMenu.ResumeLayout(false); this.tStripMenu.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
private void OnClickTemplatize(object source, LinkLabelLinkClickedEventArgs e) { if (this.currentColumnItem != null) { if (this.propChangesPending) { this.SaveColumnProperties(); } this.currentColumnItem.SaveColumnInfo(); TemplateColumnItem item = new TemplateColumnItem(this.currentColumnItem.GetTemplateColumn((System.Web.UI.WebControls.DataGrid) base.GetBaseControl())); item.LoadColumnInfo(); this.selColumnsList.Items[this.currentColumnItem.Index] = item; this.currentColumnItem = item; this.currentColumnItem.Selected = true; this.SetDirty(); this.UpdateEnabledVisibleState(); } }
private void InitPage() { this.currentDataSource = null; this.autoColumnCheck.Checked = false; this.selectedDataSourceNode = null; this.availableColumnsTree.Nodes.Clear(); this.selColumnsList.Items.Clear(); this.currentColumnItem = null; this.columnSortExprCombo.Items.Clear(); this.currentColumnEditor = null; this.boundColumnEditor.ClearDataFields(); this.buttonColumnEditor.ClearDataFields(); this.hyperLinkColumnEditor.ClearDataFields(); this.editCommandColumnEditor.ClearDataFields(); this.propChangesPending = false; this.headerTextChanged = false; }
public ColumnItemEventArgs(ColumnItem item) { Item = item; }
private void OnClickAddColumn(object source, EventArgs e) { AvailableColumnNode selectedNode = (AvailableColumnNode) this.availableColumnsTree.SelectedNode; if (this.propChangesPending) { this.SaveColumnProperties(); } if (!selectedNode.CreatesMultipleColumns) { ColumnItem item = selectedNode.CreateColumn(); this.selColumnsList.Items.Add(item); this.currentColumnItem = item; this.currentColumnItem.Selected = true; this.currentColumnItem.EnsureVisible(); } else { ColumnItem[] itemArray = selectedNode.CreateColumns(this.currentDataSource.Fields); int length = itemArray.Length; for (int i = 0; i < length; i++) { this.selColumnsList.Items.Add(itemArray[i]); } this.currentColumnItem = itemArray[length - 1]; this.currentColumnItem.Selected = true; this.currentColumnItem.EnsureVisible(); } this.selColumnsList.Focus(); this.SetDirty(); this.UpdateEnabledVisibleState(); }
private void InitializeComponent() { ColumnItem columnItem = new ColumnItem(); ColumnItem columnItem2 = new ColumnItem(); ColumnItem columnItem3 = new ColumnItem(); ColumnItem columnItem4 = new ColumnItem(); ColumnItem columnItem5 = new ColumnItem(); this.lbQuantity = new Label(); this.lbStock = new Label(); this.tbPrice = new TextBox(); this.tbStock = new TextBox(); this.tbVolume = new TextBox(); this.lbPrice = new Label(); this.btnRemoveRow = new Button(); this.btnAdd = new Button(); this.label1 = new Label(); this.lbLoading = new Label(); this.panel2 = new Panel(); this.label3 = new Label(); this.label2 = new Label(); this.cbSide = new ComboBox(); this.lbMessage = new Label(); this.gbPolicy = new GroupBox(); this.btnRiskMax = new Button(); this.btnRiskMedium = new Button(); this.btnRiskMin = new Button(); this.tbSectorLimitValue = new TextBox(); this.chbSectorLimit = new CheckBox(); this.tbAvg5Volume = new TextBox(); this.chbAvg5Volume = new CheckBox(); this.tbStocksInSector = new TextBox(); this.lbRiskLevel = new Label(); this.tbChgLimitValue = new TextBox(); this.chbChgLimit = new CheckBox(); this.tbValueLimitValue = new TextBox(); this.chbValueLimit = new CheckBox(); this.chbStocksInSector = new CheckBox(); this.gbStockThreshold = new GroupBox(); this.intza = new SortGrid(); this.btnUpdate = new Button(); this.btnCancel = new Button(); this.chbOpen = new CheckBox(); this.panel2.SuspendLayout(); this.gbPolicy.SuspendLayout(); this.gbStockThreshold.SuspendLayout(); base.SuspendLayout(); this.lbQuantity.AutoSize = true; this.lbQuantity.Font = new Font("Tahoma", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 222); this.lbQuantity.Location = new Point(171, 68); this.lbQuantity.Name = "lbQuantity"; this.lbQuantity.Size = new Size(51, 16); this.lbQuantity.TabIndex = 34; this.lbQuantity.Text = "Volume"; this.lbStock.AutoSize = true; this.lbStock.Font = new Font("Tahoma", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 222); this.lbStock.Location = new Point(19, 11); this.lbStock.Name = "lbStock"; this.lbStock.Size = new Size(39, 16); this.lbStock.TabIndex = 31; this.lbStock.Text = "Stock"; this.tbPrice.BackColor = Color.White; this.tbPrice.BorderStyle = BorderStyle.FixedSingle; this.tbPrice.Font = new Font("Tahoma", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 222); this.tbPrice.Location = new Point(71, 119); this.tbPrice.Margin = new Padding(3, 4, 3, 4); this.tbPrice.MaxLength = 9; this.tbPrice.Name = "tbPrice"; this.tbPrice.Size = new Size(81, 23); this.tbPrice.TabIndex = 2; this.tbPrice.KeyDown += new KeyEventHandler(this.tsPrice_KeyDown); this.tbPrice.Leave += new EventHandler(this.controlOrder_Leave); this.tbPrice.KeyPress += new KeyPressEventHandler(this.tsPrice_KeyPress); this.tbPrice.Enter += new EventHandler(this.controlOrder_Enter); this.tbStock.AutoCompleteMode = AutoCompleteMode.SuggestAppend; this.tbStock.AutoCompleteSource = AutoCompleteSource.CustomSource; this.tbStock.BackColor = Color.White; this.tbStock.BorderStyle = BorderStyle.FixedSingle; this.tbStock.CharacterCasing = CharacterCasing.Upper; this.tbStock.Font = new Font("Tahoma", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 222); this.tbStock.Location = new Point(71, 8); this.tbStock.Margin = new Padding(3, 4, 3, 4); this.tbStock.MaxLength = 8; this.tbStock.Name = "tbStock"; this.tbStock.Size = new Size(95, 23); this.tbStock.TabIndex = 0; this.tbStock.KeyDown += new KeyEventHandler(this.tsStock_KeyDown); this.tbStock.Leave += new EventHandler(this.controlOrder_Leave); this.tbStock.Enter += new EventHandler(this.controlOrder_Enter); this.tbVolume.BackColor = Color.White; this.tbVolume.BorderStyle = BorderStyle.FixedSingle; this.tbVolume.CharacterCasing = CharacterCasing.Upper; this.tbVolume.Font = new Font("Tahoma", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 222); this.tbVolume.Location = new Point(237, 65); this.tbVolume.Margin = new Padding(3, 4, 3, 4); this.tbVolume.MaxLength = 9; this.tbVolume.Name = "tbVolume"; this.tbVolume.Size = new Size(95, 23); this.tbVolume.TabIndex = 1; this.tbVolume.TextChanged += new EventHandler(this.tsQuantity_TextChanged); this.tbVolume.KeyDown += new KeyEventHandler(this.tsQuantity_KeyDown); this.tbVolume.Leave += new EventHandler(this.controlOrder_Leave); this.tbVolume.KeyPress += new KeyPressEventHandler(this.tsQuantity_KeyPress); this.tbVolume.Enter += new EventHandler(this.controlOrder_Enter); this.lbPrice.AutoSize = true; this.lbPrice.Font = new Font("Tahoma", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 222); this.lbPrice.Location = new Point(24, 122); this.lbPrice.Name = "lbPrice"; this.lbPrice.Size = new Size(36, 16); this.lbPrice.TabIndex = 37; this.lbPrice.Text = "Price"; this.btnRemoveRow.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.btnRemoveRow.AutoSize = true; this.btnRemoveRow.FlatAppearance.BorderColor = Color.Gray; this.btnRemoveRow.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnRemoveRow.FlatAppearance.MouseOverBackColor = Color.Teal; this.btnRemoveRow.FlatStyle = FlatStyle.Flat; this.btnRemoveRow.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 222); this.btnRemoveRow.Location = new Point(301, 6); this.btnRemoveRow.Margin = new Padding(3, 4, 3, 4); this.btnRemoveRow.Name = "btnRemoveRow"; this.btnRemoveRow.Size = new Size(76, 30); this.btnRemoveRow.TabIndex = 4; this.btnRemoveRow.Text = "Remove"; this.btnRemoveRow.UseVisualStyleBackColor = true; this.btnRemoveRow.Click += new EventHandler(this.btnRemoveRow_Click); this.btnAdd.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.btnAdd.AutoSize = true; this.btnAdd.FlatAppearance.BorderColor = Color.Gray; this.btnAdd.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnAdd.FlatAppearance.MouseOverBackColor = Color.Teal; this.btnAdd.FlatStyle = FlatStyle.Flat; this.btnAdd.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 222); this.btnAdd.Location = new Point(221, 6); this.btnAdd.Margin = new Padding(3, 4, 3, 4); this.btnAdd.Name = "btnAdd"; this.btnAdd.Size = new Size(75, 30); this.btnAdd.TabIndex = 3; this.btnAdd.Text = "Save"; this.btnAdd.UseVisualStyleBackColor = true; this.btnAdd.Click += new EventHandler(this.btnAdd_Click); this.label1.AutoSize = true; this.label1.Font = new Font("Tahoma", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 222); this.label1.Location = new Point(28, 69); this.label1.Name = "label1"; this.label1.Size = new Size(33, 16); this.label1.TabIndex = 39; this.label1.Text = "Side"; this.lbLoading.AutoSize = true; this.lbLoading.BackColor = Color.FromArgb(64, 64, 64); this.lbLoading.BorderStyle = BorderStyle.FixedSingle; this.lbLoading.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 222); this.lbLoading.ForeColor = Color.Yellow; this.lbLoading.Location = new Point(148, 209); this.lbLoading.Name = "lbLoading"; this.lbLoading.Padding = new Padding(5, 4, 5, 4); this.lbLoading.Size = new Size(73, 25); this.lbLoading.TabIndex = 84; this.lbLoading.Text = "Loading..."; this.lbLoading.TextAlign = ContentAlignment.MiddleCenter; this.lbLoading.Visible = false; this.panel2.Controls.Add(this.label3); this.panel2.Controls.Add(this.label2); this.panel2.Controls.Add(this.cbSide); this.panel2.Controls.Add(this.lbMessage); this.panel2.Controls.Add(this.btnAdd); this.panel2.Controls.Add(this.label1); this.panel2.Controls.Add(this.lbPrice); this.panel2.Controls.Add(this.btnRemoveRow); this.panel2.Controls.Add(this.tbVolume); this.panel2.Controls.Add(this.tbStock); this.panel2.Controls.Add(this.lbQuantity); this.panel2.Controls.Add(this.tbPrice); this.panel2.Controls.Add(this.lbStock); this.panel2.Dock = DockStyle.Bottom; this.panel2.Location = new Point(3, 159); this.panel2.Margin = new Padding(3, 4, 3, 4); this.panel2.Name = "panel2"; this.panel2.Size = new Size(394, 150); this.panel2.TabIndex = 88; this.label3.AutoSize = true; this.label3.Location = new Point(3, 96); this.label3.Name = "label3"; this.label3.Size = new Size(300, 16); this.label3.TabIndex = 42; this.label3.Text = "* เตือนเมื่อซื้อ 'เกิน' ราคา , ขาย 'ต่ำ' กว่าราคาที่กำหนด"; this.label2.AutoSize = true; this.label2.Location = new Point(3, 40); this.label2.Name = "label2"; this.label2.Size = new Size(242, 16); this.label2.TabIndex = 41; this.label2.Text = "* เตือนเมื่อซื้อ/ขาย เกินกว่าปริมาณที่กำหนด"; this.cbSide.DropDownStyle = ComboBoxStyle.DropDownList; this.cbSide.Font = new Font("Tahoma", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 222); this.cbSide.FormattingEnabled = true; this.cbSide.Items.AddRange(new object[] { "", "BUY", "SELL" }); this.cbSide.Location = new Point(71, 65); this.cbSide.Margin = new Padding(3, 4, 3, 4); this.cbSide.Name = "cbSide"; this.cbSide.Size = new Size(95, 24); this.cbSide.TabIndex = 40; this.cbSide.SelectedIndexChanged += new EventHandler(this.cbSide_SelectedIndexChanged); this.cbSide.Leave += new EventHandler(this.controlOrder_Leave); this.cbSide.Enter += new EventHandler(this.controlOrder_Enter); this.cbSide.KeyDown += new KeyEventHandler(this.cbSide_KeyDown); this.lbMessage.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 222); this.lbMessage.ForeColor = Color.Red; this.lbMessage.Location = new Point(158, 121); this.lbMessage.Name = "lbMessage"; this.lbMessage.Padding = new Padding(2, 1, 0, 1); this.lbMessage.Size = new Size(183, 22); this.lbMessage.TabIndex = 38; this.lbMessage.Text = "Warning or Error Message."; this.lbMessage.TextAlign = ContentAlignment.MiddleRight; this.gbPolicy.BackColor = Color.BlanchedAlmond; this.gbPolicy.Controls.Add(this.btnRiskMax); this.gbPolicy.Controls.Add(this.btnRiskMedium); this.gbPolicy.Controls.Add(this.btnRiskMin); this.gbPolicy.Controls.Add(this.tbSectorLimitValue); this.gbPolicy.Controls.Add(this.chbSectorLimit); this.gbPolicy.Controls.Add(this.tbAvg5Volume); this.gbPolicy.Controls.Add(this.chbAvg5Volume); this.gbPolicy.Controls.Add(this.tbStocksInSector); this.gbPolicy.Controls.Add(this.lbRiskLevel); this.gbPolicy.Controls.Add(this.tbChgLimitValue); this.gbPolicy.Controls.Add(this.chbChgLimit); this.gbPolicy.Controls.Add(this.tbValueLimitValue); this.gbPolicy.Controls.Add(this.chbValueLimit); this.gbPolicy.Controls.Add(this.chbStocksInSector); this.gbPolicy.Font = new Font("Tahoma", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 222); this.gbPolicy.Location = new Point(3, 36); this.gbPolicy.Margin = new Padding(3, 4, 3, 4); this.gbPolicy.Name = "gbPolicy"; this.gbPolicy.Padding = new Padding(3, 4, 3, 4); this.gbPolicy.Size = new Size(445, 313); this.gbPolicy.TabIndex = 89; this.gbPolicy.TabStop = false; this.gbPolicy.Text = "นโยบายควบคุมทั่วไป (General control policy.)"; this.btnRiskMax.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.btnRiskMax.AutoSize = true; this.btnRiskMax.FlatAppearance.BorderColor = Color.Gray; this.btnRiskMax.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnRiskMax.FlatAppearance.MouseOverBackColor = Color.PaleTurquoise; this.btnRiskMax.FlatStyle = FlatStyle.Flat; this.btnRiskMax.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 222); this.btnRiskMax.Location = new Point(354, 271); this.btnRiskMax.Name = "btnRiskMax"; this.btnRiskMax.Size = new Size(59, 30); this.btnRiskMax.TabIndex = 94; this.btnRiskMax.Text = "สูง"; this.btnRiskMax.UseVisualStyleBackColor = true; this.btnRiskMax.Click += new EventHandler(this.btnRiskMax_Click); this.btnRiskMedium.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.btnRiskMedium.AutoSize = true; this.btnRiskMedium.FlatAppearance.BorderColor = Color.Gray; this.btnRiskMedium.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnRiskMedium.FlatAppearance.MouseOverBackColor = Color.PaleTurquoise; this.btnRiskMedium.FlatStyle = FlatStyle.Flat; this.btnRiskMedium.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 222); this.btnRiskMedium.Location = new Point(281, 271); this.btnRiskMedium.Name = "btnRiskMedium"; this.btnRiskMedium.Size = new Size(71, 30); this.btnRiskMedium.TabIndex = 93; this.btnRiskMedium.Text = "ปานกลาง"; this.btnRiskMedium.UseVisualStyleBackColor = true; this.btnRiskMedium.Click += new EventHandler(this.btnRiskMedium_Click); this.btnRiskMin.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.btnRiskMin.AutoSize = true; this.btnRiskMin.FlatAppearance.BorderColor = Color.Gray; this.btnRiskMin.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnRiskMin.FlatAppearance.MouseOverBackColor = Color.PaleTurquoise; this.btnRiskMin.FlatStyle = FlatStyle.Flat; this.btnRiskMin.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 222); this.btnRiskMin.Location = new Point(220, 271); this.btnRiskMin.Name = "btnRiskMin"; this.btnRiskMin.Size = new Size(59, 30); this.btnRiskMin.TabIndex = 92; this.btnRiskMin.Text = "ต่ำ"; this.btnRiskMin.UseVisualStyleBackColor = true; this.btnRiskMin.Click += new EventHandler(this.btnRiskMin_Click); this.tbSectorLimitValue.BackColor = Color.White; this.tbSectorLimitValue.BorderStyle = BorderStyle.FixedSingle; this.tbSectorLimitValue.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 222); this.tbSectorLimitValue.Location = new Point(181, 181); this.tbSectorLimitValue.Margin = new Padding(3, 4, 3, 4); this.tbSectorLimitValue.MaxLength = 2; this.tbSectorLimitValue.Name = "tbSectorLimitValue"; this.tbSectorLimitValue.Size = new Size(33, 21); this.tbSectorLimitValue.TabIndex = 3; this.tbSectorLimitValue.TextAlign = HorizontalAlignment.Center; this.tbSectorLimitValue.Leave += new EventHandler(this.controlOrder_Leave); this.tbSectorLimitValue.Enter += new EventHandler(this.controlOrder_Enter); this.chbSectorLimit.AutoSize = true; this.chbSectorLimit.Font = new Font("Tahoma", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.chbSectorLimit.Location = new Point(3, 183); this.chbSectorLimit.Margin = new Padding(3, 4, 3, 4); this.chbSectorLimit.Name = "chbSectorLimit"; this.chbSectorLimit.Size = new Size(261, 20); this.chbSectorLimit.TabIndex = 14; this.chbSectorLimit.Text = "กำหนดต้องซื้อหุ้นให้มากกว่า Sector"; this.chbSectorLimit.UseVisualStyleBackColor = true; this.tbAvg5Volume.BackColor = Color.White; this.tbAvg5Volume.BorderStyle = BorderStyle.FixedSingle; this.tbAvg5Volume.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 222); this.tbAvg5Volume.Location = new Point(181, 123); this.tbAvg5Volume.Margin = new Padding(3, 4, 3, 4); this.tbAvg5Volume.MaxLength = 2; this.tbAvg5Volume.Name = "tbAvg5Volume"; this.tbAvg5Volume.Size = new Size(33, 21); this.tbAvg5Volume.TabIndex = 13; this.tbAvg5Volume.TextAlign = HorizontalAlignment.Center; this.tbAvg5Volume.Leave += new EventHandler(this.controlOrder_Leave); this.tbAvg5Volume.Enter += new EventHandler(this.controlOrder_Enter); this.chbAvg5Volume.AutoSize = true; this.chbAvg5Volume.Font = new Font("Tahoma", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.chbAvg5Volume.Location = new Point(3, 128); this.chbAvg5Volume.Margin = new Padding(3, 4, 3, 4); this.chbAvg5Volume.Name = "chbAvg5Volume"; this.chbAvg5Volume.Size = new Size(253, 36); this.chbAvg5Volume.TabIndex = 12; this.chbAvg5Volume.Text = "จำนวนหุ้นที่ลงทุนไม่ควรเกิน % \r\nเทียบกับปริมาณซื้อขายเฉลี่ย 5 วันก่อนหน้า"; this.chbAvg5Volume.UseVisualStyleBackColor = true; this.tbStocksInSector.BackColor = Color.White; this.tbStocksInSector.BorderStyle = BorderStyle.FixedSingle; this.tbStocksInSector.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 222); this.tbStocksInSector.Location = new Point(268, 219); this.tbStocksInSector.Margin = new Padding(3, 4, 3, 4); this.tbStocksInSector.MaxLength = 2; this.tbStocksInSector.Name = "tbStocksInSector"; this.tbStocksInSector.Size = new Size(33, 21); this.tbStocksInSector.TabIndex = 11; this.tbStocksInSector.TextAlign = HorizontalAlignment.Center; this.tbStocksInSector.Leave += new EventHandler(this.controlOrder_Leave); this.tbStocksInSector.Enter += new EventHandler(this.controlOrder_Enter); this.lbRiskLevel.AutoSize = true; this.lbRiskLevel.Font = new Font("Tahoma", 9.75f, FontStyle.Underline, GraphicsUnit.Point, 222); this.lbRiskLevel.ForeColor = Color.FromArgb(192, 0, 0); this.lbRiskLevel.Location = new Point(10, 273); this.lbRiskLevel.Name = "lbRiskLevel"; this.lbRiskLevel.Size = new Size(160, 16); this.lbRiskLevel.TabIndex = 6; this.lbRiskLevel.Text = "ค่าแนะนำ *ระดับความเสี่ยง*"; this.tbChgLimitValue.BackColor = Color.White; this.tbChgLimitValue.BorderStyle = BorderStyle.FixedSingle; this.tbChgLimitValue.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 222); this.tbChgLimitValue.Location = new Point(289, 86); this.tbChgLimitValue.Margin = new Padding(3, 4, 3, 4); this.tbChgLimitValue.MaxLength = 2; this.tbChgLimitValue.Name = "tbChgLimitValue"; this.tbChgLimitValue.Size = new Size(32, 21); this.tbChgLimitValue.TabIndex = 5; this.tbChgLimitValue.TextAlign = HorizontalAlignment.Center; this.tbChgLimitValue.Leave += new EventHandler(this.controlOrder_Leave); this.tbChgLimitValue.Enter += new EventHandler(this.controlOrder_Enter); this.chbChgLimit.AutoSize = true; this.chbChgLimit.Font = new Font("Tahoma", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.chbChgLimit.Location = new Point(3, 88); this.chbChgLimit.Margin = new Padding(3, 4, 3, 4); this.chbChgLimit.Name = "chbChgLimit"; this.chbChgLimit.Size = new Size(346, 20); this.chbChgLimit.TabIndex = 4; this.chbChgLimit.Text = "กำหนดห้ามซื้อหุ้นที่ราคาบวก(Change Price) เกิน %"; this.chbChgLimit.UseVisualStyleBackColor = true; this.tbValueLimitValue.BackColor = Color.White; this.tbValueLimitValue.BorderStyle = BorderStyle.FixedSingle; this.tbValueLimitValue.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 222); this.tbValueLimitValue.Location = new Point(243, 38); this.tbValueLimitValue.Margin = new Padding(3, 4, 3, 4); this.tbValueLimitValue.MaxLength = 2; this.tbValueLimitValue.Name = "tbValueLimitValue"; this.tbValueLimitValue.Size = new Size(33, 21); this.tbValueLimitValue.TabIndex = 1; this.tbValueLimitValue.TextAlign = HorizontalAlignment.Center; this.tbValueLimitValue.Leave += new EventHandler(this.controlOrder_Leave); this.tbValueLimitValue.Enter += new EventHandler(this.controlOrder_Enter); this.chbValueLimit.Font = new Font("Tahoma", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.chbValueLimit.Location = new Point(3, 40); this.chbValueLimit.Margin = new Padding(3, 4, 3, 4); this.chbValueLimit.Name = "chbValueLimit"; this.chbValueLimit.Size = new Size(409, 30); this.chbValueLimit.TabIndex = 0; this.chbValueLimit.Text = "กำหนดเงินลงทุนไม่ให้ซื้อหุ้นแต่ละตัวเกิน % \r\nของวงเงินเริ่มต้น"; this.chbValueLimit.UseVisualStyleBackColor = true; this.chbStocksInSector.AutoSize = true; this.chbStocksInSector.Font = new Font("Tahoma", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0); this.chbStocksInSector.Location = new Point(3, 222); this.chbStocksInSector.Margin = new Padding(3, 4, 3, 4); this.chbStocksInSector.Name = "chbStocksInSector"; this.chbStocksInSector.Size = new Size(329, 20); this.chbStocksInSector.TabIndex = 15; this.chbStocksInSector.Text = "กำหนดต้องซื้อหุ้นใน Sector เดียวกันมากกว่า ตัว"; this.chbStocksInSector.UseVisualStyleBackColor = true; this.gbStockThreshold.BackColor = Color.PowderBlue; this.gbStockThreshold.Controls.Add(this.intza); this.gbStockThreshold.Controls.Add(this.panel2); this.gbStockThreshold.Font = new Font("Tahoma", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 222); this.gbStockThreshold.Location = new Point(451, 36); this.gbStockThreshold.Margin = new Padding(3, 4, 3, 4); this.gbStockThreshold.Name = "gbStockThreshold"; this.gbStockThreshold.Padding = new Padding(3, 4, 3, 4); this.gbStockThreshold.Size = new Size(400, 313); this.gbStockThreshold.TabIndex = 90; this.gbStockThreshold.TabStop = false; this.gbStockThreshold.Text = "นโยบายควบคุมรายหุ้น (Stock control policy.)"; this.intza.AllowDrop = true; this.intza.BackColor = Color.FromArgb(20, 20, 20); this.intza.CanBlink = true; this.intza.CanDrag = false; this.intza.CanGetMouseMove = false; columnItem.Alignment = StringAlignment.Center; columnItem.BackColor = Color.FromArgb(64, 64, 64); columnItem.ColumnAlignment = StringAlignment.Center; columnItem.FontColor = Color.LightGray; columnItem.MyStyle = FontStyle.Regular; columnItem.Name = "no"; columnItem.Text = "#"; columnItem.ValueFormat = FormatType.RecordNumber; columnItem.Visible = true; columnItem.Width = 10; columnItem2.Alignment = StringAlignment.Center; columnItem2.BackColor = Color.FromArgb(64, 64, 64); columnItem2.ColumnAlignment = StringAlignment.Center; columnItem2.FontColor = Color.LightGray; columnItem2.MyStyle = FontStyle.Regular; columnItem2.Name = "side"; columnItem2.Text = "Side"; columnItem2.ValueFormat = FormatType.Text; columnItem2.Visible = true; columnItem2.Width = 14; columnItem3.Alignment = StringAlignment.Near; columnItem3.BackColor = Color.FromArgb(64, 64, 64); columnItem3.ColumnAlignment = StringAlignment.Center; columnItem3.FontColor = Color.LightGray; columnItem3.MyStyle = FontStyle.Regular; columnItem3.Name = "stock"; columnItem3.Text = "Stock"; columnItem3.ValueFormat = FormatType.Text; columnItem3.Visible = true; columnItem3.Width = 22; columnItem4.Alignment = StringAlignment.Far; columnItem4.BackColor = Color.FromArgb(64, 64, 64); columnItem4.ColumnAlignment = StringAlignment.Center; columnItem4.FontColor = Color.LightGray; columnItem4.MyStyle = FontStyle.Regular; columnItem4.Name = "volume"; columnItem4.Text = "Volume"; columnItem4.ValueFormat = FormatType.Volume; columnItem4.Visible = true; columnItem4.Width = 30; columnItem5.Alignment = StringAlignment.Far; columnItem5.BackColor = Color.FromArgb(64, 64, 64); columnItem5.ColumnAlignment = StringAlignment.Center; columnItem5.FontColor = Color.LightGray; columnItem5.MyStyle = FontStyle.Regular; columnItem5.Name = "price"; columnItem5.Text = "Price"; columnItem5.ValueFormat = FormatType.Price; columnItem5.Visible = true; columnItem5.Width = 24; this.intza.Columns.Add(columnItem); this.intza.Columns.Add(columnItem2); this.intza.Columns.Add(columnItem3); this.intza.Columns.Add(columnItem4); this.intza.Columns.Add(columnItem5); this.intza.CurrentScroll = 0; this.intza.Cursor = Cursors.Hand; this.intza.Dock = DockStyle.Fill; this.intza.FocusItemIndex = -1; this.intza.ForeColor = Color.Black; this.intza.GridColor = Color.FromArgb(45, 45, 45); this.intza.HeaderPctHeight = 80f; this.intza.IsAutoRepaint = true; this.intza.IsDrawFullRow = false; this.intza.IsDrawGrid = true; this.intza.IsDrawHeader = true; this.intza.IsScrollable = true; this.intza.Location = new Point(3, 20); this.intza.MainColumn = ""; this.intza.Margin = new Padding(3, 4, 3, 4); this.intza.Name = "intza"; this.intza.Rows = 0; this.intza.RowSelectColor = Color.FromArgb(0, 0, 128); this.intza.RowSelectType = 3; this.intza.RowsVisible = 0; this.intza.Size = new Size(394, 139); this.intza.SortColumnName = ""; this.intza.SortType = SortType.Desc; this.intza.TabIndex = 87; this.intza.TableMouseClick += new SortGrid.TableMouseClickEventHandler(this.intzaTableGrid1_TableMouseClick); this.btnUpdate.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.btnUpdate.AutoSize = true; this.btnUpdate.FlatAppearance.BorderColor = Color.Gray; this.btnUpdate.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnUpdate.FlatAppearance.MouseOverBackColor = Color.Teal; this.btnUpdate.FlatStyle = FlatStyle.Flat; this.btnUpdate.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 222); this.btnUpdate.Location = new Point(691, 356); this.btnUpdate.Margin = new Padding(3, 4, 3, 4); this.btnUpdate.Name = "btnUpdate"; this.btnUpdate.Size = new Size(75, 30); this.btnUpdate.TabIndex = 91; this.btnUpdate.Text = "Confirm"; this.btnUpdate.UseVisualStyleBackColor = true; this.btnUpdate.Click += new EventHandler(this.btnUpdate_Click); this.btnCancel.Anchor = (AnchorStyles.Top | AnchorStyles.Right); this.btnCancel.AutoSize = true; this.btnCancel.FlatAppearance.BorderColor = Color.Gray; this.btnCancel.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 128, 0); this.btnCancel.FlatAppearance.MouseOverBackColor = Color.Teal; this.btnCancel.FlatStyle = FlatStyle.Flat; this.btnCancel.Font = new Font("Microsoft Sans Serif", 9f, FontStyle.Regular, GraphicsUnit.Point, 222); this.btnCancel.Location = new Point(772, 355); this.btnCancel.Margin = new Padding(3, 4, 3, 4); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new Size(75, 30); this.btnCancel.TabIndex = 92; this.btnCancel.Text = "Cancel"; this.btnCancel.UseVisualStyleBackColor = true; this.btnCancel.Click += new EventHandler(this.btnCancel_Click); this.chbOpen.AutoSize = true; this.chbOpen.BackColor = SystemColors.ControlLight; this.chbOpen.Location = new Point(11, 6); this.chbOpen.Name = "chbOpen"; this.chbOpen.Padding = new Padding(3, 1, 1, 1); this.chbOpen.Size = new Size(157, 22); this.chbOpen.TabIndex = 93; this.chbOpen.Text = "เปิดการใช้งาน (Enable)"; this.chbOpen.UseVisualStyleBackColor = false; base.AutoScaleDimensions = new SizeF(7f, 16f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(854, 391); base.ControlBox = false; base.Controls.Add(this.chbOpen); base.Controls.Add(this.btnCancel); base.Controls.Add(this.btnUpdate); base.Controls.Add(this.gbStockThreshold); base.Controls.Add(this.gbPolicy); base.Controls.Add(this.lbLoading); this.Font = new Font("Tahoma", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 222); base.Margin = new Padding(3, 5, 3, 5); base.MaximizeBox = false; base.Name = "frmRiskControl"; base.StartPosition = FormStartPosition.CenterParent; this.Text = "Risk Control Tools. / เครื่องมือควบคุมความเสี่ยง"; base.Shown += new EventHandler(this.frmStockThreshold_Shown); base.FormClosing += new FormClosingEventHandler(this.frmStockThreshold_FormClosing); this.panel2.ResumeLayout(false); this.panel2.PerformLayout(); this.gbPolicy.ResumeLayout(false); this.gbPolicy.PerformLayout(); this.gbStockThreshold.ResumeLayout(false); base.ResumeLayout(false); base.PerformLayout(); }
private void OnClickMoveColumnUp(object source, EventArgs e) { if (this.propChangesPending) { this.SaveColumnProperties(); } int index = this.currentColumnItem.Index; ListViewItem item = this.selColumnsList.Items[index]; this.selColumnsList.Items.RemoveAt(index); this.selColumnsList.Items.Insert(index - 1, item); this.currentColumnItem = (ColumnItem) this.selColumnsList.Items[index - 1]; this.currentColumnItem.Selected = true; this.currentColumnItem.EnsureVisible(); this.SetDirty(); this.UpdateEnabledVisibleState(); }
public void MakePlotMonthly([JetBrains.Annotations.NotNull] ResultFileEntry rfe, [JetBrains.Annotations.NotNull] string plotName, [JetBrains.Annotations.NotNull] DirectoryInfo basisPath) { Profiler.StartPart(Utili.GetCurrentMethodAndClass()); var consumption = new List <Tuple <string, List <double> > >(); var months = 0; double totalSum = 0; if (rfe.FullFileName == null) { throw new LPGException("filename was null"); } using (var sr = new StreamReader(rfe.FullFileName)) { sr.ReadLine(); // header while (!sr.EndOfStream) { var s = sr.ReadLine(); if (s == null) { throw new LPGException("Readline failed."); } if (!s.StartsWith("Sums;", StringComparison.Ordinal)) { var cols = s.Split(Parameters.CSVCharacterArr, StringSplitOptions.None); var l = new List <double>(); for (var i = 1; i < cols.Length; i++) { if (cols[i].Length > 0) { var d = Convert.ToDouble(cols[i], CultureInfo.CurrentCulture); totalSum += d; l.Add(d); } } consumption.Add(new Tuple <string, List <double> >(cols[0], l)); if (l.Count > months) { months = l.Count; } } } } if (consumption.Count == 0) { return; } var plotModel1 = new PlotModel { // general LegendBorderThickness = 0, LegendOrientation = LegendOrientation.Horizontal, LegendPlacement = LegendPlacement.Outside, LegendPosition = LegendPosition.BottomCenter, Title = plotName }; // axes var categoryAxis1 = new CategoryAxis { MinorStep = 1 }; var colSums = new Dictionary <int, double>(); for (var i = 0; i < months; i++) { categoryAxis1.Labels.Add("Month " + (i + 1)); colSums.Add(i, 0); } plotModel1.Axes.Add(categoryAxis1); var linearAxis1 = new LinearAxis { AbsoluteMinimum = 0, MaximumPadding = 0.06, MinimumPadding = 0 }; plotModel1.Axes.Add(linearAxis1); // generate plot var p = OxyPalettes.Hue64; if (consumption.Count > 1) { p = OxyPalettes.HueDistinct(consumption.Count); } var series = 0; foreach (var pair in consumption) { // main columns var columnSeries2 = new ColumnSeries { IsStacked = true, StackGroup = "1", StrokeThickness = 1, Title = pair.Item1, LabelPlacement = LabelPlacement.Middle, FillColor = p.Colors[series++] }; var col = 0; foreach (var d in pair.Item2) { var ci = new ColumnItem(d); columnSeries2.Items.Add(ci); colSums[col] += d; if (d / totalSum > 0.025) { var textAnnotation1 = new TextAnnotation(); var shortendName = pair.Item1; if (shortendName.Length > 15) { shortendName = shortendName.Substring(0, 15) + "..."; } textAnnotation1.Text = shortendName + Environment.NewLine + d; textAnnotation1.TextPosition = new DataPoint(col + 0.3, colSums[col] - d / 2); textAnnotation1.TextHorizontalAlignment = HorizontalAlignment.Left; textAnnotation1.TextVerticalAlignment = VerticalAlignment.Middle; plotModel1.Annotations.Add(textAnnotation1); } col++; } plotModel1.Series.Add(columnSeries2); } Save(plotModel1, plotName, rfe.FullFileName, basisPath, CalcOption.TotalsPerDevice); Profiler.StopPart(Utili.GetCurrentMethodAndClass()); }
private void OnSelIndexChangedSelColumnsList(object source, EventArgs e) { if (this.propChangesPending) { this.SaveColumnProperties(); } if (this.selColumnsList.SelectedItems.Count == 0) { this.currentColumnItem = null; } else { this.currentColumnItem = (ColumnItem) this.selColumnsList.SelectedItems[0]; } this.LoadColumnProperties(); this.UpdateEnabledVisibleState(); }
private async Task CreatePlotModel() { var results = await GetDataForSeries(); var names = results.Keys.ToArray(); string title; if (isHumidity) { if (cbDaily.Checked) { title = "Wartoœci œrednie dzienne wilgotnoœci"; } else if (cbMonthly.Checked) { title = "Wartoœci œrednie miesiêczne wilgotnoœci"; } else { title = "Wartoœci œrednie roczne wilgotnoœci"; } } else { if (cbDaily.Checked) { title = "Wartoœci œrednie dzienne temperatury"; } else if (cbMonthly.Checked) { title = "Wartoœci œrednie miesiêczne temperatury"; } else { title = "Wartoœci œrednie roczne temperatury"; } } var model = new PlotModel { Title = title }; // A ColumnSeries requires a CategoryAxis on the x-axis. model.Axes.Add(new CategoryAxis { ItemsSource = names }); var series = new ColumnSeries(); foreach (var value in results.Values) { ColumnItem item; if (isHumidity) { if (value > room.MaxHumidity) { item = new ColumnItem(value); item.Color = OxyColor.FromRgb(255, 0, 0); } else if (value < room.MinHumidity) { item = new ColumnItem(value); item.Color = OxyColor.FromRgb(0, 0, 255); } else if (value > room.ExpectedHumidity + 2 && value < room.MaxHumidity) { item = new ColumnItem(value); item.Color = OxyColor.FromRgb(200, 70, 10); } else if (value < room.ExpectedHumidity - 2 && value > room.MinHumidity) { item = new ColumnItem(value); item.Color = OxyColor.FromRgb(40, 70, 120); } else { item = new ColumnItem(value); item.Color = OxyColor.FromRgb(0, 255, 0); } series.LabelFormatString = "{0:.0}%"; } else { if (value > room.MaxTemperature) { item = new ColumnItem(value); item.Color = OxyColor.FromRgb(255, 0, 0); } else if (value < room.MinTemperature) { item = new ColumnItem(value); item.Color = OxyColor.FromRgb(0, 0, 255); } else if (value > room.ExpectedTemperature + 1 && value < room.MaxTemperature) { item = new ColumnItem(value); item.Color = OxyColor.FromRgb(200, 70, 10); } else if (value < room.ExpectedTemperature - 1 && value > room.MinTemperature) { item = new ColumnItem(value); item.Color = OxyColor.FromRgb(40, 70, 120); } else { item = new ColumnItem(value); item.Color = OxyColor.FromRgb(0, 255, 0); } series.LabelFormatString = "{0:.0}°C"; } series.LabelPlacement = LabelPlacement.Inside; series.Items.Add(item); } model.Series.Add(series); plotView.Model = model; }