Esempio n. 1
0
        public Form1()
        {
            InitializeComponent();

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