Ejemplo n.º 1
0
        protected virtual void KomponentMenuItem_Click(object sender, EventArgs e)
        {
            ToolStripItem ti = sender as ToolStripItem;

            if (ti != null)
            {
                IKomponent k = ti.Tag as IKomponent;
                if (k != null)
                {
                    k.Run(null);
                }
            }
        }
Ejemplo n.º 2
0
 public void Usun(IKomponent ob)
 {
     Console.WriteLine("Niedostępne dla tego elementu.");
 }
Ejemplo n.º 3
0
 public SAContextMenu(IKomponent k, bool b)
 {
     this.mKomponent = k;
     this.mNoMenuItemOff = b;
 }
Ejemplo n.º 4
0
 public SAContextMenu(IKomponent k)
 {
     this.mKomponent = k;
     this.mNoMenuItemOff = false;
 }
Ejemplo n.º 5
0
 public SAContextMenu(IKomponent k, bool b)
 {
     this.mKomponent     = k;
     this.mNoMenuItemOff = b;
 }
Ejemplo n.º 6
0
 public SAContextMenu(IKomponent k)
 {
     this.mKomponent     = k;
     this.mNoMenuItemOff = false;
 }
Ejemplo n.º 7
0
 public void Usun(IKomponent ob)
 {
     _listaDzieci.Remove(ob);
     Cena -= ob.Cena;
 }
Ejemplo n.º 8
0
 public void Dodaj(IKomponent ob)
 {
     _listaDzieci.Add(ob);
     Cena += ob.Cena;
 }
Ejemplo n.º 9
0
 public void Usun(IKomponent ob)
 {
     Console.WriteLine("Niedostępne dla tego elementu.");
 }
Ejemplo n.º 10
0
 public void Usun(IKomponent ob)
 {
     _dzieci.Remove(ob);
     Cena -= ob.Cena;
 }
Ejemplo n.º 11
0
 public void Dodaj(IKomponent ob)
 {
     _dzieci.Add(ob);
     Cena += ob.Cena;
 }