示例#1
0
 /// <summary>
 /// Displays a message on a specified line
 /// </summary>
 /// <param name="line">Line on which a message to be displayed</param>
 /// <param name="text">Message's text</param>
 /// <param name="compactPath">Indicates whether a long text needs to be shortened</param>
 public void SetLine(IPD_Lines line, string text, bool compactPath)
 {
     // compact path if required
     if (compactPath)
     {
         StringBuilder sb = new StringBuilder(MAX_CAPACITY);
         PathCompactPathEx(sb, text, MAX_CAPACITY, 0);
         text = sb.ToString();
         sb   = null;
     }
     // null-terminate if required
     if (!text.EndsWith("\0"))
     {
         text += "\0";
     }
     //	ppd->SetLine(2, L"I'm processing item n", FALSE, NULL);
     this.m_ipDialog.SetLine((uint)line, text, false, IntPtr.Zero);
 }
 /// <summary>
 /// Displays a message on a specified line
 /// </summary>
 /// <param name="line">Line on which a message to be displayed</param>
 /// <param name="text">Message's text</param>
 /// <param name="compactPath">Indicates whether a long text needs to be shortened</param>
 public void SetLine( IPD_Lines line, string text, bool compactPath )
 {
     // compact path if required
     if( compactPath ) {
         StringBuilder sb = new StringBuilder( MAX_CAPACITY );
         PathCompactPathEx( sb, text, MAX_CAPACITY, 0 );
         text = sb.ToString();
         sb = null;
     }
     // null-terminate if required
     if( !text.EndsWith("\0") )
         text += "\0";
     //	ppd->SetLine(2, L"I'm processing item n", FALSE, NULL);
     this.m_ipDialog.SetLine( (uint)line, text, false, IntPtr.Zero );
 }