public void SetTo(EN_PIN_STAT Stat) { m_iStat = (int)Stat; if (Stat == EN_PIN_STAT.psEmpty) { m_bForceChk = false; m_bExistChk = false; } }
//--------------------------------------------------------------------------- private void fn_SetCleaning(EN_PIN_STAT stat) { for (int r = 0; r < m_nRowCnt; r++) { for (int c = 0; c < m_nColCnt; c++) { if (m_bSelStr02[r, c]) { DM.STOR[siClean].SetTo(r, c, (int)stat); } } } fn_ClearArry(siClean); }
//--------------------------------------------------------------------------- private void fn_SetPolishing(EN_PIN_STAT stat, int type = -1) { for (int r = 0; r < m_nRowCnt; r++) { for (int c = 0; c < m_nColCnt; c++) { if (m_bSelStr01[r, c]) { DM.STOR[siPolish].SetTo(r, c, (int)stat, type); } } } fn_ClearArry(siPolish); }
//--------------------------------------------------------------------------- public SolidColorBrush GetPinColor(EN_PIN_STAT Stat) { var pcMask = new SolidColorBrush(Color.FromRgb(102, 051, 0)); var pcNeedChk = new SolidColorBrush(Color.FromRgb(102, 051, 0)); if (Stat == EN_PIN_STAT.psEmpty) { return(Brushes.LightGray); } else if (Stat == EN_PIN_STAT.psUsed) { return(Brushes.Magenta); } //else if (Stat == EN_PIN_STAT.psNeedChk) return Brushes.CadetBlue; else if (Stat == EN_PIN_STAT.psNewPol) { return(Brushes.Green); } else if (Stat == EN_PIN_STAT.psNewCln) { return(Brushes.LimeGreen); } else if (Stat == EN_PIN_STAT.psUsedPol) { return(Brushes.Magenta); } else if (Stat == EN_PIN_STAT.psUsedCln) { return(Brushes.Magenta); } else if (Stat == EN_PIN_STAT.psMask) { return(pcMask); } else { return(Brushes.Black); } }
public void SetTo(EN_PIN_TYPE Type, EN_PIN_STAT Stat, int Kind) { m_iType = (int)Type; m_iStat = (int)Stat; m_iKind = Kind; }
public void SetTo(EN_PIN_TYPE Type, EN_PIN_STAT Stat) { m_iType = (int)Type; m_iStat = (int)Stat; }
public void SetTo(EN_PIN_STAT Stat, string PinId) { m_iStat = (int)Stat; m_sPinId = PinId; }
public bool IsStat(EN_PIN_STAT state) { return(m_iStat == (int)state); }