Example #1
0
        void worker_Load(object sender, System.ComponentModel.DoWorkEventArgs e)
        {
            WorkArguments args = ((WorkArguments)e.Argument);
            CalcCbr       cbr  = new CalcCbr();

            cbr.Worker = args.Worker;
            cbr.LoadBook(args.File);

            e.Result = new ResultArguments(cbr, args);
        }
Example #2
0
 public ResultArguments(CalcCbr cbr, WorkArguments args)
 {
     this.Cbr           = cbr;
     this.WorkArguments = args;
 }