示例#1
0
 public void Attach(ICPU cpu)
 {
     try
     {
         if (cpu.GetType().ToString().EndsWith("AMD"))
         {
             Console.WriteLine("MSIK7N2G");
         }
         else
         {
             Console.WriteLine("主板MSIK7N2G只能配AMD的CPU");
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine("主板MSIK7N2G只能配AMD的CPU");
         Console.WriteLine("With Exception : {0}", ex.Message);
     }
 }
示例#2
0
 public void Attach(ICPU cpu)
 {
     try
     {
         if (cpu.GetType().ToString().EndsWith("Intel"))
         {
             Console.WriteLine("MSI865PE");
         }
         else
         {
             Console.WriteLine("主板MSI865PE只能配Intel的CPU");
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine("主板MSI865PE只能配Intel的CPU");
         Console.WriteLine("With Exception : {0}", ex.Message);
     }
 }