public LiveViewer(Controller c) { InitializeComponent(); controller = c; }
// This is the right way to get a reference to the controller. You shouldn't create a // controller yourself. public static Controller GetController() { if (controllerInstance == null) { controllerInstance = new Controller(); } return controllerInstance; }