public StockForm() { InitializeComponent(); _stockController = ContextRegistry.GetContext()["StockController"] as StockController; _stockController.StockForm = this; }