Exemplo n.º 1
0
 public TreatmentNode(BaseTreatment treatment)
 {
     Treatment   = treatment;
     Text        = Treatment.Name();
     ToolTipText = Treatment.Tooltip();
     Checked     = true;
     ImageKey    = "NotStarted";
 }
Exemplo n.º 2
0
        private void LstResults_OnContextMenuClick(object sender, EventArgs e)
        {
            MenuItem      senderItem = (MenuItem)sender;
            BaseTreatment treatment  = (BaseTreatment)senderItem.Parent.Tag;
            string        message    = treatment.Logger.ToString();

            if (string.IsNullOrEmpty(message))
            {
                return;
            }

            MessageBox.Show(message, treatment.Name());
        }