private void ShowStringEditor(LocalizableCompoment component, NotifyPropertyChanged item) { if (null != component && null != item) { if (item is LocalizableRTFString) { textBoxRichString.RichText = item.Value2; textBoxRichString.Enabled = true; textBoxRichString.Visible = true; } else if (item is LocalizableWideString) { textBoxWideString.Text = item.Value2; textBoxWideString.Enabled = true; textBoxWideString.Visible = true; } else { textBoxString.Text = item.Value2; textBoxString.Enabled = true; textBoxString.Visible = true; } _currentComponent = component; _currentItem = item; } else { _currentComponent = null; _currentItem = null; textBoxString.Enabled = false; textBoxWideString.Enabled = false; textBoxRichString.Enabled = false; textBoxString.Visible = false; textBoxWideString.Visible = false; textBoxRichString.Visible = false; textBoxString.Text = String.Empty; textBoxWideString.Text = String.Empty; textBoxRichString.RichText = String.Empty; } }