/// <summary> /// Event handler for the Load Roll button. /// </summary> private void btnLoadRoll_Click(object sender, EventArgs e) { var window = new frmRoll(); window.ShowLoad(); if (window.WasCancelled) { return; } _charecter.SetFromDiceRoll(window.Roll); RefreshView(); }
/// <summary> /// Event handler for Save Roll button. /// </summary> private void btnSaveRoll_Click(object sender, EventArgs e) { var window = new frmRoll(); window.ShowSave(_charecter.GetDiceRoll()); }