private void loadFavoritesToolStripMenuItem_Click(object sender, EventArgs e) { var lst = LoadOuts.LoadFavorites("Case"); if (lst == null) { return; } lstProfileMods.Items.Clear(); foreach (var v in lst) { lstProfileMods.Items.Add(v.Key); } CheckModCount(); label2.Text = @"Active Mods: " + lstProfileMods.Items.Count; }
private void addToNewHollandToolStripMenuItem_Click(object sender, EventArgs e) { if (lstAvailableMods.SelectedItem.IsNull()) { return; } var reg = new AtsRegWork(true); var gam = reg.Read(RegKeys.CURRENT_GAME); var cProf = reg.Read(RegKeys.CURRENT_PROFILE); if (gam.IsNullOrEmpty() || cProf.IsNullOrEmpty()) { MsgBx.Msg("You need to have a Profile / Game active", "Process Error"); return; } LoadOuts.CreateLoadouts("NewHolland", lstAvailableMods.SelectedItem.ToString()); }