Esempio n. 1
0
 public ProcessLine(uint fileLine, uint line, int process, ProcessType type, ProcessCreate p, uint left, uint right, ProcessLine oldLine)
 {
     this.mName 				= "";
     this.mLineBeginn 		= line;
     this.mProcess 			= process;
     this.mLineEnd 			= 0;
     this.mItemPen 			= new Pen(Color.Black, 1);
     this.mDescription		= "";
     this.mStyle 			= ProcessStyle.Normal;
     this.mType 				= type;
     if(type==ProcessType.Actor)
         mInitialHeight 		= 50;
     if(type==ProcessType.Dummy)
         this.mStyle			= ProcessStyle.NotUsed;
     this.mFileLine 			= fileLine;
     this.mCreatingProcess 	= p;
     this.mLeft 				= left;
     this.mRight 			= right;
     this.mOldLine			= oldLine;
 }
Esempio n. 2
0
 public InterpretResult addProcessLineBeginn(uint fileLine, string name, string description, uint line, int process, ProcessStyle style, ProcessCreate p,ProcessLine oldLine)
 {
     if (process >= processes.Count)
         return InterpretResult.InstanceNotFound;
     IEnumerator enumerator = lines.GetEnumerator();
     for(uint i=0;i<lines.Count;i++){
         enumerator.MoveNext();
         if ( enumerator.Current is ProcessLine)
             if((((ProcessLine) enumerator.Current).LineEnd==0)&&(((ProcessLine) enumerator.Current).ProcessIndex == process)&&(((ProcessLine) enumerator.Current).ProcessType != ProcessType.Dummy)) return InterpretResult.LineAllreadyExists;
     }
     lines.Add(new ProcessLine(fileLine, name, description, line, process, style, p,0,0,oldLine));
     mLines = Math.Max(mLines, line);
     return InterpretResult.Ok;
 }
Esempio n. 3
0
 public ProcessLine(uint fileLine, string name, string description, uint line, int process, ProcessStyle style, ProcessCreate p, uint left, uint right, ProcessLine oldLine)
 {
     this.mName 				= name;
     this.mLineBeginn 		= line;
     this.mProcess 			= process;
     this.mLineEnd 			= 0;
     this.mItemPen 			= new Pen(Color.Black, 1);
     this.mDescription 		= description;
     this.mStyle 			= style;
     this.mType 				= ProcessType.Normal;
     this.mFileLine 			= fileLine;
     this.mCreatingProcess 	= p;
     this.mLeft 				= left;
     this.mRight 			= right;
     this.mOldLine			= oldLine;
 }