public Builder() { InitializeComponent(); f = new LocationFactory(); loadPrices(); house = new House(); //house = new House(); //set the bitmap for drawing to panel size bitmap1 = new Bitmap(panel.Width, panel.Height); bitmap2 = new Bitmap(panel.Width, panel.Height); //checks to make sure mouse is pressed for dragging pressedFirst = false; c = Color.White; //stops flickering typeof(Panel).InvokeMember("DoubleBuffered", BindingFlags.SetProperty | BindingFlags.Instance | BindingFlags.NonPublic, null, panel, new object[] { true }); }
public Editor() { InitializeComponent(); f = new LocationFactory(); // loadPrices(); }