Example #1
0
 //////////////////////////////////////////////////////////////////////////////////////////////////////////////
 ///
 /////////////////////////////////////////////////////////////////////////////////////////////////////////////
 public void OnPrinterPropertyChange(SPrinterProperty sPrinterProperty)
 {
     m_sPrinterProperty = sPrinterProperty;
     if (m_sPrinterProperty.eSingleClean == SingleCleanEnum.SingleHead)
     {
         m_nButtonNum = m_sPrinterProperty.GetPhyHeadNum();                //.nHeadNum;
     }
     else if (m_sPrinterProperty.eSingleClean == SingleCleanEnum.SingleColor)
     {
         if (m_sPrinterProperty.IsMirrorArrangement())
         {
             m_nButtonNum = m_sPrinterProperty.nColorNum * 2;
         }
         else
         {
             m_nButtonNum = m_sPrinterProperty.nColorNum;
         }
         m_nButtonNum /= m_sPrinterProperty.nOneHeadDivider;
     }
     LayoutFree(m_sPrinterProperty);
     CreateComponent();
     LayoutComponent();
     AppendComponent();
 }