예제 #1
0
        private void tsbObjectHistory_Click(object sender, EventArgs e)
        {
            ViewObjectHistory voh = new ViewObjectHistory();

            voh.DatabaseName = DatabaseName;
            voh.ObjectName   = ObjectName;

            voh.ShowDialog();
        }
예제 #2
0
        //private void tsbCheckInOut_Click(object sender, EventArgs e)
        //{
        //    ObjectCheckOut cio = new ObjectCheckOut();

        //    string ObjectText = string.Empty;
        //    string ObjectDescription = string.Empty;

        //    try
        //    {
        //        using (DataStuff sn = new DataStuff())
        //        {
        //            DataTable dt = sn.GetDatabaseObjectText(ConnectionString, DatabaseName, ObjectName);

        //            if (dt.Rows.Count > 1)
        //            {
        //                foreach (DataRow row in dt.Rows)
        //                {
        //                    ObjectText = row["FullDefinition"].ToString();
        //                    ObjectDescription = row["ROUTINE_NAME"].ToString() + ": " + row["ROUTINE_TYPE"].ToString();
        //                }
        //            }
        //            else
        //            {
        //                ObjectText = LoadHelpText(ConnectionString, DatabaseName, ObjectName);

        //                if (ObjectText.Trim() == "")
        //                {
        //                    dt = sn.GetTableHelpText(ConnectionString, DatabaseName, ObjectName);

        //                    foreach (DataRow row in dt.Rows)
        //                    {
        //                        ObjectText = row[0].ToString();
        //                    }

        //                    ObjectText = ObjectText.Replace("~", Environment.NewLine);
        //                }
        //            }

        //            cio.ObjectDescription = ObjectDescription;
        //            cio.ObjectText = ObjectText;
        //            cio.ConnectionString = ConnectionString;
        //            cio.DatabaseName = DatabaseName;
        //            cio.ObjectName = ObjectName;
        //            cio.AliasName = ServerAlias;

        //            cio.ShowDialog();

        //            LoadObjectDetail();
        //            GetObjectStatus();
        //        }
        //    }

        //    catch (Exception ex)
        //    {
        //        MessageBox.Show(ex.Message);
        //    }
        //}

        private void tsbHistory_Click(object sender, EventArgs e)
        {
            ViewObjectHistory oh = new ViewObjectHistory();

            oh.ConnectionString = ConnectionString;
            oh.DatabaseName     = DatabaseName;
            oh.ObjectName       = ObjectName;

            oh.ShowDialog();
        }