private void buttonCopy_Click(object sender, EventArgs e) { if (Controller.ViewContainer != null) { TimezoneDetails d = new TimezoneDetails(); d.setCopyTimeZone(SelectedTimeZone); d.OnButtonSave += new TBButtonPressed(OnDetailsDialogSaved); TimezoneDetailsController dc = new TimezoneDetailsController(d); dc.ShowInContainer(Controller.ViewContainer, GVControlAlign.Fill); } }
public TimezoneDetailsController(TimezoneDetails v) { View = v; v.Controller = this; }