mirror of
https://silica.codes/islehorse/HI1Proxy.git
synced 2025-04-05 21:55:51 +13:00
49 lines
993 B
C#
49 lines
993 B
C#
using System;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Hi1Proxy
|
|
{
|
|
public partial class MapForm : Form
|
|
{
|
|
|
|
public MapForm()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
public void OpenBitmap()
|
|
{
|
|
if (draw_map.BackgroundImage != null)
|
|
{
|
|
draw_map.BackgroundImage.Dispose();
|
|
}
|
|
try
|
|
{
|
|
Bitmap TotalMap = new Bitmap("MapData.bmp");
|
|
draw_map.BackgroundImage = TotalMap;
|
|
}
|
|
catch(Exception)
|
|
{
|
|
|
|
}
|
|
}
|
|
private void MapForm_Load(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
OpenBitmap();
|
|
}
|
|
catch(Exception)
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
private void draw_map_Click(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|