private void statsListView_DoubleClick(object sender, EventArgs e) { if (statsListView.SelectedItems.Count > 0) { var nodeDetails = new StatDetails(); nodeDetails.LoadStat(((Handle <GameStatModifierData>)statsListView.SelectedItems[0].Tag), ReloadData); } }
private void addCurveStatButton_Click(object sender, EventArgs e) { var newId = activeSaveFile.AddStat(typeof(GameCurveStatModifierData), activeSaveFile.GetItemStatData(activeItem)); ReloadData(); var statDialog = new StatDetails(); statDialog.LoadStat(activeSaveFile.GetItemStatData(activeItem).StatModifiers[Array.FindIndex(activeSaveFile.GetItemStatData(activeItem).StatModifiers, x => x.Id == newId)], ReloadData); }
private void addCurveStatButton_Click(object sender, EventArgs e) { var newId = activeSaveFile.AddStat(typeof(gameCurveStatModifierData_Deprecated), activeSaveFile.GetItemStatData(activeItem)); ReloadData(); var statDialog = new StatDetails(); statDialog.LoadStat(newId, ReloadData); }