DesktopHelper.UI.ConfigForm.SetDefaultSearch C# (CSharp) Method

SetDefaultSearch() private method

private SetDefaultSearch ( string value ) : void
value string
return void
        private void SetDefaultSearch(string value)
        {
            try
            {
                switch (value)
                {
                    case "1":
                        RbtnBaidu.Checked = true;
                        break;
                    case "2":
                        RbtnGoogle.Checked = true;
                        break;
                    case "3":
                        RbtnYahoo.Checked = true;
                        break;
                    case "4":
                        RbtnSoso.Checked = true;
                        break;
                    case "5":
                        RbtnBing.Checked = true;
                        break;
                    case "6":
                        Rbtn360.Checked = true;
                        break;
                }
            }
            catch (Exception ex)
            {
                log.WriteLog(ex.ToString());
            }
        }