Exemple #1
0
        public virtual void DismissDialog()
        {
            if (dialog == null)
            {
                return;
            }

            dialog.RemoveFromPainter();
            dialog = null;
        }
Exemple #2
0
        public virtual void ShowDialog(UIDialog dialog)
        {
            Console.WriteLine("showing {0}", dialog);

            if (this.dialog != null)
            {
                throw new Exception("only one active dialog is allowed");
            }
            this.dialog = dialog;

            dialog.Ready += delegate() { dialog.AddToPainter(); };
            dialog.Load();
        }
Exemple #3
0
		public override void ShowDialog (UIDialog dialog)
		{
			Console.WriteLine ("showing {0}", dialog);

			if (this.dialog != null)
				throw new Exception ("only one active dialog is allowed");
			this.dialog = dialog;

			dialog.Load ();
			dialog.Ready += delegate () { 
				dialog.AddToPainter ();
				RemoveFromPainter ();
			};
		}
Exemple #4
0
		public virtual void DismissDialog ()
		{
			if (dialog == null)
				return;

			dialog.RemoveFromPainter ();
			dialog = null;
		}