I am trying to write my own intro above MessageBoxImage enumeration, and see that the messagebox image is defined as :
Namespace system. Windows {public ANIM messboxes {none = 0, error = 16, hand = 16, stop = 16, question = 32, exclamation point = 48, warning = 48, starter = 64, notice = 64,}}
It shows that the image of an error or hand image is displayed or not? How do I write a method that takes a MessageBoxImage type, and returns a CustomMessageBoxImage type that is a Map of MessageBoxImage type because I can not include both MessageBoxImage.Error and MessageBoxImage.Hand in the same switch statement?
There were historically different icons that merged into a real icon image. So there are several enumerated type values (for example hand and stop) which means that in the modern Windows OS. There is no difference between them, they are just nicknames.
If you want new values to represent differences, then you can use a secondary variable to apply the difference (like "ezr") between the stop and hand. Icon can copy the value to an int and can set a higher bit in the value to indicate this additional information so that it can be "moved" in a variable. Or you can use your own calculation "unrelated", and there are ways to convert messageBoxIcon into your value.
I suggest to be my own "status" and then changing an icon value as needed - two are giving very different information, so to give extra information to overload (corrupt) Trying the message box value will not be a great way to try.
Comments
Post a Comment