private void ChangeSetting()
        {
            tbl.Rows.Clear();
            bool configSettings    = (bool)rdbConfigSettings.IsChecked;
            bool labwareSettings   = (bool)rdbLabwareSettings.IsChecked;
            bool pipettingSettings = (bool)rdbPipettingSettings.IsChecked;

            currentSettings = settings.Load(configSettings, labwareSettings, pipettingSettings);

            key_Type = TypeConstrain.ExtractTypeInfo(currentSettings);
            this.listView.DataContext = CreateDataTable(currentSettings);
        }
        private void btnModify_Click(object sender, RoutedEventArgs e)
        {
            if (listView.SelectedIndex == -1)
            {
                return;
            }
            if (currentKey == "")
            {
                return;
            }
            if (!TypeConstrain.IsExpectedType(txtCurrentVal.Text, key_Type[currentKey]))
            {
                SetInfo(string.Format("类型不对,期望的类型是{0}:", key_Type[currentKey]), true);
                return;
            }
            currentSettings[currentKey]         = txtCurrentVal.Text;
            tbl.Rows[listView.SelectedIndex][1] = txtCurrentVal.Text;

            bool isConfigSettings    = (bool)rdbConfigSettings.IsChecked;
            bool isLabwareSettings   = (bool)rdbLabwareSettings.IsChecked;
            bool isPipettingSettings = (bool)rdbPipettingSettings.IsChecked;

            settings.Save(isConfigSettings, isLabwareSettings, isPipettingSettings, currentSettings);
        }