private void actionCB_DropDownClosed(object sender, EventArgs e) { switch (actionCB.Text) { case "Delete": destDirLBL.Visibility = Visibility.Collapsed; destTB.Visibility = Visibility.Collapsed; destBrowseBTN.Visibility = Visibility.Collapsed; break; default: if (actionCB.Text == "Dropbox Cleanup") { sourceTB.Text = ScanHelper.DefaultDropboxPath(); } destDirLBL.Visibility = Visibility.Visible; destTB.Visibility = Visibility.Visible; destBrowseBTN.Visibility = Visibility.Visible; break; } }