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

            dialog.RemoveFromPainter();
            dialog = null;
        }
示例#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();
        }
示例#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 ();
			};
		}
示例#4
0
		public virtual void DismissDialog ()
		{
			if (dialog == null)
				return;

			dialog.RemoveFromPainter ();
			dialog = null;
		}