ToString() public method

public ToString ( ) : string
return string
Exemplo n.º 1
0
 private void RemoveUnnecessaryTabpagesAcceptFour(ref TabPage tp1, ref TabPage tp2, ref TabPage tp3, ref TabPage tp4)
 {
     try
     {
         foreach (TabPage tp in tcOperation.TabPages)
         {
             if (!IsTwoStringEqual(tp.ToString(), tp1.ToString()) && !IsTwoStringEqual(tp.ToString(), tp2.ToString()) &&
                 !IsTwoStringEqual(tp.ToString(), tp3.ToString()) && !IsTwoStringEqual(tp.ToString(), tp4.ToString()))
             {
                 tcOperation.TabPages.Remove(tp);
             }
         }
     }
     catch
     {
         throw;
     }
 }