Example #1
0
    public static String XuatChuoi(DINHMUC P)
    {
        String Chuoi = P.Ten + " : ";

        Chuoi = Chuoi + P.GiaTri + " Kw ke tiep co don gia ";
        Chuoi = Chuoi + P.DonGia + " dong/Kw";
        return(Chuoi);
    }
 public static DINHMUC[] KhoiTao(String Chuoi)
 {
     DINHMUC[] kq;
     kq = null;
     if (KiemTra(Chuoi))
     {
         String[] M = Chuoi.Split(new String[] { ChuoiPhanCach },
                                  StringSplitOptions.None);
         kq = new DINHMUC[M.Length];
         for (int i = 0; i < M.Length; i++)
         {
             kq[i] = XuLyDinhMuc.KhoiTao(M[i]);
         }
     }
     return(kq);
 }