public void RefreshImage() { Image oldImage = outfiterImageBox.Image; outfiterImageBox.Image = outfit.GetImage(); if (oldImage != null) { oldImage.Dispose(); } outfiterCode.Text = outfit.ToString(); }
private void copyTextButton_Click(object sender, EventArgs e) { MainForm.mainForm.Invoke((MethodInvoker) delegate { Clipboard.SetText(outfit.ToString()); }); }