Exemple #1
0
    private void CheckVersion()
    {
        finished = false;
        List <int> latest = GetVersion(latestVersion);

        if (UpToDate(GetVersion(currentVersion), latest))
        {
            updateHistoryText.SetStrings("The program is up to date.", "程序已是最新版本");
            return;
        }
        updateHistoryText.SetStrings("New version detected", "检测到新版本");
        FindObjectOfType <UpdateHistory>().Deactivate();
        MessageScreen.Activate(
            new[] { "New version of Deenote detected", "检测到新版本" },
            new[]
        {
            "Current version: " + currentVersion + " | Latest version: " + latestVersion,
            "当前版本: " + currentVersion + " | 最新版本: " + latestVersion
        },
            new[] { "Go to release page", "转到发布页面" },
            () => Process.Start("https://github.com/Chlorie/Deenote/releases/latest"),
            new[] { "Go to download page", "转到下载页面" },
            GoToDownloadPage,
            new[] { "Update later", "稍后更新" });
    }
Exemple #2
0
 public void ConfirmButtonPressed() //Project - New - Confirm
 {
     project          = new Project();
     audioFileBytes   = File.ReadAllBytes(songFile.FullName);
     songAudioClip    = AudioLoader.LoadFromBuffer(audioFileBytes, songFile.Extension);
     project.songName = songFile.Name;
     project.charts   = new Chart[4];
     for (int i = 0; i < 4; i++)
     {
         project.charts[i] = new Chart
         {
             difficulty = i,
             level      = "1"
         }
     }
     ;
     stage.musicSource.clip = songAudioClip;
     infoPanelButton.SetActive(true);
     chartsPanelButton.SetActive(true);
     newProjectPanel.SetActive(false);
     infoPanel.SetActive(true);
     currentInStage = -1;
     InfoInitialization();
     LvlInputFieldInit();
     if (songAudioClip == null)
     {
         MessageScreen.Activate(
             new[] { "Failed to load audio", "读取音频失败" },
             new[] { "Please select another audio file", "请选择其他的音频文件" },
             new[] { "Load another audio file", "读取其他的音频文件" },
             ChangeMusicFile);
     }
 }
    public GameScreen(int Width, int Height) : base(Width, Height)
    {
        World = new World();
        new WorldBuilder(World).Build();

        World.AddEntity(new Guard(World, new XY(-2, 0)));

        Player = new Player(World, new XY(0, 0));
        World.AddEntity(Player);
        World.UpdatePresent();
        World.UpdateSpace();

        World.brightness.Clear();
        foreach (var e in World.entities.all.OfType <Light>())
        {
            e.UpdateLight();
        }

        WorldScreen   = new WorldScreen(Width, Height - 10, World, Player);
        MessageScreen = new MessageScreen(Width, 10, Player)
        {
            Position = new Point(0, Height - 10)
        };

        Children.Add(WorldScreen);
        Children.Add(MessageScreen);
    }
Exemple #4
0
 //-File Panel-
 public void NewProject() //Project - New
 {
     if (project != null)
     {
         stage.StopPlaying();
         stage.editor.pianoSoundEditor.Deactivate(false);
         MessageScreen.Activate(
             new string[] { "Current project will be closed when you start a new project", "启动新项目时当前的项目会被关闭" },
             new string[] { "<color=#ff5555>Make sure that you have SAVED your project!</color>", "<color=#ff5555>请确认你已经保存当前的项目文件!</color>" },
             new string[] { "Start a new project now!", "启动新项目!" }, ClearStageStartNewProject,
             new string[] { "Take me back to my project", "返回到当前项目" }, delegate { dragAndDropFileName = null; });
         clearStageNewProjectMode = true;
         return;
     }
     songFile                   = null;
     projectFileName            = null;
     projectFolder              = null;
     songSelectButtonText.color = new Color(25.0f / 64, 25.0f / 64, 25.0f / 64, 0.5f);
     fileSelectButtonText.color = new Color(25.0f / 64, 25.0f / 64, 25.0f / 64, 0.5f);
     songSelectButtonText.SetStrings("Select the song file", "选择音乐文件");
     fileSelectButtonText.SetStrings("Create a new project file", "创建新工程文件");
     newProjectPanel.SetActive(true);
     filePanel.SetActive(false);
     CheckConfirmButton();
 }
Exemple #5
0
 private void Awake()
 {
     if (!Main)
     {
         Main         = this;
         canvasToggle = GetComponent <CanvasToggle>();
     }
 }
Exemple #6
0
 public void OpenQuitScreen()
 {
     MessageScreen.Activate(
         new string[] { "Are you sure that you want to quit?", "真的要退出吗?" },
         new string[] { "<color=#ff5555>Make sure that you have SAVED your project!</color>", "<color=#ff5555>请确认你已经保存当前的项目文件!</color>" },
         new string[] { "Yes, I'm quite sure! Quit now!", "是的, 我很确定(理直气壮)" }, QuitScreenYes,
         new string[] { "No, take me back to my project...", "不是, 回到刚才的项目..." });
 }
Exemple #7
0
        private void ShowAward(Award award)
        {               // Меню ввывода на экран информации о награде
            bool          exit        = false;
            int           curposition = 0;
            List <string> items       = new List <string>()
            {
                $"Название награды: {award.title}", "", "НАГРАЖДЁННЫЕ ПОЛЬЗОВАТЕЛИ:", ""
            };
            List <User>   awardsUsers  = bllAwardsAssotiations.GetAllUsersWithAward(award);
            List <string> itemsWawards = items.Concat(awardsUsers.Select(item => $"-{item.name}")).ToList();

            while (!exit)
            {
                int[] feedback = NavigationMenu.CreateMenu(name, " Меню награды. Для перемотки используйте клавиши вниз и вверх. Для изменения выберите название награды:", itemsWawards, false, curposition);

                switch (feedback[0])
                {
                case -1:

                    exit = true;
                    break;

                case 1:

                    if (feedback[1] == 0)
                    {
                        string oldTitle  = award.title;
                        string awardName = draw.Form(new int[] { 2, 10 }, new string[] { "Введите новое название награды: ", "К вводу допускаютя только слова без символов!" });

                        if (bllAwards.UpdateAward(award.id, awardName))
                        {
                            MessageScreen.CreateMessage($" Название награды '{oldTitle}' изменено успешно! ", $"Новое название: {awardName}", errorMsg: false);
                            items = new List <string>()
                            {
                                $"Название награды: {award.title}", "", "НАГРАЖДЁННЫЕ ПОЛЬЗОВАТЕЛИ:", ""
                            };
                            itemsWawards = items.Concat(awardsUsers.Select(item => $"-{item.name}")).ToList();
                        }
                        else
                        {
                            MessageScreen.CreateMessage(" Не удалось изменить название награды! ");
                        }
                    }

                    curposition = feedback[1];
                    break;

                default:

                    curposition = feedback[1];
                    break;
                }
            }
        }
Exemple #8
0
        public void OnSMSReceived(string message)
        {
            if (InvokeRequired)
            {
                Invoke(new SMSProvider.SMSRecievedDelegate(OnSMSReceived), message);
                return;
            }
            string formattedMessage = _format.Formatter(message);

            formattedMessage += Environment.NewLine;
            MessageScreen.AppendText(formattedMessage);
        }
Exemple #9
0
 public void ExportAllJSONCharts(int diff)
 {
     if (project != null)
     {
         JSONExportDirectorySelect(diff + 4);
     }
     else
     {
         MessageScreen.Activate(new string[] { "No project file is opened!", "目前没有已经打开的项目文件!" },
                                new string[] { "<color=ff7f7f>What are you expecting to be exported???</color>",
                                               "<color=ff7f7f>你认为这样能导出什么东西呢???</color>" },
                                new string[] { "Back", "返回" }, delegate { });
     }
 }
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            _spriteBatch = new SpriteBatch(GraphicsDevice);
            GameContent.Initialize(Content);

            _title = new TitleScreen("Images/arena", Width, Height);

            _hostingScreen   = new MessageScreen("Images/arena", Width, Height, "Searching for Players...");
            _searchingScreen = new MessageScreen("Images/arena", Width, Height, "Searching for Games...");

            //Reset();

            _titleSong = GameContent.LoadContent <Song>("Music/Title");
            _gameSong  = GameContent.LoadContent <Song>("Music/Arena");

            MediaPlayer.Play(_titleSong);
            MediaPlayer.IsRepeating = true;
        }
        private void BindingKeyLabel_LeftMouseClick(Control sender, MouseEventArgs args)
        {
            object[] data = (object[])sender.Tag;
            string id = (string)data[0];
            Keys oldKey = (Keys)data[1];

            Label lbl = (Label)sender;

            MessageScreen screen = new MessageScreen(Manager, "Press key...", "", "Cancel");
            screen.KeyDown += (s, a) =>
            {
                Manager.Game.KeyMapper.RemoveKey(id, oldKey);
                Manager.Game.KeyMapper.AddKey(id, a.Key);
                data[1] = a.Key;
                Manager.Game.Settings.Set("KeyMapper-" + id, a.Key.ToString());
                lbl.Text = a.Key.ToString();
                Manager.NavigateBack();
            };
            Manager.NavigateToScreen(screen);
        }
Exemple #12
0
 private void NewSongSelected()
 {
     songFile          = new FileInfo(directorySelectorController.selectedItemFullName);
     songNameText.text = songFile.Name;
     project.songName  = songNameText.text;
     directorySelectorController.DeactivateSelection();
     audioFileBytes = File.ReadAllBytes(songFile.FullName);
     songAudioClip  = AudioLoader.LoadFromBuffer(audioFileBytes, songFile.Extension);
     if (songAudioClip == null)
     {
         MessageScreen.Activate(
             new[] { "Failed to load audio", "读取音频失败" },
             new[] { "Please select another audio file", "请选择其他的音频文件" },
             new[] { "Load another audio file", "读取其他的音频文件" },
             ChangeMusicFile);
         return;
     }
     stage.musicSource.clip    = songAudioClip;
     stage.timeSlider.value    = 0.0f;
     stage.timeSlider.maxValue = songAudioClip.length;
     stage.OnSliderValueChanged();
 }
Exemple #13
0
    public IEnumerator ProjectToLoadSelected(string fileName = null)
    {
        string   projectFullDir = fileName ?? directorySelectorController.selectedItemFullName;
        string   audioType      = null;
        FileInfo projectFile;

        directorySelectorController.DeactivateSelection();
        dragAndDropFileName = null;
        yield return(StartCoroutine(projectSL.LoadProjectFromFile(res => project = res,
                                                                  res => audioFileBytes = res, res => audioType = res, projectFullDir)));

        songAudioClip = AudioLoader.LoadFromBuffer(audioFileBytes, audioType);
        infoPanelButton.SetActive(true);
        chartsPanelButton.SetActive(true);
        songAudioClip?.LoadAudioData();
        stage.musicSource.clip = songAudioClip;
        editPanelButton.SetActive(false);
        projectFile     = new FileInfo(projectFullDir);
        projectFileName = projectFile.Name.Remove(projectFile.Name.Length - 7, 7);
        projectFolder   = projectFile.FullName.Remove(projectFile.FullName.Length - projectFile.Name.Length, projectFile.Name.Length);
        filePanel.SetActive(false);
        currentInStage = -1;
        InfoInitialization();
        LvlInputFieldInit();
        if (songAudioClip == null)
        {
            MessageScreen.Activate(
                new[] { "Failed to load audio", "读取音频失败" },
                new[] { "Please select another audio file", "请选择其他的音频文件" },
                new[] { "Load another audio file", "读取其他的音频文件" },
                ChangeMusicFile);
        }
        yield return(new WaitForSeconds(3.0f));

        projectSL.loadCompleteText.SetActive(false);
    }
Exemple #14
0
 public void LoadProject() //Project - Open
 {
     if (project != null)
     {
         stage.StopPlaying();
         stage.editor.pianoSoundEditor.Deactivate(false);
         MessageScreen.Activate(
             new string[] { "Current project will be closed when you start a new project", "启动新项目时当前的项目会被关闭" },
             new string[] { "<color=#ff5555>Make sure that you have SAVED your project!</color>", "<color=#ff5555>请确认你已经保存当前的项目文件!</color>" },
             new string[] { "Start a new project now!", "启动新项目!" }, ClearStageStartNewProject,
             new string[] { "Take me back to my project", "返回到当前项目" }, delegate { dragAndDropFileName = null; });
         clearStageNewProjectMode = false;
         return;
     }
     if (dragAndDropFileName == null || dragAndDropFileName == "")
     {
         string[] extensions = { ".dsproj" };
         directorySelectorController.ActivateSelection(extensions, ProjectToLoadSelected());
     }
     else
     {
         StartCoroutine(ProjectToLoadSelected(dragAndDropFileName));
     }
 }
 // GET: Message
 public ActionResult Index(MessageScreen model)
 {
     return(View(model));
 }
 public ActionResult OrderConfirmation(MessageScreen model)
 {
     return(View(model));
 }
 private void ShowMessage() => MessageScreen.Activate(
     new[] { "Unhandled exception detected", "发现未经处理的异常" },
     new[] { "Full information has been output to exceptions.log", "完整信息已输出至exceptions.log" },
     new[] { "OK, got it", "好的, 我知道了" }, () => { });
Exemple #18
0
        // ДАЛЕЕ ОПИСЫВВАЕТСЯ СТРУКТУРА КОНСОЛЬНОГО МЕНЮ


        private void ShowUserList()
        {               // Меню отображения списка пользователей
            List <User>   users        = bllUsers.GetAllUsers();
            List <string> defaultItems = new List <string>()
            {
                "[   Создать пользователя   ]", "[ Посмотреть список наград ]", ""
            };
            List <string> menuItems = defaultItems.Concat(users.Select(item => item.name)).ToList();

            bool exit        = false;
            int  curposition = 0;

            while (!exit)
            {
                int[] feedback = NavigationMenu.CreateMenu(name, " Главное меню. Список пользователей. Для перемотки используйте клавиши вниз и вверх", menuItems, true, curposition, 2);

                switch (feedback[0])
                {
                case -1:

                    exit = true;
                    break;

                case 0:

                    if (bllUsers.RemoveUser(users[feedback[1] - 3]))
                    {
                        MessageScreen.CreateMessage(" Пользователь удалён успешно! ", $"Имя: {menuItems[feedback[1]]}", errorMsg: false);
                    }
                    else
                    {
                        MessageScreen.CreateMessage(" Не удалось удалить пользователя! ", $"Имя: {menuItems[feedback[1]]}");
                    }

                    users.RemoveAt(feedback[1] - 3);
                    menuItems.RemoveAt(feedback[1]);
                    curposition = feedback[1] - 1;
                    break;

                case 1:

                    if (feedback[1] == 0)
                    {
                        User user = CreateUser();

                        if (user != null)
                        {
                            int curLength = menuItems.Count;
                            users.Add(user);
                            menuItems.Add(user.name);
                            MessageScreen.CreateMessage(" Пользователь создан успешно! ", $"Имя: {menuItems[curLength]}", errorMsg: false);
                        }
                        else
                        {
                            MessageScreen.CreateMessage(" Не удалось создать пользователя! ", errorMsg: true);
                        }

                        curposition = 0;
                    }
                    else if (feedback[1] == 1)
                    {
                        ShowAwards();
                        curposition = feedback[1];
                    }
                    else
                    {
                        ShowUser(users[feedback[1] - 3]);
                        users       = bllUsers.GetAllUsers();
                        menuItems   = defaultItems.Concat(users.Select(item => item.name)).ToList();
                        curposition = feedback[1];
                    }

                    break;

                default:
                    curposition = feedback[1];
                    break;
                }
            }
        }
Exemple #19
0
        public void ShowResult(bool won, int amount, Action done)
        {
            MessageScreen screen = null;

            if (won)
            {
                m_globalUI.RemoveOverlay();

                screen = Instantiate(m_victoryScreen);
                m_globalUI.Open(screen);

                screen.Init("Congratulations! You have won Rs. " + amount + ".", false, true, () =>
                {
                    m_globalUI.CloseLastScreen();
                });

                if (Random.Range(0, 10) < 3)
                {
                    m_hostView.Express(Expression.BLINK);
                }
                else
                {
                    m_hostView.Express(Expression.SMILE);
                }
            }
            else
            {
                m_globalUI.RemoveOverlay();

                screen = Instantiate(m_lostScreen);
                m_globalUI.Open(screen);

                screen.Init("You lost Rs. " + amount + ".\n Try next time.", false, true, () =>
                {
                    m_globalUI.CloseLastScreen();
                });

                if (Random.Range(0, 10) < 3)
                {
                    m_hostView.Express(Expression.SHOCK);
                }
                else
                {
                    m_hostView.Express(Expression.CRY);
                }
            }

            if (won)
            {
                AudioManager.Instance.PlayOneShot(AudioManager.Instance.GetClipFromPlaylist(CheersAudio), Vector3.zero, .4f);
            }

            m_globalUI.Overlay(screen.transform);
            m_hostView.CollectDice(done);
            m_globalUI.UpdateCoins(won ? amount : -amount);

            if (won)
            {
                m_player.RoundsWon += 1;
            }
            m_player.RoundsPlayed += 1;
            PlayerPrefs.SetInt(Lucky7.RoundsCount, PlayerPrefs.GetInt(Lucky7.RoundsCount, 0) + 1);
            PlayerPrefs.SetInt(Lucky7.WinCount, PlayerPrefs.GetInt(Lucky7.WinCount, 0) + 1);
        }
Exemple #20
0
        private void ShowUser(User user)
        {               // Меню вывода на экран информации о пользовавтеле
            bool          exit        = false;
            int           curposition = 0;
            List <string> items       = new List <string>()
            {
                $"Имя: {user.name}", $"Возраст: {user.age}", $"Дата рождения: {user.birth:D}", "", " [ Наградить пользователя ]", "", "НАГРАДЫ ПОЛЬЗОВАТЕЛЯ:", ""
            };
            List <Award>  usersAwards  = bllAwardsAssotiations.GetAllAwardsOfUser(user);
            List <string> itemsWawards = items.Concat(usersAwards.Select(item => $"-{item.title}")).ToList();

            while (!exit)
            {
                int[] feedback = NavigationMenu.CreateMenu(name, " Меню пользователя. Для перемотки используйте клавиши вниз и вверх. Для изменения выберите желаемый пункт", itemsWawards, true, curposition, 7);

                switch (feedback[0])
                {
                case -1:

                    exit = true;
                    break;

                case 0:

                    if (bllAwardsAssotiations.RemoveAwardFromUser(user, usersAwards[feedback[1] - 8]))
                    {
                        MessageScreen.CreateMessage($" У пользователя {user.name} успешно отняли награду! ", errorMsg: false);
                        itemsWawards.RemoveAt(feedback[1]);
                        curposition = feedback[1] - 1;

                        while (itemsWawards[curposition] == "")
                        {
                            curposition -= 1;
                        }

                        break;
                    }
                    else
                    {
                        MessageScreen.CreateMessage(" Не удалось отнять награду пользователя! ");
                    }

                    curposition = feedback[1];
                    break;

                case 1:
                    if (feedback[1] < 3)
                    {
                        string oldName = user.name;

                        if (feedback[1] == 0)
                        {
                            string userName = draw.Form(new int[] { 2, 3 }, new string[] { "Введите имя пользователя: ", "К вводу допускаютя только имена!" });

                            if (bllUsers.UpdateUser(user.id, userName, user.age, user.birth))
                            {
                                MessageScreen.CreateMessage($" Имя пользователя {oldName} изменено успешно! ", $"Новое имя: {userName}", errorMsg: false);
                            }
                            else
                            {
                                MessageScreen.CreateMessage(" Не удалось изменить имя пользователя! ");
                            }
                        }
                        else if (feedback[1] == 1)
                        {
                            int    oldAge  = user.age;
                            string userAge = draw.Form(new int[] { 0, 1, 150 }, new string[] { "Введите возраст пользователя: ", "К вводу допускаютя только целые числа больше 0 и меньше 150!" });

                            if (bllUsers.UpdateUser(user.id, user.name, Int32.Parse(userAge), user.birth))
                            {
                                MessageScreen.CreateMessage($" Возраст пользователя {oldName} изменён успешно! ", $"Новый возраст: {userAge}", errorMsg: false);
                            }
                            else
                            {
                                MessageScreen.CreateMessage(" Не удалось изменить возраст пользователя! ");
                            }
                        }
                        else if (feedback[1] == 2)
                        {
                            bool dateChanged = false;
                            bool showError   = false;

                            while (!dateChanged)
                            {
                                string   date      = draw.Form(new int[] { 1, 3, 1, DateTime.Now.Year }, new string[] { "Введите дату рождения в формате: ДЕНЬ,МЕСЯЦ,ГОД: ", "К вводу допускаютя только даты в формате: ДЕНЬ,МЕСЯЦ,ГОД!" }, showError);
                                string[] dateParts = date.Split(',');

                                try
                                {
                                    DateTime birthDate = new DateTime(Int32.Parse(dateParts[2]), Int32.Parse(dateParts[1]), Int32.Parse(dateParts[0]));

                                    if (bllUsers.UpdateUser(user.id, user.name, user.age, birthDate))
                                    {
                                        MessageScreen.CreateMessage($" Дата рождения пользователя {user.name} изменена успешно! ", $"Новая дата: {birthDate:D}", errorMsg: false);
                                    }
                                    else
                                    {
                                        MessageScreen.CreateMessage(" Не удалось изменить дату рождения пользователя! ");
                                    }
                                    dateChanged = true;
                                }
                                catch (ArgumentOutOfRangeException)
                                {
                                    showError = true;
                                }
                            }
                        }

                        user  = bllUsers.GetUserByID(user.id);
                        items = new List <string>()
                        {
                            $"Имя: {user.name}", $"Возраст: {user.age}", $" Дата рождения: {user.birth:D}", "", "[ Наградить пользователя ]", "", " НАГРАДЫ ПОЛЬЗОВАТЕЛЯ:", ""
                        };
                        itemsWawards = items.Concat(bllAwardsAssotiations.GetAllAwardsOfUser(user).Select(item => $"-{item.title}")).ToList();
                    }
                    else if (feedback[1] == 4)
                    {
                        Award award = ShowAwards(true);

                        if (award != null)
                        {
                            if (bllAwardsAssotiations.AddAwardToUser(user, award))
                            {
                                MessageScreen.CreateMessage($" Пользователю {user.name} успешно добавлена награда! ", errorMsg: false);
                                itemsWawards = items.Concat(bllAwardsAssotiations.GetAllAwardsOfUser(user).Select(item => $"-{item.title}")).ToList();
                            }
                            else
                            {
                                MessageScreen.CreateMessage(" Не удалось вручить награду пользователю! ");
                            }
                        }
                    }

                    curposition = feedback[1];
                    break;

                default:

                    break;
                }
            }
        }
Exemple #21
0
        private Award ShowAwards(bool selection = false)
        {               // Меню отображения списка наград
            bool          exit        = false;
            int           curposition = 0;
            List <string> menuItems;
            List <Award>  items = bllAwards.GetAllAwards();


            if (!selection)
            {
                menuItems = new List <string>()
                {
                    "[ Добавить награду ]", ""
                }.Concat(items.Select(item => item.title)).ToList();
            }
            else
            {
                menuItems = items.Select(item => item.title).ToList();

                if (menuItems.Count == 0)
                {
                    MessageScreen.CreateMessage(" Список наград пуст! ", errorMsg: true);
                    exit = true;
                }
            }

            while (!exit)
            {
                int[] feedback;

                if (!selection)
                {
                    feedback = NavigationMenu.CreateMenu(name, " Меню наград. Для перемотки используйте клавиши вниз и вверх", menuItems, true, curposition, 1);
                }
                else
                {
                    feedback = NavigationMenu.CreateMenu(name, " Меню наград. Для перемотки используйте клавиши вниз и вверх", menuItems, false, curposition);
                }


                switch (feedback[0])
                {
                case -1:

                    exit = true;
                    break;

                case 0:

                    if (!selection)
                    {
                        if (bllAwards.RemoveAward(items[feedback[1] - 2]))
                        {
                            MessageScreen.CreateMessage(" Награда удалена успешно! ", $"Имя: {menuItems[feedback[1]]}", errorMsg: false);
                        }
                        else
                        {
                            MessageScreen.CreateMessage(" Не удалось удалить награду! ", $"Имя: {menuItems[feedback[1]]}");
                        }
                        items.RemoveAt(feedback[1] - 2);
                        menuItems.RemoveAt(feedback[1]);
                        curposition = feedback[1] - 1;
                        break;
                    }

                    curposition = feedback[1];
                    break;

                case 1:

                    if (selection)
                    {
                        return(items[feedback[1]]);
                    }

                    if (feedback[1] == 0)
                    {
                        string awardName = draw.Form(new int[] { 2, 10 }, new string[] { "Введите назание награды (максимум 10 слов): ", "К вводу допускаютя только слова состоящие из букв!" });
                        Award  award     = bllAwards.AddAward(awardName);

                        if (award != null)
                        {
                            items.Add(award);
                            menuItems.Add(award.title);
                            MessageScreen.CreateMessage(" Награда создана успешно! ", $"Награда: '{awardName}'", errorMsg: false);
                        }
                        else
                        {
                            MessageScreen.CreateMessage(" Не удалось создать награду! ");
                        }
                        curposition = 0;
                    }
                    else
                    {
                        curposition = feedback[1];
                        ShowAward(items[feedback[1] - 2]);
                    }

                    break;

                default:

                    curposition = feedback[1];
                    break;
                }
            }
            return(null);
        }