private void SetMachine(Machine machine) { this.machine = machine; this.lstClasses.Items.Clear(); this.lstMethods.Items.Clear(); foreach (IClass cls in machine.GetClasses()) this.lstClasses.Items.Add(cls.Name); }