public virtual void Detach() { if (painter != null) { painter.stopShowingCircle(); } this.electronPanel = null; }
public virtual void Attach(ElectronPanel cPanel) { try { this.electronPanel = cPanel; painter.setElectron(cPanel); } catch (Exception e) { debugOut("problem in attach: " + e.Message); throw new Exception("Problem in attach: " + e.Message); } }
/// <summary> /// The option to set the electron panel. I cannot set this during the construction, since it must be done while the InputReceiver is attached /// </summary> /// <param name="electron"></param> public void setElectron(ElectronPanel electron) { electronPanel = electron; }
public virtual void Detach() { if (painter != null) painter.stopShowingCircle(); this.electronPanel = null; }