private void comboItems_Format(object sender, ListControlConvertEventArgs e)
        {
            IWadObject listItem = e.ListItem as IWadObject;

            if (listItem != null)
            {
                e.Value = listItem.ToString(_editor.Level.Settings.GameVersion);
            }
        }
Exemplo n.º 2
0
        private void comboItems_Format(object sender, ListControlConvertEventArgs e)
        {
            TRVersion.Game?gameVersion = _editor?.Level?.Settings?.GameVersion;
            IWadObject     listItem    = e.ListItem as IWadObject;

            if (gameVersion != null && listItem != null)
            {
                e.Value = listItem.ToString(gameVersion.Value);
            }
        }