Ejemplo n.º 1
0
        public bool ExecuteDialog(IList <object> list)
        {
            _isModal = true;

            DataGridView grid = new Squadron.Styling.Widgets.StylingGridView();

            grid.Parent = MessageText.Parent;
            MessageText.Hide();

            FormInit();

            grid.Dock          = DockStyle.Fill;
            grid.DataSource    = list;
            grid.SelectionMode = DataGridViewSelectionMode.CellSelect;

            if (IsOverlayRequrired)
            {
                ShowOverlayForm();
            }

            try
            {
                // Show Form
                this.ShowDialog();
            }
            finally
            {
                if (IsOverlayRequrired)
                {
                    HideOverlayForm();
                }
            }

            return(this.DialogResult == DialogResult.OK);
        }
 public override void handFurnitureUIInfo(ref string messageText, ref string actionText, ref KeyCode keyCode, ref Action action)
 {
     actionText = isPlayerHidden ? MessageText.Exit() : MessageText.Hide();
     keyCode    = KeyCode.Space;
     action     = HideLocker;
 }