private void pbPreview_Click(object sender, EventArgs e) { var preview = new pnlTexturePreview(); preview.SetImage(m.Texture.GetBitmap()); preview.Show(FlummeryApplication.UI.DockPanel, WeifenLuo.WinFormsUI.Docking.DockState.Float); }