public ChooseLocationPanelController(LocationChoosePanel v) { v.Controller = this; View = v; v.ButtonCancelEnable = true; v.ButtonOkEnable = true; }
private void buttonChoose_Click(object sender, EventArgs e) { LocationChoosePanel d = new LocationChoosePanel(); d.OnLocationSelected += this.OnLocationSelected; ChooseLocationPanelController dc = new ChooseLocationPanelController(d); dc.ShowInContainer(Controller.ViewContainer, GVControlAlign.Center); Controller.RemoveFromContainer(); }