コード例 #1
0
 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);
     }
 }
コード例 #2
0
 public void Go(Topic topic)
 {
     lock (_locker)
     {
         if (_topic != topic)
         {
             _topic = topic;
             TopicChanged?.Invoke(this, topic);
         }
     }
 }