Exemple #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="obj"></param>
 public void cOmment(object obj)
 {
     foreach (var item in AllLines.Where(p => p.weapon_name == weapon_name))
     {
         if (!item.weapon_name.StartsWith("//"))
         {
             item.weapon_name = "//" + item.weapon_name;
         }
     }
     UpdateNames();
 }
Exemple #2
0
 public void DeleteWrongLines()
 {
     // ReSharper disable ImpureMethodCallOnReadonlyValueField
     AllLines = AllLines.Where(_ => _.StartPoint.IsValid() && _.EndPoint.IsValid()).ToList();
     // ReSharper restore ImpureMethodCallOnReadonlyValueField
 }