예제 #1
0
 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 });
 }
예제 #2
0
 public Editor()
 {
     InitializeComponent();
     f = new LocationFactory();
     // loadPrices();
 }