evanwon / WPFCustomMessageBox

A WPF clone of the native Windows/.NET MessageBox with extra features like custom button text.
122 stars 63 forks source link

A More Usable Working Example Could Have Been Nice #24

Open legacy1477 opened 6 months ago

legacy1477 commented 6 months ago

Not sure if this was ever addressed for noobs or not, but I downloaded an old 2012 version of this for vs 2010.

Getting the normal dialog box to do something when choosing yes or no was incredibly hard, I have no idea how to actually utilize this past the visual aspect as I get this error. Error 2 'WPFCustomMessageBox.CustomMessageBox' does not contain a definition for 'bye'

DialogResult result = CustomMessageBox.ShowCustomYesNo("Hi", "bye", "hello", "goodbye", MessageBoxImage.Asterisk);

            if (result == CustomMessageBox.yes);
            {
                Process.Start("process.exe","test");
            }
            else
            {
                System.Windows.Forms.Application.ExitThread();
            }