Beispiel #1
0
 private void destinationLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     //open select node form
     using (dlgSelectGameNode dlg = new dlgSelectGameNode(_link.Destination))
     {
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             _link.Destination = dlg.SelectedNode;
         }
     }
 }
        public static GameNode SelectNode(Zone zone)
        {
            using (dlgSelectGameNode dlg = new dlgSelectGameNode(zone))
            {
                if (dlg.ShowDialog() == DialogResult.OK)
                {
                    return(dlg.SelectedNode);
                }
            }

            return(null);
        }