示例#1
0
 public void AddCs(Cs cS)
 {
     if (cS != null)
     {
         _proj.CsFile.Add(cS);
         SerializationEvent?.Invoke(this, new SerializationEventArgs {
             Project = _proj
         });
         AddPageEvent?.Invoke(this, new ProjectEventArgs {
             Cs = _proj.CsFile[_proj.CsFile.Count - 1]
         });
         AddFileIs(_cNode, _proj.CsFile[_proj.CsFile.Count - 1]);
     }
 }
示例#2
0
 public void AddCS(CS cS)
 {
     if (cS != null)
     {
         this.proj.csfile.Add(cS);
         SerializationEvent?.Invoke(this, new SerializationEventArgs()
         {
             project = this.proj
         });
         AddPageEvent?.Invoke(this, new ProjectEventArgs()
         {
             cS = this.proj.csfile[this.proj.csfile.Count - 1]
         });
         AddFileIs(CNode, this.proj.csfile[this.proj.csfile.Count - 1]);
     }
 }