public Procedure NewProcedure( ProcType P ) { Procedure Proc = null; switch ( P ) { case ProcType.URLLIST: Proc = new ProcUrlList(); break; case ProcType.FIND: Proc = new ProcFind(); break; case ProcType.GENERATOR: Proc = new ProcGenerator(); break; case ProcType.RESULT: Proc = new ProcResult(); break; case ProcType.CHAKRA: Proc = new ProcChakra(); break; case ProcType.ENCODING: Proc = new ProcEncoding(); break; case ProcType.PARAMETER: Proc = new ProcParameter(); break; case ProcType.EXTRACT: Proc = ProcExtract.Create(); break; case ProcType.MARK: Proc = ProcMark.Create(); break; case ProcType.LIST: Proc = ProcListLoader.Create(); break; } ProcList.Add( Proc ); return Proc; }
public EditProcChakra( ProcChakra EditTarget ) :this() { this.EditTarget = EditTarget; ScriptInput.DataContext = EditTarget; }