public void ShowMessage(string message, MessageBoxButton msgBtn, MessageWindowCallback callback) { if (msgBtn == MessageBoxButton.OK) { this.btnPanel.Children.Remove(this.cancelBtn); } this.callback = callback; // this.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen; this.infoTextBlock.Text = message; // this.WindowStartupLocation = System.Windows.WindowStartupLocation.CenterOwner; GC_UIHelper.ShowMessageWindow(this); // return this.ShowDialog().Value; }
public void ShowMessage(MessageWindowCallback callback) { this.callback = callback; this.ShowInfo(); UIHelper.ShowMessageWindow(this); }