コード例 #1
0
 void btn_MouseLeave(object sender, EventArgs e)
 {
     t.StopTyping();
     pict.Image = (Image)Properties.Resources.chooseDevInitImage;
     t          = new TypingText(Properties.Resources.comment_chooseDevice_Initial, txtComment);
     t.StartTyping();
 }
コード例 #2
0
 private void btnProgramm3_MouseEnter(object sender, EventArgs e)
 {
     t.StopTyping();
     pict.Image = (Image)Properties.Resources.NotepadPict;
     t          = new TypingText(Properties.Resources.comment_Notepad, txtComment);
     t.StartTyping();
     //txtComment.Text = Properties.Resources.comment_Notepad; //"Сейчас вы наблюдаете комментарий относительно запуска формы frmMain!";
 }
コード例 #3
0
        private void btnProgramm1_MouseLeave(object sender, EventArgs e)
        {
            //pict.Image = null;
            //txtComment.Text = string.Empty;
            t.StopTyping();

            pict.Image = (Image)Properties.Resources.chooseDevInitImage;
            t          = new TypingText(Properties.Resources.comment_chooseDevice_Initial, txtComment);
            t.StartTyping();
        }
コード例 #4
0
        private void Init()
        {
            bNeedReload = false;
            if (Utils.isFileExist(ListBoardFileName))
            {
                boardsInfo = OpenListBoards(ListBoardFileName);
                ShowBoardInfo(boardsInfo);

                pict.SizeMode = PictureBoxSizeMode.StretchImage;
                pict.Image    = (Image)Properties.Resources.listBoardInitmage;
                t             = new TypingText(Properties.Resources.comment_ListBoard_Initial, txtComment);
                t.StartTyping();
            }
            else
            {
                MessageBox.Show("Файл списка плат не найден!", "Ошибка загрузки файла", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
コード例 #5
0
ファイル: frmHelpBoard.cs プロジェクト: PeterSev/Work
        void Init()
        {
            bNeedReload   = false;
            indexPic      = 0;
            pict.SizeMode = PictureBoxSizeMode.StretchImage;
            board         = _frmMainWindow._frmListBoard.chooseBoard;
            this.Text     = "Подключение платы " + board.Name;

            /*if (Utils.isFileExist(board.Imagelink_help))
             *  pict.Image = Image.FromFile(board.Imagelink_help);
             * else
             *  pict.Image = Properties.Resources.PictLoadError;*/

            ShowPicture(indexPic);

            t = new TypingText(board.Comment_help, txtComment);
            t.StartTyping();
        }
コード例 #6
0
        private void Init()
        {
            bNeedReload = false;

            if (Utils.isFileExist(listFileName))
            {
                filesInfo = OpenListFiles(listFileName);
                ShowFilesInfo(filesInfo);

                pict.SizeMode = PictureBoxSizeMode.StretchImage;
                pict.Image    = (Image)Properties.Resources.chooseDevInitImage;
                t             = new TypingText(Properties.Resources.comment_chooseDevice_Initial, txtComment);
                t.StartTyping();
            }
            else
            {
            }
        }
コード例 #7
0
        void btn_MouseEnter(object sender, EventArgs e)
        {
            Button btn   = (Button)sender;
            int    index = int.Parse(btn.Name.Substring(3, btn.Name.Length - 3));

            t.StopTyping();
            t = new TypingText(boardsInfo.listBoardInfo[index].Comment, txtComment);

            if (Utils.isFileExist(boardsInfo.listBoardInfo[index].Imagelink))
            {
                pict.Image = Image.FromFile(boardsInfo.listBoardInfo[index].Imagelink);
            }
            else
            {
                pict.Image = Properties.Resources.PictLoadError;
            }


            t.StartTyping();
        }