protected void OnResizeEnd(object sender, EventArgs e) { BgfBitmap bgfBitmap = SelectedFrame; if (bgfBitmap != null) { Program.ShowFrame(true, bgfBitmap.GetBitmap(), picFrameImage); } }
protected void OnFramesSelectedIndexChanged(object sender, EventArgs e) { if (cbFrames.SelectedItem != null && cbFrames.SelectedItem is BgfBitmap) { BgfBitmap bgfBitmap = (BgfBitmap)cbFrames.SelectedItem; Program.ShowFrame(true, bgfBitmap.GetBitmap(), picBox); } }
protected void OnFramesSelectionChanged(object sender, EventArgs e) { BgfBitmap bgfBitmap = SelectedFrame; if (bgfBitmap != null) { // set hotspotlist dgHotspots.DataSource = bgfBitmap.HotSpots; // show frame Program.ShowFrame(true, bgfBitmap.GetBitmap(), picFrameImage); } }