コード例 #1
0
ファイル: InputCelltextDialog.cs プロジェクト: kevL/yata
        /// <summary>
        /// Handles a click on the Okay button.
        /// </summary>
        /// <param name="sender"><c><see cref="bu_Okay"/></c></param>
        /// <param name="e"></param>
        void click_Okay(object sender, EventArgs e)
        {
            if (YataGrid.VerifyText_edit(tb_Input))
            {
                _readyTextchanged = true;
                la_Head.ForeColor = Color.Firebrick;
                la_Head.Text      = "The text has changed.";
            }
            else
            {
                var f = _f as Yata;

                f._copytext = new string[, ] {
                    { tb_Input.Text }
                };

                if (f._fclip != null)
                {
                    f._fclip.SetCellsBufferText();
                }

                DialogResult = DialogResult.OK;
            }
        }