Example #1
0
        public ActionPanel(string Name, ActionPanelHolder ListActionMenuChoice, bool CanCancel)
        {
            this.CanCancel            = CanCancel;
            this.Name                 = Name;
            this.ListActionMenuChoice = ListActionMenuChoice;
            ActionMenuWidth           = MinActionMenuWidth;

            ListNextChoice = new List <ActionPanel>();
            if (ListActionMenuChoice.HasMainPanel)
            {
                ActionPanel LastPanel = ListActionMenuChoice.Last();

                MenuX = LastPanel.MenuX;
                MenuY = LastPanel.MenuY;
            }
        }
        public ActionPanel(string Name, ActionPanelHolder ListActionMenuChoice, bool CanCancel)
        {
            this.Name = Name;
            this.ListActionMenuChoice = ListActionMenuChoice;
            this.CanCancel            = CanCancel;

            ActionMenuWidth  = MinActionMenuWidth;
            IsEnabled        = true;
            SendBackToSender = false;

            ListNextChoice = new List <ActionPanel>();
            if (ListActionMenuChoice.HasMainPanel)
            {
                ActionPanel LastPanel = ListActionMenuChoice.Last();

                BaseMenuX  = LastPanel.BaseMenuX;
                BaseMenuY  = LastPanel.BaseMenuY;
                FinalMenuX = LastPanel.BaseMenuX;
                FinalMenuX = LastPanel.BaseMenuY;
            }
        }