예제 #1
0
        public override void Perform(object o, IExplorer explorer)
        {
            SquadronContext.WriteMessage("Export operation started..");

            try
            {
                SPWeb source = (o as SPWeb);

                if (GetParent())
                {
                    if (CreateDestinationWeb(source))
                    {
                        SquadronHelper.Instance.StartAnimation();

                        if (ExportWeb(source))
                        {
                            if (ImportWeb(_destWeb))
                            {
                                DeleteFolder();
                                Success();
                                explorer.RefreshData();
                            }
                        }
                    }
                }
            }
            finally
            {
                SquadronHelper.Instance.StopAnimation();
                SquadronContext.WriteMessage("Export operation completed.");
            }
        }