public void refreshAllZoneName() { int i = 0; string strZonItem = ""; ZoneItem mPzon = null; for (i = 0; i < Max_Zone; i++) { strZonItem = string.Format("zonitem_{0}", i); mPzon = (ZoneItem)this.FindName(strZonItem); if (mPzon != null) { mPzon.refreshZoneEdit(); // Debug.WriteLine("refresh all zone name is " + getZoneName(i) + " zindex is " + i); } } }
public void copyAllZoneName_fromDataAndUpdate(byte[][] mdata) { if (mdata == null) { return; } string strZonItem = ""; ZoneItem mPzon = null; for (int i = 0; i < CDefine.MaxZoneNum; i++) { Array.Copy(mdata[i], m_ZoneName[i], CDefine.Len_PresetName); strZonItem = string.Format("zonitem_{0}", i); mPzon = (ZoneItem)this.FindName(strZonItem); if (mPzon != null) { Array.Copy(mdata[i], mPzon.m_ZoneName, CDefine.Len_PresetName); mPzon.refreshZoneEdit(); // Debug.WriteLine("refresh all zone name is " + getZoneName(i) + " zindex is " + i); } } }