예제 #1
0
        private void dgvPlugin_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }

            DataGridViewRow row = dgvPlugin.Rows[e.RowIndex];

            string xml = (row.DataBoundItem as PluginGridRow).Manifest.ToXml().ToString();

            SimpleDefContent udscontent = new SimpleDefContent();

            udscontent.Text = (row.DataBoundItem as PluginGridRow).Url;
            udscontent.SetXmlContent(xml);
            udscontent.ShowDialog();
        }
예제 #2
0
        private void dgvUDM_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }

            DataGridViewRow row = dgvUDM.Rows[e.RowIndex];

            string xml = (row.DataBoundItem as UDMGridRow).RawData.ToString();

            SimpleDefContent udscontent = new SimpleDefContent();

            udscontent.Text = row.Cells["chName"].Value + "";
            udscontent.SetXmlContent(xml);
            udscontent.ShowDialog();
        }
예제 #3
0
        private void dgvUDS_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }

            DataGridViewRow row = dgvUDS.Rows[e.RowIndex];

            string name = row.Cells["chName"].Value + "";

            XElement contract = UDS.XPathSelectElement(string.Format("Contract[@Name='{0}']", name));

            SimpleDefContent udscontent = new SimpleDefContent();

            udscontent.Text = name;
            udscontent.SetXmlContent(contract.ToString());
            udscontent.ShowDialog();
        }