private void UpdateParking() { if (FormBorderStyle == FormBorderStyle.Fixed3D || FormBorderStyle == FormBorderStyle.FixedDialog || FormBorderStyle == FormBorderStyle.FixedSingle || FormBorderStyle == FormBorderStyle.FixedToolWindow) { if (Owner is ISnapManagerHost ismh) { SnapManager mySM = ismh.SnapManager; mySM.ReparkObstacle(this); } } }
private void UpdateParking() { if (this.FormBorderStyle == FormBorderStyle.Fixed3D || this.FormBorderStyle == FormBorderStyle.FixedDialog || this.FormBorderStyle == FormBorderStyle.FixedSingle || this.FormBorderStyle == FormBorderStyle.FixedToolWindow) { ISnapManagerHost ismh = this.Owner as ISnapManagerHost; if (ismh != null) { SnapManager mySM = ismh.SnapManager; mySM.ReparkObstacle(this); } } }