Ejemplo n.º 1
0
 public static void ShowTextInput(this Popups popups, IDeckSaveCallback callback, string loadedDeckName, string problems, string popupType, string header, string description, string okText)
 {
     popups.ShowSaveDeck(callback, loadedDeckName, problems);
     typeof(Popups).GetField("popupType", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(popups, popupType);
     typeof(Popups).GetField("header", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(popups, header);
     typeof(Popups).GetField("description", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(popups, description);
     typeof(Popups).GetField("okText", BindingFlags.Instance | BindingFlags.NonPublic).SetValue(popups, okText);
 }
Ejemplo n.º 2
0
 public static void ShowTextInput(this Popups popups, IDeckSaveCallback callback, string loadedDeckName, string problems, string popupType, string header, string description, string okText)
 {
     popups.ShowSaveDeck (callback, loadedDeckName, problems);
     typeof(Popups).GetField ("popupType", BindingFlags.Instance | BindingFlags.NonPublic).SetValue (popups, popupType);
     typeof(Popups).GetField ("header", BindingFlags.Instance | BindingFlags.NonPublic).SetValue (popups, header);
     typeof(Popups).GetField ("description", BindingFlags.Instance | BindingFlags.NonPublic).SetValue (popups, description);
     typeof(Popups).GetField ("okText", BindingFlags.Instance | BindingFlags.NonPublic).SetValue (popups, okText);
 }