Example #1
0
		public static void PopUp( Form owner, string title, string message, bool toolTipMode, PopUpCallback callback )
		{
			PopUpForm form = new PopUpForm();

			form.m_Title = title;
			form.m_Message = message;
			form.m_ToolTipMode = toolTipMode;
			form.m_Callback = callback;

			form.Calculate();

			form.ShowDialog( owner );
		}
Example #2
0
        public static void PopUp(Form owner, string title, string message, bool toolTipMode, PopUpCallback callback)
        {
            var form = new PopUpForm();

            form.m_Title       = title;
            form.m_Message     = message;
            form.m_ToolTipMode = toolTipMode;
            form.m_Callback    = callback;

            form.Calculate();

            form.ShowDialog(owner);
        }
Example #3
0
 public void ShowDialog(PopUpType dialogType, GameTime gameTime, PopUpCallback popUpCallback)
 {
     if (!IsActive)
     {
         activePopUp = dialogType;
         popUps[activePopUp].Activate(gameTime);
         popUps[activePopUp].PopUpCallback = popUpCallback;
         Visible = true;
         Enabled = true;
         Shorewood.pop.Play();
         if (popUps[activePopUp].blur)
         {
             Shorewood.bloom.Enabled = true;
             Shorewood.bloom.Visible = true;
         }
     }
 }