public void ShowInformationMessage(object sender, PropertyErrorDescription description) { _controller.SetCurrentError(description); if (description == null || !description.IsError) { _messageControl.Hide(); return; } _messageControl.Owner = sender; _messageControl.Show(description); _messageControl.Left = (ClientSize.Width - _messageControl.Width) / 2; _messageControl.BringToFront(); }
public void ShowInformationMessage(object sender, PropertyErrorDescription description) { _controller.SetCurrentError(description); if (description == null || !description.IsError) { InformationMessageControl.Hide(); return; } InformationMessageControl.Owner = sender; InformationMessageControl.Show(description); InformationMessageControl.HorizontalAlignment = HorizontalAlignment.Center; InformationMessageControl.BringIntoView(); }