public static void ShowPanel(DockPanel panel, string key, ILocalizeContent <object> content) { if (_panel == null || _panel.IsDisposed) { _panel = new LocalizeContentEditorPanel(); _panel.Show(panel, DockState.DockRight); } _panel.Text = key; _panel.SelectContent(content); }
private void dataGridView1_SelectionChanged(object sender, EventArgs e) { DataGridViewRow row = dataGridView1.Rows[dataGridView1.CurrentCell.RowIndex]; DataGridViewTextBoxCell cell = (DataGridViewTextBoxCell)row.Cells[0]; string value = (string)cell.Value; if (value != null) { LocalizeContentEditorPanel.ShowPanel(DockPanel, value, (ILocalizeContent <object>)row.Cells[1].Value); } }