/// <summary> /// Set in what format the P&L is displayed /// </summary> private void plDisplayCombo_SelectedIndexChanged(object sender, EventArgs e) { // reset the calculation type m_DisplayType = (PLDisplay)System.Enum.Parse(typeof(PLDisplay), (string)cboPLDisplay.SelectedItem); // re-publish the P&L statistics PublishProfitLossStatistics(); }