public MainForm() { df = new FastDebugForm(); InitializeComponent(); Logging.log("Application started...", LogPrior.Info); chartcont = chartControl; chartcont.ChartAreas[0].AxisX.LabelStyle.Format = "dd.MM HH:mm"; chartcont.ChartAreas[0].AxisY.IsStartedFromZero = false; chartcont.ChartAreas[0].Name = "0"; chartControl.Series.Clear(); Settings.load(); tbTraderDllFilename.Text = Settings.getString(SettKeys.TRADER_DLL_FILE); lHelpCompileDate.Text = RetrieveLinkerTimestamp().ToString(Lib.Const.DATE_TIME_FORMAT); lHelpVersion.Text = MAINVERSION; typeof(DataGridView).InvokeMember("DoubleBuffered", BindingFlags.NonPublic |BindingFlags.Instance | BindingFlags.SetProperty, null,dgvTradeHistory, new object[] { true }); }
private void bMainShowDebug_Click(object sender, EventArgs e) { try { if (df.IsDisposed) df = new FastDebugForm(); df.Show(); df.Focus(); } catch (Exception ex) { Logging.logException("failed at showdebugclick", ex); } }