int cursorPos;                                                           //Get the cursor position in the editing

        public gf_serialize(gf_main mainForm, string sign, string mdgvRowConent) //Transmission dgv data
        {
            InitializeComponent();

            main = mainForm;

            msign = sign;
            if (sign == "edit")
            {
                richtxt_command.Text           = mdgvRowConent;
                richtxt_command.SelectionStart = richtxt_command.Text.Length;// Position the cursor to the last
                cursorPos = richtxt_command.SelectionStart;
            }
        }
        string msign = ""; //Judgment is to add or modify

        #endregion Fields

        #region Constructors

        //Transmission dgv data
        public gf_serialize(gf_main mainForm, string sign, string mdgvRowConent)
        {
            InitializeComponent();

            main = mainForm;

            msign = sign;
            if (sign == "edit")
            {
                richtxt_command.Text = mdgvRowConent;
                richtxt_command.SelectionStart = richtxt_command.Text.Length;// Position the cursor to the last
                cursorPos = richtxt_command.SelectionStart;
            }
        }