Beispiel #1
0
        // Constructor
        public MapEditor()
        {
            lstBlocks = new List<Block>();
            lstItems = new List<Item>();

            InitializeComponent();

            //Added to support default instance behavour in C#
            if (defaultInstance == null)
                defaultInstance = this;
        }
Beispiel #2
0
 static void defaultInstance_FormClosed(object sender, FormClosedEventArgs e)
 {
     defaultInstance = null;
 }