Forex_Strategy_Builder.Actions.AccountShowInMoney_OnClick C# (CSharp) Method

AccountShowInMoney_OnClick() protected method

Whether to express account in pips or in currency
protected AccountShowInMoney_OnClick ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        protected override void AccountShowInMoney_OnClick(object sender, EventArgs e)
        {
            if(((ToolStripMenuItem)sender).Name == "miAccountShowInMoney")
            {
                Configs.AccountInMoney       = true;
                miAccountShowInMoney.Checked = true;
                miAccountShowInPips.Checked  = false;
            }
            else if(((ToolStripMenuItem)sender).Name == "miAccountShowInPips")
            {
                Configs.AccountInMoney       = false;
                miAccountShowInMoney.Checked = false;
                miAccountShowInPips.Checked  = true;
            }

            Calculate(false);

            return;
        }
Actions