Advertisement
GlobalAccessSoftware

YesNoAlways_SampleUsage

Nov 7th, 2017
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1.       int status;
  2.       using (var y = new
  3.         YesNoAlwaysForm(SMR.SavePrefText))
  4.       {
  5.         y.ShowDialog();
  6.         status = y.Status; // Get Result.
  7.       }
  8.       // YesNoAlways Status Legend:
  9.       // 1 = Yes, 2 = No,
  10.       // 3 = Yes as Pref. 4 = No as Pref.
  11.       switch (status)
  12.       {
  13.         case 1:
  14.           OneTimeYes();
  15.           break;
  16.         //case 2:
  17.           //OneTimeNo(); // Does nothing here.
  18.         case 3:
  19.           PrefOfYes();
  20.           break;
  21.         case 4:
  22.            PrefOfNo();
  23.            break;
  24.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement