Ejemplo n.º 1
0
        private void viewScriptToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.dgDetail.SelectedCells.Count == 0)
            {
                return;
            }


            SqlSyncBuildData.ScriptRunRow row     = (SqlSyncBuildData.ScriptRunRow)((System.Data.DataRowView) this.dgDetail.SelectedCells[0].OwningRow.DataBoundItem).Row;
            ScriptDisplayForm             frmDisp = new ScriptDisplayForm(row.Results, row.Database, row.FileName);

            frmDisp.ShowDialog();
            frmDisp.Dispose();
        }
        public ScriptRunResultsForm(SqlSyncBuildData.ScriptRunRow runRow)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.lblDatabase.Text = runRow.Database;
            this.lblEnd.Text      = runRow.RunEnd.ToString();
            this.lblRunOrder.Text = runRow.RunOrder.ToString();
            this.lblStart.Text    = runRow.RunStart.ToString();
            this.rtbResults.Text  = runRow.Results;
            this.lblSuccess.Text  = runRow.Success.ToString();
            this.Text             = String.Format(this.Text, new object[] { runRow.FileName });
        }