Esempio n. 1
0
        /// <summary>
        /// Handler for adding current editors of file
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void my_AddEditors(object sender, AddEditorsEventArgs e)
        {
            string s;

            for (int i = 0; i < e.Editors.Length; i++)
            {
                s = gobj.DTE2.ActiveDocument.FullName;
                s = e.Locations[i].Split(' ')[1];
                if (e.Locations[i].Split(' ')[0] == filename)
                {
                    trackDict[e.Editors[i]] = m_textView.TextSnapshot.CreateTrackingPoint(int.Parse(s),
                                                                                          PointTrackingMode.Positive);//Have to change textview when it is another file!!!
                }
            }
        }
 /// <summary>
 /// Handler for adding current editors of file
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void my_AddEditors(object sender, AddEditorsEventArgs e)
 {
     string s;
     for (int i = 0; i < e.Editors.Length; i++)
     {
         s = gobj.DTE2.ActiveDocument.FullName;
         s = e.Locations[i].Split(' ')[1];
         if (e.Locations[i].Split(' ')[0] == filename)
         {
             trackDict[e.Editors[i]] = m_textView.TextSnapshot.CreateTrackingPoint(int.Parse(s),
             PointTrackingMode.Positive);//Have to change textview when it is another file!!!
         }
     }
 }