Beispiel #1
0
        public Form1()
        {
            InitializeComponent();

            mileHandler = new MILE_Handler("Mile");
            yardHandler = mileHandler.SetNext(new YARD_Handler("Yard"));
            footHandler = yardHandler.SetNext(new FOOT_Handler("Foot"));
        }
 public ConvertHandler SetNext(ConvertHandler nextHandler)
 {
     next = nextHandler;
     return(nextHandler);
 }