public CopyXML(frmCompare obj, ref Logic objlogicobj) { form1obj = obj; logicobj = objlogicobj; InitializeComponent(); this.StartPosition = FormStartPosition.CenterScreen; }
private void CompareDatabase(TreeNode node) { Database database = node.Tag as Database; frmCompare frmCompare = new frmCompare(this.databaseType, this.GetConnectionInfo(database.Name)); frmCompare.ShowDialog(); }
void CompareScript(int rowindex) { string spname = dgvSP.Rows[rowindex].Cells[3].Value.ToString(); StoredProcedureBusiness spdata = new StoredProcedureBusiness(); int sourceid = Convert.ToInt32(dgvSP.Rows[rowindex].Cells[5].Value); int toid = Convert.ToInt32(dgvSP.Rows[rowindex].Cells[6].Value); var serverlist = new EntityBusiness().GetServerList(); var serversource = serverlist.Where(x => x.ServerID == sourceid).First(); var serverto = serverlist.Where(x => x.ServerID == toid).First(); string leftquery = new StoredProcedureBusiness().GetScript(serversource, spname); string rightquery = new StoredProcedureBusiness().GetScript(serverto, spname); frmCompare frm = new frmCompare(leftquery, rightquery); frm.Show(); }
public CopyXML(frmCompare obj, bool isSearchForm) { form1obj = obj; isSearch = isSearchForm; InitializeComponent(); }