public void LoadIni(object sender, RoutedEventArgs e) { command.RecmoveRecievers(); itemBox.Text = ""; fileLoader.GetRecieverItems(iniFileName, ref recievers); int count = 0; foreach (IReciever reciever in recievers) { count = count + 1; itemBox.Text = itemBox.Text + "Test item " + count.ToString() + ": "; itemBox.Text = itemBox.Text + reciever.Name + "\r\n"; command.AddReciever(reciever); } }