예제 #1
0
 private void UpdatePtg(Ptg ptg, String oldName, String newName)
 {
     if (ptg is Pxg)
     {
         Pxg pxg = (Pxg)ptg;
         if (pxg.ExternalWorkbookNumber < 1)
         {
             if (pxg.SheetName.Equals(oldName))
             {
                 pxg.SheetName = (newName);
             }
         }
     }
 }
예제 #2
0
 private void UpdatePtg(Ptg ptg, String oldName, String newName)
 {
     if (ptg is Pxg)
     {
         Pxg pxg = (Pxg)ptg;
         if (pxg.ExternalWorkbookNumber < 1)
         {
             if (pxg.SheetName != null &&
                 pxg.SheetName.Equals(oldName))
             {
                 pxg.SheetName = (newName);
             }
             if (pxg is Pxg3D)
             {
                 Pxg3D pxg3D = (Pxg3D)pxg;
                 if (pxg3D.LastSheetName != null &&
                     pxg3D.LastSheetName.Equals(oldName))
                 {
                     pxg3D.LastSheetName = (/*setter*/ newName);
                 }
             }
         }
     }
 }