Пример #1
0
        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;
        }
Пример #2
0
 public void ShowMessage(MessageWindowCallback callback)
 {
     this.callback = callback;
     this.ShowInfo();
     UIHelper.ShowMessageWindow(this);
 }