示例#1
0
 public void XoaPhanSo(PhanSo ps)
 {
     this.GanTuSo(0);
     this.GanMauSo(0);
     ps.GanTuSo(0);
     ps.GanMauSo(0);
 }
示例#2
0
        public void QuyDongMau(PhanSo ps)
        {
            int MauSoChung = this.mMauSoChung(ps);

            PhanSo ps1m = new PhanSo();
            PhanSo ps2m = new PhanSo();

            ps2m.GanMauSo(MauSoChung);
            ps1m.GanMauSo(MauSoChung);
            ps1m.GanTuSo(this.LayTuSo() * ps.LayMauSo());
            ps2m.GanTuSo(ps.LayTuSo() * this.LayMauSo());
            ps1m.xuatPhanSo();
            ps2m.xuatPhanSo();
        }