public InteractionForm(PuppetMasterMaster master, string siteName) { InitializeComponent(); this._master = master; Text = "Command - " + siteName; this.IndividualBox.KeyDown += iKeyDown; this.GroupBox.KeyDown += gKeyDown; }
/// <summary> /// Connects this PuppetMasterSlave to the PuppetMasterMaster /// </summary> /// <param name="siteParent"></param> /// <param name="masterSite"></param> void IPuppetMasterSlave.RegisterWithMaster(string siteParent, string masterSite) { ParentSite = siteParent; string url = "tcp://localhost:" + Utility.GetPort(masterSite) + "/" + masterSite; Master = (IPuppetMasterMaster) Activator.GetObject(typeof (IPuppetMasterMaster), url); }