/// <summary>
        /// Saving the new configuration
        /// </summary>
        private void saveConfiguration()
        {
            Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait;
            DumpType dtype   = DumpType.File;     //default value
            String   svalue  = String.Empty;      //define the way where the xml will be dropped
            WcfType  binding = WcfType.NamedPipe; //default value

            if (!FileSelected && !MsmqSelected && !WcfSelected)
            {
                Mouse.OverrideCursor = System.Windows.Input.Cursors.Arrow;
                MessageBox.Show(ResourceLogic.GetString(ResourceKeyName.SelectType));
                return;
            }
            //retrieve the current dump layer
            if (FileSelected)
            {
                dtype  = DumpType.File;
                svalue = FolderPath;
                //test if the folder exist
                if (!FileLogic.IsValidPathFolder(svalue))
                {
                    Mouse.OverrideCursor = System.Windows.Input.Cursors.Arrow;
                    MessageBox.Show(ResourceLogic.GetString(ResourceKeyName.ValidFolderPath));
                    return;
                }
            }

            if (MsmqSelected)
            {
                dtype  = DumpType.Msmq;
                svalue = MsmqPath;

                if (!MsmqLayer.IsExist(svalue))
                {
                    Mouse.OverrideCursor = System.Windows.Input.Cursors.Arrow;
                    MessageBox.Show(ResourceLogic.GetString(ResourceKeyName.ValidMsmqPath));
                    return;
                }
            }

            if (WcfSelected)
            {
                dtype  = DumpType.Wcf;
                svalue = WcfUri;

                if (!Enum.TryParse <WcfType>(SelectedBindingType, out binding))
                {
                    Mouse.OverrideCursor = System.Windows.Input.Cursors.Arrow;
                    MessageBox.Show(ResourceLogic.GetString(ResourceKeyName.ValidWcfBinding));
                    return;
                }

                if (String.IsNullOrEmpty(svalue))
                {
                    Mouse.OverrideCursor = System.Windows.Input.Cursors.Arrow;
                    MessageBox.Show(ResourceLogic.GetString(ResourceKeyName.ValidWcfUri));
                    return;
                }
            }

            _editor.updateConfigurationFile(dtype, svalue, binding);
            Mouse.OverrideCursor = System.Windows.Input.Cursors.Arrow;

            if (dtype == DumpType.Wcf)
            {
                MessageBox.Show(String.Format(ResourceLogic.GetString(ResourceKeyName.WcfPortCreation), binding.ToString()));
            }

            //confguration is applied so just apply show mode
            ConfigChange = false;

            MessageBox.Show(ResourceLogic.GetString(ResourceKeyName.ConfigurationSaved));
        }