/// <summary> /// 対局設定を追加する /// </summary> /// <param name="name"></param> /// <param name="rate"></param> /// <param name="basepoint"></param> /// <param name="returnpoint"></param> /// <param name="prise3to2"></param> /// <param name="prise4to1"></param> /// <param name="fraction"></param> public void AddRule(string name, double rate, int basepoint, int returnpoint, int prise3to2, int prise4to1, int fraction) { var retRule = new GameSettingType4 { ID = GetId(), Name = name, Rate = rate, BasePoint = basepoint, ReturnPoint = returnpoint, Prise3To2 = prise3to2, Prise4To1 = prise4to1, Fraction = fraction }; ColRule.Add(retRule); }
/// <summary> /// 対局設定新規登録のコマンド実行 /// </summary> public void CreateRule() { SelectedRule = new GameSettingType4(); IsCreatingNew = true; }
/// <summary> /// 対局設定を削除する(ListBoxのBindingからSelectedItemを取得する想定) /// </summary> /// <param name="rule"></param> public void DeleteRule(GameSettingType4 rule) { ColRule.Remove(rule); }