MySql.Data.VisualStudio.StoredProcedureNode.Load C# (CSharp) Method

Load() protected method

protected Load ( ) : void
return void
        protected override void  Load()
        {
            if (IsNew)
                editor.Text = GetNewRoutineText(); 
            else
            {
                try
                {
                    string sql = GetStoredProcedureBody(String.Format(
                        "SHOW CREATE {0} `{1}`.`{2}`", 
                        IsFunction ? "FUNCTION" : "PROCEDURE", Database, Name), out sql_mode);
                    editor.Text = ChangeSqlTypeTo(sql, "ALTER");
                    Dirty = false;
                }
                catch (Exception ex)
                {
                    MessageBox.Show("Unable to load the stored procedure for editing");
                }
            }
		}