void extEdotForm_Completed(object sender, ExtEventArg e)
        {
            DataGridViewRow row = dgExt.SelectedRows[0];

            row.Cells[dgExtDisplay.Name].Value = ExtendAuthEditor.GetDisplay(e.Result);
            row.Cells[dgExtType.Name].Value    = e.ExtType;
            row.Tag = e.Result;
        }
        void extForm_Completed(object sender, ExtEventArg e)
        {
            ExtPropForm extForm = sender as ExtPropForm;

            extForm.Completed -= new EventHandler <ExtEventArg>(extForm_Completed);

            int index = dgExt.Rows.Add();

            dgExt.Rows[index].Cells[dgExtType.Name].Value    = e.ExtType;
            dgExt.Rows[index].Cells[dgExtDisplay.Name].Value = ExtendAuthEditor.GetDisplay(e.Result);
            dgExt.Rows[index].Tag = e.Result;
        }
Beispiel #3
0
        private void btnSubmit_Click(object sender, EventArgs e)
        {
            if (Completed != null)
            {
                XmlElement result = XmlHelper.ParseAsDOM("<ExtendProperty/>");
                result.SetAttribute("Type", "SQL");
                XmlNode section = result.OwnerDocument.CreateCDataSection(txtSQL.Text);
                result.AppendChild(section);

                ExtEventArg arg = new ExtEventArg(result, "SQL");
                Completed.Invoke(this, arg);
            }
            this.Close();
        }
        private void btnSubmit_Click(object sender, EventArgs e)
        {
            if (Completed != null)
            {                
                XmlElement result = XmlHelper.ParseAsDOM("<ExtendProperty/>");
                result.SetAttribute("Type", "SQL");
                XmlNode section = result.OwnerDocument.CreateCDataSection(txtSQL.Text);
                result.AppendChild(section);

                ExtEventArg arg = new ExtEventArg(result, "SQL");
                Completed.Invoke(this, arg);
            }
            this.Close();
        }
 void extEdotForm_Completed(object sender, ExtEventArg e)
 {
     DataGridViewRow row = dgExt.SelectedRows[0];
     row.Cells[dgExtDisplay.Name].Value = ExtendAuthEditor.GetDisplay(e.Result);
     row.Cells[dgExtType.Name].Value = e.ExtType;
     row.Tag = e.Result;
 }
        void extForm_Completed(object sender, ExtEventArg e)
        {
            ExtPropForm extForm = sender as ExtPropForm;
            extForm.Completed -= new EventHandler<ExtEventArg>(extForm_Completed);

            int index = dgExt.Rows.Add();
            dgExt.Rows[index].Cells[dgExtType.Name].Value = e.ExtType;
            dgExt.Rows[index].Cells[dgExtDisplay.Name].Value = ExtendAuthEditor.GetDisplay(e.Result);
            dgExt.Rows[index].Tag = e.Result;
        }