private void btnEdit_Click(object sender, EventArgs e)
        {
            if (!btnEdit.Enabled)
            {
                return;
            }
            if (!grdScripts.Redraw)
            {
                return;
            }
            if (grdScripts.DataSource == null)
            {
                return;
            }
            if (grdScripts.RowSel < (grdScripts.Rows.Fixed))
            {
                return;
            }

            string           _referenceno = grdScripts[grdScripts.RowSel, "ReferenceNo"].ToString();
            ScriptInfoDialog _dialog      = new ScriptInfoDialog(_referenceno);

            _dialog.ShowDialog();

            if (_dialog.WithUpdates)
            {
                InitializeScripts();
            }
            _dialog.Dispose(); _dialog = null;

            Materia.RefreshAndManageCurrentProcess();
        }
        private void btnAdd_Click(object sender, EventArgs e)
        {
            if (!btnAdd.Enabled)
            {
                return;
            }
            ScriptInfoDialog _dialog = new ScriptInfoDialog();

            _dialog.ShowDialog();

            if (_dialog.WithUpdates)
            {
                InitializeScripts();
            }
            _dialog.Dispose(); _dialog = null;

            Materia.RefreshAndManageCurrentProcess();
        }