Пример #1
0
        void Global_ObjectSelected(object sender, ScreenObjectEventArgs e)
        {
            StructInstance structInst = e.Item as StructInstance;

            if (structInst != null)
            {
                // Load currentLevelIndex and paletteIndex data
                using (BeginUpdate()) {
                    LevelIndex   = e.Level;
                    PaletteIndex = structInst.PalData;
                    StructIndex  = structInst.ObjectType;
                }
            }
        }
Пример #2
0
 void OnSelectionChanged(object sender, ScreenObjectEventArgs e)
 {
     //LoadItems(Program.MainForm.CurrentLevel);
 }