public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { //ParentForm.Font = PreferenceManager.GetFormFont(ParentForm); //listView.Font = ParentForm.Font; //toolStrip.Font = ParentForm.Font; Size textSize = TextRenderer.MeasureText("O", ParentForm.Font); int listWidth = 0; foreach (ColumnHeader col in listView.ColumnsInDisplayOrder) { col.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); listWidth += col.Width; } column_Name.Width = column_Name.Width + listView.RowHeightEffective; listWidth += listView.RowHeightEffective; //splitContainer.Panel1MinSize = formWidth; tableLayoutPanel.ColumnStyles[0].Width = listWidth + (textSize.Width * 2); setWidget(); } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { //ParentForm.Font = PreferenceManager.GetFormFont(ParentForm); //Font = ParentForm.Font; //toolStrip.Font = ParentForm.Font; toolStrip.ImageScalingSize = PreferenceManager.preferences.IconSize; /* * foreach (ToolStripItem item in toolStrip.Items) * { * if (item.GetType() != typeof(ToolStripSeparator)) * { * //ToolStripButton button = item as ToolStripButton; * //button.Checked = LogManager.getMessageTypeActive(button.Text); * item.Font = ParentForm.Font; * } * } */ //column_Name.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); //Width = column_Name.Width + (listView.RowHeightEffective); } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { try { if (balanceListControl.PreferredWidth > 0) { Visible = false; tableLayoutPanel.ColumnStyles[0].SizeType = SizeType.Absolute; tableLayoutPanel.ColumnStyles[0].Width = balanceListControl.PreferredWidth; tableLayoutPanel.ColumnStyles[1].SizeType = SizeType.Absolute; tableLayoutPanel.ColumnStyles[1].Width = tickerListControl.PreferredWidth; Visible = true; } } catch (Exception ex) { LogManager.AddLogMessage(Name, "ResizeUI", ex.Message, LogManager.LogMessageType.EXCEPTION); } } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { Visible = false; Size textSize = TextRenderer.MeasureText("0.00000000", Font); int rowHeight = listView.RowHeightEffective; int padding = rowHeight / 2; int iconSize = rowHeight; toolStrip.ImageScalingSize = new Size(iconSize, iconSize); int listWidth = 0; foreach (ColumnHeader col in listView.ColumnsInDisplayOrder) { col.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); col.Width = col.Width + padding; listWidth += col.Width; } column_symbol.Width += (iconSize * 2); listWidth += (iconSize * 2); PreferredWidth = listWidth + (iconSize * 2); //LogManager.AddLogMessage(Name, "ResizeUI", "PreferredWidth = " + PreferredWidth); Visible = true; } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { Visible = false; //Font = PreferenceManager.preferences.Font; int iconSize = listView.RowHeightEffective; //listView.Font = Font; foreach (ColumnHeader col in listView.ColumnsInDisplayOrder) { col.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); col.Width = col.Width + listView.RowHeightEffective; //listWidth += col.Width; } //column_exchange.Width = iconSize; //column_market.Width = iconSize; column_rate.Width += iconSize; column_symbol.Width += iconSize; Visible = true; } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { toolStrip.ImageScalingSize = PreferenceManager.preferences.IconSize; toolStrip_status.ImageScalingSize = PreferenceManager.preferences.IconSize; int padding = listView_Forks.RowHeightEffective * 4; foreach (ColumnHeader col in listView_Forks.ColumnsInDisplayOrder) { col.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); col.Width = col.Width + padding; } foreach (ColumnHeader col in listView_Wallets.ColumnsInDisplayOrder) { col.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); col.Width = col.Width + padding; } } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { //ParentForm.Font = PreferenceManager.GetFormFont(ParentForm); //toolStrip.Font = ParentForm.Font; int rowHeight = listView.RowHeightEffective; int iconSize = rowHeight - 2; int padding = rowHeight / 2; toolStrip.ImageScalingSize = new Size(iconSize, iconSize); foreach (ColumnHeader col in listView.ColumnsInDisplayOrder) { col.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); col.Width = col.Width + (padding); } } }
public void ResizeUI() { if (this.InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); this.Invoke(d, new object[] { }); } else { int rowHeight = button_load.Height; //listView.Font = ParentForm.Font; //LogManager.AddLogMessage(Name, "ResizeUI", "RESIZING", LogManager.LogMessageType.DEBUG); int listWidth = 0; int listHeight = 0; foreach (ColumnHeader col in listView.ColumnsInDisplayOrder) { col.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); //col.Width = col.Width + padding; listWidth += col.Width; } if (listView.Items.Count > 0) { var last = listView.Items[listView.Items.Count - 1]; listHeight = listView.Top + last.Bounds.Bottom; //listView.Size = new Size(listWidth + padding, listHeight); } ParentForm.ClientSize = new Size(listWidth, (4 * rowHeight) + listHeight); //column_Name.Width = column_Name.Width + iconSize + 2; //UpdateUI(); } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { InitializeIcons(); //ParentForm.Font = PreferenceManager.GetFormFont(ParentForm); //toolStrip_btc.Font = ParentForm.Font; //toolStrip_usd.Font = ParentForm.Font; //toolStripLabel_symbol.Font = ParentForm.Font; /* * int rowHeight = toolStrip_usd.Height; * * //int listHeight = ExchangeManager.Exchanges.Where(exchange => exchange.Active).Count() * rowHeight; * int listHeight = PreferenceManager.ArbitragePreferences.maxListCount * rowHeight; * * int newHeight = rowHeight + listHeight; * ClientSize = new Size(Width, newHeight); * Size = new Size(Width, newHeight); */ } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { int rowHeight = listView.RowHeightEffective; int formWidth = 0; //int padding = foreach (ColumnHeader col in listView.ColumnsInDisplayOrder) { col.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); col.Width = col.Width + (rowHeight); formWidth += col.Width; } column_market_cap_usd.Width += rowHeight; column_volume.Width += rowHeight; formWidth += (rowHeight * 2); if (Parent.GetType() == typeof(Form)) { ParentForm.Width = formWidth + 50; } } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { Visible = false; int rowHeight = listView.RowHeightEffective; int iconSize = listView.RowHeightEffective + 5; /* * if (column_Symbol.IsVisible) * { * column_Symbol.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); * //column_SymbolIcon.Width = iconSize; * //column_Symbol.Width = column_Symbol.Width + iconSize; * } * else * { * //column_Symbol.Width = 0; * } */ //int formWidth = 0; /* * if (column_SymbolIcon.IsVisible) * { * column_Symbol.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); * //column_SymbolIcon.Width = iconSize; * column_Symbol.Width = column_Symbol.Width + iconSize; * } * else * { * column_Symbol.Width = 0; * } */ if (column_ExchangeIcon.IsVisible) { column_ExchangeIcon.Width = iconSize; } else { //column_Exchange.Width = 0; } column_Balance.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); column_Balance.Width = column_Balance.Width + listView.RowHeightEffective; column_TotalInBTC.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); column_TotalInBTC.Width = column_TotalInBTC.Width + listView.RowHeightEffective; column_TotalInUSD.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); column_TotalInUSD.Width = column_TotalInUSD.Width + listView.RowHeightEffective; Visible = true; } }
public void ResizeUI() { if (this.InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); this.Invoke(d, new object[] { }); } else { ParentForm.ClientSize = tableLayoutPanel.PreferredSize; } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { //LogManager.AddLogMessage(Name, "ResizeUI", "RESIZING", LogManager.LogMessageType.DEBUG); int rowHeight = listView.RowHeightEffective; int padding = rowHeight / 2; /* * Size textSize = TextRenderer.MeasureText("0.00000000", ParentForm.Font); * int rowHeight = listView.RowHeightEffective; * int padding = rowHeight / 2; * int iconSize = rowHeight - 2; * //int listWidth = 0; * int listHeight = 0; * * toolStrip.ImageScalingSize = new Size(iconSize, iconSize); * * column_Symbol.Width = iconSize; * column_TotalInUSD.Width = textSize.Width; * column_TotalInBTC.Width = textSize.Width; * column_Balance.Width = textSize.Width + (textSize.Width / 2); * * listView.Height = listHeight; * ClientSize = new Size(Width, listHeight + (toolStrip.Height * 2) - (listView.RowHeightEffective / 2)); * Size = new Size(Width, listHeight + (toolStrip.Height * 2) - (listView.RowHeightEffective / 2)); */ foreach (ColumnHeader col in listView.ColumnsInDisplayOrder) { col.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); col.Width = col.Width + rowHeight; //listWidth += col.Width; } /* * column_Name.Width = column_Name.Width + iconSize; * listWidth += iconSize; * * if (listView.Items.Count > 0) * { * var last = listView.Items[listView.Items.Count - 3]; * listHeight = listView.Top + last.Bounds.Bottom; * } */ } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { Width = PreferredSize.Width; } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { //Font = PreferenceManager.GetFormFont(ParentForm); //toolStrip.Font = Font; } }
public void ResizeUI() { if (this.InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); this.Invoke(d, new object[] { }); } else { //ParentForm.Font = PreferenceManager.GetFormFont(ParentForm); toolStrip.ImageScalingSize = PreferenceManager.preferences.IconSize; } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { //Font = ParentForm.Font; //listView.Font = ParentForm.Font; } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { //Font = PreferenceManager.GetFormFont(ParentForm); //toolStrip.Font = ParentForm.Font; //PreferenceManager.SetControlTheme(this, PreferenceManager.preferences.Theme); } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { //listView.Font = ParentForm.Font; column_Name.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); Width = column_Name.Width + (listView.RowHeightEffective * 3); } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { //Visible = false; int rowHeight = listView.RowHeightEffective; //int formWidth = 0; if (column_SymbolIcon.IsVisible) { column_SymbolIcon.Width = listView.RowHeightEffective + 5; } if (column_ExchangeIcon.IsVisible) { column_ExchangeIcon.Width = listView.RowHeightEffective + 5; } column_Symbol.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); column_Balance.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); column_Balance.Width = column_Balance.Width + listView.RowHeightEffective; column_TotalInBTC.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); column_TotalInBTC.Width = column_TotalInBTC.Width + listView.RowHeightEffective; column_TotalInUSD.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); column_TotalInUSD.Width = column_TotalInUSD.Width + listView.RowHeightEffective; /* * if (view != BalanceViewType.balance) * { * groups = true; * collapsed = false; * toggleCollapsed(); * } * else * { * groups = false; * } */ //Visible = true; } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { Visible = false; Width = PreferenceManager.ArbitragePreferences.minChartWidth; int rowHeight = toolStrip.Height; int listHeight = 0; if (manager.WatchList.ShowLists) { arbitrageListControl_btc.Visible = true; arbitrageListControl_usd.Visible = true; listHeight = (PreferenceManager.ArbitragePreferences.maxListCount * rowHeight) + (rowHeight * 3) + (rowHeight / 4); } else { arbitrageListControl_btc.Visible = false; arbitrageListControl_usd.Visible = false; } if (manager.WatchList.ShowCharts) { toolStrip.Visible = false; panel.Visible = true; listHeight = listHeight + PreferenceManager.ArbitragePreferences.minChartHeight + (rowHeight / 4); } else { toolStrip.Visible = true; panel.Visible = false; toolStripLabel_symbol.Text = symbol.ToUpper(); toolStripLabel_symbol.Image = ContentManager.GetSymbolIcon(symbol); } ClientSize = new Size(Width, listHeight); Size = new Size(Width, listHeight); Visible = true; } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { /* * ParentForm.Font = PreferenceManager.GetFormFont(ParentForm); * groupBox.Font = ParentForm.Font; * listView.Font = ParentForm.Font; */ column_Name.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); Width = column_Name.Width + (listView.RowHeightEffective); } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { //ParentForm.Font = PreferenceManager.GetFormFont(ParentForm); //Font = ParentForm.Font; //toolStrip.Font = ParentForm.Font; Width = PreferredSize.Width; //column_Name.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); //Width = column_Name.Width + (listView.RowHeightEffective); } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { int rowHeight = listView.RowHeightEffective; int padding = rowHeight / 2; int iconSize = rowHeight - 2; //int listHeight = 0; column_email.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); column_email.Width = column_email.Width + (padding * 3); column_balance.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); column_balance.Width += padding; column_lastIP.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); column_lastIP.Width += padding; /* * foreach (ColumnHeader col in listView.ColumnsInDisplayOrder) * { * //listWidth += col.Width; * } */ toggleView(); /* * if (listView.Items.Count > 0) * { * var last = listView.Items[listView.Items.Count - 1]; * listHeight = listView.Top + last.Bounds.Bottom + (listView.RowHeightEffective / 2); * //LogManager.AddLogMessage(Name, "ResizeUI", listView.Top + " | " + last.Bounds.Bottom + " | " + listHeight); * } * * listView.Height = listHeight; * ClientSize = new Size(Width, listHeight); * Size = new Size(Width, listHeight); */ } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { //ParentForm.Font = PreferenceManager.GetFormFont(ParentForm); //Font = PreferenceManager.preferences.Font; //toolStrip.Font = Font; //listView.Font = Font; /* * Size textSize = TextRenderer.MeasureText("0.00000000", Font); * * int rowHeight = listView.RowHeightEffective; * int iconSize = rowHeight; * * toolStrip.ImageScalingSize = new Size(iconSize, iconSize); * * column_Symbol.Width = textSize.Width; * * column_Balance.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); * * column_Orders.Width = textSize.Width; * column_TotalInBTC.Width = textSize.Width; * column_TotalInUSD.Width = textSize.Width; * * int listWidth = 0; * foreach (ColumnHeader col in listView.ColumnsInDisplayOrder) * { * //col.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); * //col.Width = col.Width + (rowHeight / 2); * listWidth += col.Width; * } * PreferredWidth = listWidth + (iconSize * 2); */ //LogManager.AddLogMessage(Name, "ResizeUI", "PreferredWidth = " + PreferredWidth); } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { Visible = false; foreach (ColumnHeader col in listView.ColumnsInDisplayOrder) { col.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); col.Width = col.Width + (listView.RowHeightEffective); } column_Name.Width = 0; Visible = true; } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { try { Size textSize = TextRenderer.MeasureText("0.00000000", Font); int rowHeight = listView.RowHeightEffective; int iconSize = rowHeight; toolStrip.ImageScalingSize = new Size(iconSize, iconSize); column_Symbol.Width = textSize.Width; column_Balance.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); column_Orders.Width = textSize.Width; column_TotalInBTC.Width = textSize.Width; column_TotalInUSD.Width = textSize.Width; int listWidth = 0; foreach (ColumnHeader col in listView.ColumnsInDisplayOrder) { listWidth += col.Width; } PreferredWidth = listWidth + (iconSize * 2); } catch (Exception ex) { LogManager.AddLogMessage(Name, "ResizeUI", ex.Message, LogManager.LogMessageType.EXCEPTION); } //LogManager.AddLogMessage(Name, "ResizeUI", "PreferredWidth = " + PreferredWidth); } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { //ParentForm.Font = PreferenceManager.GetFormFont(ParentForm); //PreferenceManager.SetControlTheme(this, PreferenceManager.preferences.Theme); tableLayoutPanel.RowStyles[0].SizeType = SizeType.Absolute; tableLayoutPanel.RowStyles[0].Height = 125; tableLayoutPanel.RowStyles[1].SizeType = SizeType.Absolute; tableLayoutPanel.RowStyles[1].Height = 300; ParentForm.Size = new System.Drawing.Size(850, 600); //ParentForm.Size = ParentForm.PreferredSize; } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { //ParentForm.Font = PreferenceManager.GetFormFont(ParentForm); //toolStrip.Font = ParentForm.Font; //toolStrip.ImageScalingSize = PreferenceManager.preferences.IconSize; toolStrip_footer.ImageScalingSize = PreferenceManager.preferences.IconSize; column_symbol.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); column_price.AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent); column_symbol.Width = column_symbol.Width + listView.RowHeightEffective; column_price.Width = column_symbol.Width + listView.RowHeightEffective; } }
public void ResizeUI() { if (InvokeRequired) { ResizeUICallback d = new ResizeUICallback(ResizeUI); Invoke(d, new object[] { }); } else { /* * Visible = false; * //toolStrip.Font = ParentForm.Font = PreferenceManager.GetFormFont(ParentForm); * Width = PreferenceManager.ArbitragePreferences.minChartWidth; * int rowHeight = toolStrip.Height; * int listHeight = PreferenceManager.ArbitragePreferences.maxListCount * rowHeight; * int newHeight = listHeight + (rowHeight * 3) + (rowHeight / 4); * * if (PreferenceManager.ArbitragePreferences.ShowCharts) * { * toolStrip.Visible = false; * panel.Visible = true; * newHeight = newHeight + PreferenceManager.ArbitragePreferences.minChartHeight + (rowHeight / 4); * } * else * { * toolStrip.Visible = true; * panel.Visible = false; * toolStripLabel_symbol.Text = symbol.ToUpper(); * toolStripLabel_symbol.Image = ContentManager.GetSymbolIcon(symbol); * } * * //LogManager.AddLogMessage(Name, "ResizeUI", "tsHeight=" + toolStrip.Height + " | " + listHeight + " | " + newHeight, LogManager.LogMessageType.DEBUG); * ClientSize = new Size(Width, newHeight); * Size = new Size(Width, newHeight); * Visible = true; */ } }