public static void TRACE(string message) { if (TraceFrm.m_instance == null) { TraceFrm.m_instance = new TraceFrm(); TraceFrm.m_instance.Show(); } TraceFrm.m_instance.Write(message); }
public static void TRACE(Form owner, string message) { if (TraceFrm.m_instance == null) { TraceFrm.m_instance = new TraceFrm(); if(owner != null) { TraceFrm.m_instance.Location = new Point(owner.Right + (SystemInformation.BorderSize.Width * 2), owner.Top); owner.Activate(); } TraceFrm.m_instance.Show(); } TraceFrm.m_instance.Write(message); }