private void TopicBox_Click(object sender, EventArgs e) { ParentForm.ActiveControl = null; (var info, var str) = TopicForm.Show(Topic, Text); if (info == DialogResult.OK) { Text = str; TopicChanged?.Invoke(this, EventArgs.Empty); } }
public void Go(Topic topic) { lock (_locker) { if (_topic != topic) { _topic = topic; TopicChanged?.Invoke(this, topic); } } }