Пример #1
0
        private void ShowDialog(string imageName, string text, Func <Task> onClose)
        {
            var act = Mvx.IoCProvider.Resolve <IMvxAndroidCurrentTopActivity>().Activity;
            var fm  = act.FragmentManager;

            BasicDialog dialog = new BasicDialog(imageName, text, onClose);


            dialog.Show(fm, "");
        }
Пример #2
0
 public void Awake()
 {
     basicDialog            = GetComponent <BasicDialog>();
     basicDialog.Cancelable = false;
     basicDialog.OnCloseAnimationFinished.AddListener(() => {
         if (started)
         {
             OnStart.Invoke();
         }
     });
 }
Пример #3
0
 private void exportToBASICToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using var x = new BasicDialog();
     x.Sprites   = Sprites;
     x.ShowDialog(this);
 }
Пример #4
0
 public void Awake()
 {
     basicDialog = GetComponent <BasicDialog>();
 }