private void GetTitle(string filename) { s_Title = filename.Substring(Math.Max(0, filename.LastIndexOf('\\') + 1)); int i_lastDotPos = s_Title.LastIndexOf('.'); if (i_lastDotPos >= 0) { s_Title = s_Title.Substring(0, i_lastDotPos); } }