|
-
February 23rd, 2011, 09:27 AM
#1
Window_Closing problem in WPF_C#
Hi every body
i devoloped a custom MessageBox Class to use it in other application, and i made the application
and it work fine except in one place and it's Window_Closing handler.
If i replce the custom MessageBox with the standard MessageBox it works when i use my custom message box it doesn't and i don't know why and here's asnapshot of my code
[code]
private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
if (savingRequest == true)
{
switch (MessageBoxCustomized.Show("Save Changes", "Attention", MessageBoxButton.YesNoCancel))
{
case MessageBoxResult.Yes:
{
notifyIcon.Dispose();
SaveTreeView();
}
break;
case MessageBoxResult.No: notifyIcon.Dispose();
break;
case MessageBoxResult.Cancel:e.Cancel = true;
break;
}
}
//MessageBox.Show(
[code/]
so pls advise
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|