Exemplo n.º 1
0
        private void toolStripButtonEdit_Click(object sender, EventArgs e)
        {
            ListBoxRichItem lbi = listBox1.Items[listBox1.SelectedIndex] as ListBoxRichItem;

            if (lbi.Tag != null && lbi.Tag is GCConfigRatedEntry)
            {
                GCConfigRatedEntry     ge = lbi.Tag as GCConfigRatedEntry;
                RatedEventDetailsPanel d  = new RatedEventDetailsPanel();
                d.OnValueSaved += new TBButtonPressed(OnRatedEntryEdited);
                d.RatedEvent    = ge;
                RatedEventDetailsPanelController dc = new RatedEventDetailsPanelController(d);
                dc.ShowInContainer(Controller.ViewContainer, GVControlAlign.Fill);
            }
        }
 public RatedEventDetailsPanelController(RatedEventDetailsPanel v)
 {
     View         = v;
     v.Controller = this;
 }