public void AddProfit(long l_profit) { curProfit += l_profit; coreEngine.SendLogWarningMessage("손익:" + curProfit); if (profit_label.InvokeRequired) { profit_label.Invoke(new MethodInvoker(delegate() { profit_label.Text = string.Format("{0:n0}", curProfit); })); } else { profit_label.Text = string.Format("{0:n0}", curProfit); } gValue.trading_profit = curProfit; setting.Save(gValue); }