Exemplo n.º 1
0
        public static string GetStatusApplicationString(StatusApplication status)
        {
            switch (status)
            {
            case StatusApplication.Create:
                return("Создана");

            case StatusApplication.Accept:
                return("В работе");

            case StatusApplication.Complete:
                return("Выполнена");

            case StatusApplication.Cancel:
                return("Отменена");

            case StatusApplication.Revoke:
                return("Отозвана");

            case StatusApplication.Refuse:
                return("Отказано");

            default:
                return("Неизвестно");
            }
        }
Exemplo n.º 2
0
 public void SetGame(Color startColor, StatusPlayer pl1, StatusPlayer pl2, int depth1, int depth2,
                     Search s1, Search s2, Evaluate e1, Evaluate e2, StatusGame statusGame)
 {
     statusApplication        = StatusApplication.game;
     color                    = startColor;
     statusPlayer[(int)color] = pl1;
     statusPlayer[(int)GetOtherColor(color)] = pl2;
     statusSearch[(int)color] = s1;
     statusSearch[(int)GetOtherColor(color)] = s2;
     statusDepth[(int)color] = depth1;
     statusDepth[(int)GetOtherColor(color)]    = depth2;
     statusEvaluate[(int)color]                = e1;
     statusEvaluate[(int)GetOtherColor(color)] = e2;
     this.statusGame = statusGame;
 }
Exemplo n.º 3
0
        public void CreateBoard(StatusApplication appl)
        {
            panelborder.Controls.Clear();
            panelborder.Controls.Add(panel1);
            panelborder.Enabled = true;
            panelborder.Visible = true;
            panel1.Enabled      = true;
            panel1.Visible      = true;
            //panelBackground.BackColor = System.Drawing.Color.Transparent;
            int sizeCell          = 0;
            int sizeBorderDivCell = 0;

            if (appl == StatusApplication.game)
            {
                sizeCell             = 73;
                sizeBorderDivCell    = 8;
                panelborder.Location = new Point((919 - (sizeCell + sizeBorderDivCell) * 8) / 2, 12);
                panelborder.Size     = new System.Drawing.Size(8 * (sizeCell + sizeBorderDivCell), 8 * (sizeCell + sizeBorderDivCell));
                SetInBorder(sizeCell, sizeBorderDivCell * 4, panelborder);
                panel1.Location = new Point(sizeBorderDivCell * 4, sizeBorderDivCell * 4);
                panel1.Size     = new System.Drawing.Size(8 * sizeCell, 8 * sizeCell);
            }
            else
            {
                sizeCell             = 63;
                sizeBorderDivCell    = 7;
                panelborder.Location = new Point(90, 62);
                panelborder.Size     = new System.Drawing.Size(8 * (sizeCell + sizeBorderDivCell), 8 * (sizeCell + sizeBorderDivCell));
                SetInBorder(sizeCell, sizeBorderDivCell * 4, panelborder);
                panel1.Location = new Point(sizeBorderDivCell * 4, sizeBorderDivCell * 4);
                panel1.Size     = new System.Drawing.Size(8 * sizeCell, 8 * sizeCell);
            }
            if (board == null)
            {
                Cell.SetImages();
            }
            else
            {
                board.Delete(panel1);
            }
            board = new ViewBoard(controller, sizeCell, panel1);
        }
 public ActionResult <IEnumerable <Status> > Get([FromServices] StatusApplication statusApplication)
 {
     return(statusApplication.GetAll().ToList());
 }
Exemplo n.º 5
0
 public void SetStatusApplication(StatusApplication st)
 {
     statusApplication = st;
 }
 public StatusApplication SetStatus(StatusApplication status)
 {
     this.Status = status;
     return(this.Status);
 }