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