Example #1
0
        protected override void ResourceLoader()
        {
            base.ResourceLoader();

            for (int i = 0; i < Elements.Count; i++)
            {
                Console.WriteLine("{0}: {1} '{2}'", i, Elements[i].Type, Elements[i].Text);
            }

            Elements[PREVIOUS_ELEMENT_INDEX].Activate +=
                delegate() {
                if (Previous != null)
                {
                    Previous();
                }
            };

            Elements[KEYSTROKE_ELEMENT_INDEX].Activate +=
                delegate() {
                KeystrokeDialog d = new KeystrokeDialog(this, mpq);
                d.Ok += delegate() { DismissDialog(); };
                ShowDialog(d);
            };
        }
Example #2
0
		protected override void ResourceLoader ()
		{
			base.ResourceLoader ();

			for (int i = 0; i < Elements.Count; i ++)
				Console.WriteLine ("{0}: {1} '{2}'", i, Elements[i].Type, Elements[i].Text);

			Elements[PREVIOUS_ELEMENT_INDEX].Activate +=
				delegate () {
					if (Previous != null)
						Previous ();
				};

			Elements[KEYSTROKE_ELEMENT_INDEX].Activate +=
				delegate () {
					KeystrokeDialog d = new KeystrokeDialog (this, mpq);
					d.Ok += delegate () { DismissDialog (); };
					ShowDialog (d);
				};
		}