public GroupEditor(MinecraftHandler mc) { InitializeComponent(); try { dgvLevels.AutoGenerateColumns = false; GenerateColumns(); this.mc = mc; _levelCollection = GroupCollectionSingletone.GetInstance(); RefreshAvailableCommands(); dgvLevels.DataSource = _levelCollection.Items; UpdateDataGrid(0); } catch { } this.Dock = DockStyle.Fill; }
public KitEditor(MinecraftHandler mc) { InitializeComponent(); this.mc = mc; mc.Items.ReadFromFile(); try { _levels = GroupCollectionSingletone.GetInstance(); comboBoxLevel.DataSource = null; comboBoxLevel.DataSource = _levels.Items; } catch { } RefreshKitlist(); UpdateSelectedKit(); this.Dock = DockStyle.Fill; }