public QuoteMonitorWindow() { this.InitializeComponent(); this.instruments = new HashSet <Instrument>(); this.quoteRows = new Dictionary <IFIXInstrument, QuoteViewRow>(); this.barRows = new Dictionary <IFIXInstrument, BarViewRow>(); this.eventQueue = new MarketDataEventQueue(); this.eventQueueWaitHandle = new ManualResetEvent(false); this.lockObject = new object(); this.AllowDrop = true; this.chart.Pads[0].MarginRight = 27; this.chart.Pads[0].MarginBottom = 0; this.chart.Pads[0].XGridDashStyle = DashStyle.Dot; this.chart.Pads[0].YGridDashStyle = DashStyle.Dot; this.chart.Pads[0].XAxisType = EAxisType.DateTime; this.chart.Pads[0].XAxisTitleEnabled = false; this.chart.Pads[0].XAxisLabelEnabled = false; this.chart.Pads[0].YAxisTitleEnabled = false; this.chart.Pads[0].YAxisLabelEnabled = false; this.chart.Pads[0].LegendEnabled = false; this.chart.Pads[0].LegendPosition = ELegendPosition.TopLeft; this.chart.Pads[0].LegendBackColor = Color.White; this.chart.Pads[0].BorderEnabled = false; this.chart.Pads[0].BackColor = Color.FromKnownColor(KnownColor.Control); this.chart.Pads[0].AxisBottom.Type = EAxisType.DateTime; this.chart.Pads[0].AxisBottom.Zoomed = true; this.chart.Pads[0].AxisBottom.GridDashStyle = DashStyle.Dot; this.chart.Pads[0].AxisBottom.TitleEnabled = true; this.chart.Pads[0].AxisBottom.LabelEnabled = true; this.chart.Pads[0].AxisTop.Zoomed = true; this.chart.Pads[0].AxisLeft.Zoomed = true; this.chart.Pads[0].AxisLeft.GridDashStyle = DashStyle.Dot; this.chart.Pads[0].AxisLeft.TitleEnabled = false; this.chart.Pads[0].AxisLeft.LabelEnabled = false; this.chart.Pads[0].AxisRight.Zoomed = true; this.chart.Pads[0].AxisRight.LabelEnabled = true; this.chart.Pads[0].AxisRight.LabelFormat = "F2"; this.chart.Pads[0].Title.Text = "Double click on symbol to view the chart"; this.instrumentPad = new InstrumentPad(this.chart.Pads[0]); this.instrumentPad.Instrument = (Instrument)null; this.SendOrdersEnabled = false; }
public QuoteMonitorWindow() { this.InitializeComponent(); this.instruments = new HashSet<Instrument>(); this.quoteRows = new Dictionary<IFIXInstrument, QuoteViewRow>(); this.barRows = new Dictionary<IFIXInstrument, BarViewRow>(); this.eventQueue = new MarketDataEventQueue(); this.eventQueueWaitHandle = new ManualResetEvent(false); this.lockObject = new object(); this.AllowDrop = true; this.chart.Pads[0].MarginRight = 27; this.chart.Pads[0].MarginBottom = 0; this.chart.Pads[0].XGridDashStyle = DashStyle.Dot; this.chart.Pads[0].YGridDashStyle = DashStyle.Dot; this.chart.Pads[0].XAxisType = EAxisType.DateTime; this.chart.Pads[0].XAxisTitleEnabled = false; this.chart.Pads[0].XAxisLabelEnabled = false; this.chart.Pads[0].YAxisTitleEnabled = false; this.chart.Pads[0].YAxisLabelEnabled = false; this.chart.Pads[0].LegendEnabled = false; this.chart.Pads[0].LegendPosition = ELegendPosition.TopLeft; this.chart.Pads[0].LegendBackColor = Color.White; this.chart.Pads[0].BorderEnabled = false; this.chart.Pads[0].BackColor = Color.FromKnownColor(KnownColor.Control); this.chart.Pads[0].AxisBottom.Type = EAxisType.DateTime; this.chart.Pads[0].AxisBottom.Zoomed = true; this.chart.Pads[0].AxisBottom.GridDashStyle = DashStyle.Dot; this.chart.Pads[0].AxisBottom.TitleEnabled = true; this.chart.Pads[0].AxisBottom.LabelEnabled = true; this.chart.Pads[0].AxisTop.Zoomed = true; this.chart.Pads[0].AxisLeft.Zoomed = true; this.chart.Pads[0].AxisLeft.GridDashStyle = DashStyle.Dot; this.chart.Pads[0].AxisLeft.TitleEnabled = false; this.chart.Pads[0].AxisLeft.LabelEnabled = false; this.chart.Pads[0].AxisRight.Zoomed = true; this.chart.Pads[0].AxisRight.LabelEnabled = true; this.chart.Pads[0].AxisRight.LabelFormat = "F2"; this.chart.Pads[0].Title.Text = "Double click on symbol to view the chart"; this.instrumentPad = new InstrumentPad(this.chart.Pads[0]); this.instrumentPad.Instrument = (Instrument)null; this.SendOrdersEnabled = false; }