示例#1
0
        /// <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();
        }
示例#2
0
        /// <summary>
        /// Event handler for Save Roll button.
        /// </summary>
        private void btnSaveRoll_Click(object sender, EventArgs e)
        {
            var window = new frmRoll();

            window.ShowSave(_charecter.GetDiceRoll());
        }