Ejemplo n.º 1
0
 private void LoadFunctionalities(StructCollection.Rule rule)
 {
     StructCollection.Damage result = (StructCollection.Damage)rule.results;
     criticalSuccessToolStripMenuItem.Checked = result.crit_success;
     CriticalSuccessThresholdTextbox.Text     = result.crit_success_threshold.ToString();
     criticalFailureToolStripMenuItem.Checked = result.crit_fail;
     CriticalFailThresholdTextbox.Text        = result.crit_fail_threshold.ToString();
 }
Ejemplo n.º 2
0
 private void StoreFunctionalities(ref StructCollection.Rule rule)
 {
     StructCollection.Damage result = (StructCollection.Damage)rule.results;
     result.crit_success           = criticalSuccessToolStripMenuItem.Checked;
     result.crit_success_threshold = Convert.ToInt16(CriticalSuccessThresholdTextbox.Text);
     result.crit_fail           = criticalFailureToolStripMenuItem.Checked;
     result.crit_fail_threshold = Convert.ToInt16(CriticalFailThresholdTextbox.Text);
 }