C# Invalid expression term 'bool' WPF : Thank you for taking the time to help. I have been working on a application for our help desk team to push out to end users. I would like for these users to be able to add an attachment by using a browse button and eventually by drag and dropping. I have got the email generating, all fields are pulling correctly but the attachment field. I am getting a Invalid expression term 'bool' in my attachment code. Any help would be appreciated.


    //Attachment button
        private void Attach_Click(object sender, EventArgs e)
        {         
            OpenFileDialog dlg = new OpenFileDialog();

            if (bool(dlg.ShowDialog))     
            {
                string FilePath = dlg.FileName.ToString();
                Attachment1.Text = FilePath;
            }
        }