Class currently not in use, but should(or maybe not?) be used for displaying info about picked up object.
Inheritance: MonoBehaviour
        private void PositionElements()
        {
            var x      = _splash == null ? 2 : _splash.ImageLocation.X;
            var y      = _splash == null ? 2 : _splash.ImageLocation.Y;
            var height = _splash == null ? 480 : _splash.ImageLocation.Height;
            var width  = _splash == null ? 640 : _splash.ImageLocation.Width;

            SplashImage.SetValue(Canvas.LeftProperty, x);
            SplashImage.SetValue(Canvas.TopProperty, y);
            SplashImage.Height = height;
            SplashImage.Width  = width;

            var topWithBuffer = y + height - 50;
            var textTop       = topWithBuffer + 30;
            var left          = x + 40;

            Progress.SetValue(Canvas.TopProperty, topWithBuffer);
            Progress.SetValue(Canvas.LeftProperty, left);
            Progress.IsActive = true;

            ProgressText.SetValue(Canvas.TopProperty, textTop - 15);
            ProgressText.SetValue(Canvas.LeftProperty, left + 90);

            ProgressText.Text = "Initializing...";
        }
Esempio n. 2
0
 public void ReadNpcgen(BinaryReader br)
 {
     ProgressText?.Invoke("Загружаем npcgen.data");
     File_version    = br.ReadInt32();
     NpcMobsAmount   = br.ReadInt32();
     ResourcesAmount = br.ReadInt32();
     DynobjectAmount = br.ReadInt32();
     if (File_version > 6)
     {
         TriggersAmount = br.ReadInt32();
     }
     ProgressMax.Invoke(NpcMobsAmount + ResourcesAmount);
     for (int i = 0; i < NpcMobsAmount; i++)
     {
         NpcMobList.Add(ReadExistence(br, File_version));
         ProgressNext?.Invoke();
     }
     for (int i = 0; i < ResourcesAmount; i++)
     {
         ResourcesList.Add(ReadResource(br, File_version));
         ProgressNext?.Invoke();
     }
     ProgressText?.Invoke($"npcgen.data загружен, {NpcMobsAmount + ResourcesAmount} объектов");
     ProgressValue(0);
     br.Close();
 }
Esempio n. 3
0
        public void Read(string path)
        {
            ProgressMax?.Invoke(File.ReadAllLines(path).Length);
            ProgressText("Загружаем coord_data.txt");
            StreamReader sr = new StreamReader(path);

            Header = sr.ReadLine();
            while (!sr.EndOfStream)
            {
                ProgressNext?.Invoke();
                string[] data = Regex.Replace(sr.ReadLine().Replace('"', ' ').Replace(",", " "), @"\s+", " ").Split(' ');
                if (data.Length > 3)
                {
                    if (!Entrys.ContainsKey(data[0]))
                    {
                        Entrys.Add(data[0], new List <CoordDataEntry>());
                    }
                    Entrys[data[0]].Add(new CoordDataEntry()
                    {
                        MapNumber = data[1],
                        X         = float.Parse(data[2].Replace('.', ',')),
                        Y         = float.Parse(data[3].Replace('.', ',')),
                        Z         = float.Parse(data[4].Replace('.', ','))
                    });
                }
            }
            ProgressValue?.Invoke(0);
            ProgressText?.Invoke($"coord_data.txt загружен, {Entrys.Keys.Count} объектов");
            sr.Close();
        }
Esempio n. 4
0
        private void UpdateProgress(string text, bool isWorkIndicator = false)
        {
            if (string.IsNullOrEmpty(text) && !isWorkIndicator)
            {
                return;
            }

            Application.Current.Dispatcher.Invoke(new Action(() => {
                ProgressText = ProgressText.Replace(workIndicator, "");

                if (isWorkIndicator)
                {
                    workIndicator += "#";

                    if (workIndicator.Length > 80)
                    {
                        workIndicator = "###";
                    }

                    ProgressText += workIndicator;
                    TextBoxProgress.ScrollToEnd();
                }
                else
                {
                    ProgressText += DateTime.Now.ToString("HH:mm:ss") + ": " + text + Environment.NewLine;
                    TextBoxProgress.ScrollToEnd();
                    workIndicator = "###";
                }
            }));
        }
Esempio n. 5
0
 public void FirstPopulationProducingStartedNotification(int progressMin, int progressMax, int step)
 {
     EvolutionProgressBar.Minimum = progressMin;
     EvolutionProgressBar.Maximum = progressMax;
     EvolutionProgressBar.Value   = progressMin;
     EvolutionProgressBar.Step    = step;
     ProgressText.Text            = "Population producing in process";
     ProgressText.Refresh();
 }
Esempio n. 6
0
 public void AlgorithmStartedNotification(int progressMin, int progressMax, int step)
 {
     EvolutionProgressBar.Minimum = progressMin;
     EvolutionProgressBar.Maximum = progressMax;
     EvolutionProgressBar.Value   = progressMin;
     EvolutionProgressBar.Step    = step;
     ProgressText.Text            = "Evolution in process";
     ProgressText.Refresh();
 }
Esempio n. 7
0
 public void RemoveMessage(ProgressText message)
 {
     Destroy(message.gameObject);
     if (transform.childCount < 1)
     {
         gameObject.SetActive(false);
     }
     needsUpdate = true;
 }
Esempio n. 8
0
 public void AlgorithmFinishedUnsucessfullyNotification()
 {
     EvolutionProgressBar.Value = EvolutionProgressBar.Maximum;
     ProgressText.Text          = "Enter source data";
     ProgressText.Refresh();
     isAlgFinished       = true;
     isAnimationFinished = false;
     success             = false;
     timer1.Enabled      = true;
 }
Esempio n. 9
0
    protected IEnumerator ErrorLoad(string errorMessage)
    {
        ProgressText progressText = GameManager.Instance.ProgressManager.AddMessage(errorMessage);

        progressText.Text = errorMessage;
        progressText.Type = ProgressTextEnum.Error;
        isInProgress      = false;
        loadingListener?.Error(0, errorMessage);
        return(asyncLoad?.ErrorLoad(asset, errorMessage));
    }
Esempio n. 10
0
    public ProgressText ShowMessage(string message, float time = -1)
    {
        Clear();
        ProgressText m = AddMessage(message);

        m.Type = ProgressTextEnum.Error;
        if (time > 0)
        {
            m.TimeAlive = time;
        }
        return(m);
    }
Esempio n. 11
0
        private void UpdateProgressTextTask(CancellationToken token)
        {
            Task.Run(async() =>
            {
                ProgressText = PROGRESS;
                while (!token.IsCancellationRequested)
                {
                    await Task.Delay(PROGRESS_DELAY);
                    var dotsCount = ProgressText.Count <char>(ch => ch == '.');

                    ProgressText = dotsCount < 6 ? ProgressText + "." : ProgressText.Replace(".", "");
                }
            });
        }
 public void StartLoading()
 {
     Thread.Sleep(1000);
     ProgressText.Text = "";
     Task.Run(() =>
     {
         while (ProjectManager.onProgress)
         {
             if (ProjectManager.progressQueue.Count != 0)
             {
                 string text = ProjectManager.progressQueue.Dequeue();
                 ProgressText.AppendText(text);
             }
             Thread.Sleep(50);
         }
     });
 }
Esempio n. 13
0
        public void Save(string path)
        {
            ProgressMax?.Invoke(Entrys.Keys.Count);
            StreamWriter sw = new StreamWriter(path);

            sw.WriteLine(Header);
            ProgressValue?.Invoke(0);
            foreach (KeyValuePair <string, List <CoordDataEntry> > entry in Entrys)
            {
                ProgressNext?.Invoke();
                entry.Value.ForEach(x =>
                {
                    sw.WriteLine($"{entry.Key}\t{x.MapNumber}\t{string.Format("{0:F2}", x.X).Replace(",", ".")}\t{string.Format("{0:F2}", x.Y).Replace(",", ".")}\t{string.Format("{0:F2}", x.Z).Replace(",", ".")}");
                });
            }
            ProgressValue?.Invoke(0);
            ProgressText?.Invoke($"coord_data.txt успешно сохранен");
            sw.Close();
        }
        private void PositionElements()
        {
            SplashImage.SetValue(Canvas.LeftProperty, _splash.ImageLocation.X);
            SplashImage.SetValue(Canvas.TopProperty, _splash.ImageLocation.Y);
            SplashImage.Height = _splash.ImageLocation.Height;
            SplashImage.Width  = _splash.ImageLocation.Width;

            var topWithBuffer = _splash.ImageLocation.Y + _splash.ImageLocation.Height - 50;
            var textTop       = topWithBuffer + 30;
            var left          = _splash.ImageLocation.X + 40;

            Progress.SetValue(Canvas.TopProperty, topWithBuffer);
            Progress.SetValue(Canvas.LeftProperty, left);
            Progress.IsActive = true;

            ProgressText.SetValue(Canvas.TopProperty, textTop - 15);
            ProgressText.SetValue(Canvas.LeftProperty, left + 90);

            ProgressText.Text = "Initializing...";
        }
Esempio n. 15
0
 public virtual void VisitProgressText(ProgressText node)
 {
 }
 private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
 {
     ProgressText.ScrollToEnd();
 }
Esempio n. 17
0
        private void DownloadPlaylist_Click(object sender, EventArgs e)
        {
            if (!CheckLibs(false))
            {
                return;
            }

            Cursor.Current = Cursors.WaitCursor;

            DownloadPlaylist.Enabled = false;
            DownloadPlaylist.Text    = "Descargando lista de reproducción/canal...";
            DownloadPlaylist.Update();

            Log("\n\nDownloading playlist/channel from YouTube");
            InitializeProcess(PlaylistProcess);
            PlaylistProcess.StartInfo.Arguments = PlaylistTextBox.Text + " -i -f mp4" + ((MP3CheckBox.Checked) ? " -x --audio-format mp3": "") + ((MetadataCheckBox.Checked) ? " --add-metadata" : "");

            DownloadingPlaylist = PlaylistProcess.Start();

            StreamReader sr = PlaylistProcess.StandardOutput;

            string Info = "";

            PageTypes PageType         = PageTypes.Unknown;
            string    PageName         = "";
            int       PageVideos       = 0;
            int       DownloadedVideos = 0;
            int       DownloadingVideo = 0;

            bool OpenDirAtEnd = OpenAtEndCheckBox.Checked;

            try
            {
                string FileToRename = "", FileNewName = "";

                for (int i = 0; !PlaylistProcess.HasExited; i++)
                {
                    string dLine = sr.ReadLine();

                    if (dLine == null)
                    {
                        continue;
                    }

                    switch (i)
                    {
                    case 0:
                        if (PageType != PageTypes.Unknown)
                        {
                            continue;
                        }
                        if (dLine.StartsWith("[youtube:playlist]"))
                        {
                            PageType = PageTypes.Playlist;
                            DownloadPlaylist.Text = "Descargando lista de reproducción...";
                            DownloadPlaylist.Update();
                        }
                        else if (dLine.StartsWith("[youtube:channel]"))
                        {
                            PageType = PageTypes.Channel;
                            i       -= 1;
                            DownloadPlaylist.Text = "Descargando canal...";
                            DownloadPlaylist.Update();
                        }
                        else
                        {
                            throw new InvalidDataException("La URL especificada no corresponde a ninguna lista de reproducción/canal");
                        }
                        continue;

                    case 1:
                        PageName = dLine.Remove(0, (PageType == PageTypes.Playlist) ? 33 : 46);
                        PlaylistNameTextBox.Text = ((PageType == PageTypes.Playlist) ? "Lista de reproducción: " : "Canal: ") + PageName;
                        PlaylistNameTextBox.Update();
                        continue;

                    case 2:
                        PageVideos                  = int.Parse(dLine.Remove(0, 28 + ((PageType == PageTypes.Playlist) ? 0 : 13) + PageName.Length + 14).Split(' ')[0]);
                        DownloadedVideos            = PageVideos;
                        DownloadProgressBar.Maximum = PageVideos;
                        ProgressText.Text           = "1/" + PageVideos;
                        //string PageVideosText = dLine.Remove(0, 28 + ((PageType == PageTypes.Playlist) ? 0 : 13) + PageName.Length + 14);
                        continue;

                    default:
                        if (dLine.StartsWith("[download] Downloading video ") || dLine.StartsWith("[download] Finished downloading"))
                        {
                            if (FileToRename != "")
                            {
                                try
                                {
                                    string DirectoryToMove = SaveTextBox.Text + ((DownloadInSubfolderCheckBox.Checked) ? PageName + "\\" : "");
                                    if (!Directory.Exists(DirectoryToMove))
                                    {
                                        Directory.CreateDirectory(DirectoryToMove);
                                    }
                                    if (MP3CheckBox.Checked)
                                    {
                                        FileToRename = FileToRename.Remove(FileToRename.Length - 1, 1) + "3";
                                    }
                                    File.Move(SaveTextBox.Text + FileToRename, DirectoryToMove + FileNewName + ((MP3CheckBox.Checked) ? ".mp3" : ".mp4"));
                                }
                                catch (IOException ioex)
                                {
                                    Log("\n[ERROR] Error trying to rename \"" + SaveTextBox.Text + FileToRename + "\" to \"" + SaveTextBox.Text + FileNewName + "\"\n" + ioex.ToString() + "\n");
                                    Info += "\n   ERROR AL MOVER/RENOMBRAR:\n   " + ioex.ToString() + "\n   Archivo guardado en: " + SaveTextBox.Text + FileToRename;
                                }
                            }
                            if (dLine.StartsWith("[download] Finished downloading"))
                            {
                                continue;
                            }

                            DownloadingVideo = int.Parse(dLine.Remove(0, 29).Split(' ')[0]);

                            Info += "\n\n" + DownloadingVideo + "/" + PageVideos + ": ";

                            ProgressText.Text = DownloadingVideo + "/" + PageVideos;
                            ProgressText.Update();
                            DownloadProgressBar.Value = DownloadingVideo;
                        }
                        if (dLine == "ERROR: This video is unavailable.")
                        {
                            DownloadedVideos--;
                            Log("\n[ERROR] Video " + DownloadingVideo + "/" + PageVideos + " was not found");
                            Info += "VíDEO NO DISPONIBLE\n";
                        }

                        if (dLine.StartsWith("[download] Destination: "))
                        {
                            FileToRename = dLine.Remove(0, 24);
                            FileNewName  = FileToRename.Remove(FileToRename.Length - 16, 16);
                            string TempURL = FileToRename.Remove(0, FileNewName.Length + 1).Remove(11, 4);
                            Info += FileNewName + "\n   URL: https://www.youtube.com/watch?v=" + TempURL;
                        }
                        if (dLine.EndsWith(" has already been downloaded"))
                        {
                            FileToRename = dLine.Remove(0, 11);
                            FileToRename = FileToRename.Remove(FileToRename.Length - 28, 28);
                            FileNewName  = FileToRename.Remove(FileToRename.Length - 16, 16);
                            string TempURL = FileToRename.Remove(0, FileNewName.Length + 1).Remove(11, 4);
                            Info += FileNewName + "\n   URL: https://www.youtube.com/watch?v=" + TempURL + "\n   VÍDEO YA DESCARGADO";
                        }
                        continue;
                    }
                }
                sr.Close();
                DownloadingPlaylist = false;

                Log("\nVídeos downloaded from " + ((MP3CheckBox.Checked) ? "and converted to .mp3 " : "") + "successfully from " + PageType + " # " + PageName + ": " + DownloadedVideos + "/" + PageVideos + "\n");

                DownloadResultForm drm = new DownloadResultForm(Results.Info,
                                                                "Vídeos descargados con éxito: " + DownloadedVideos + "/" + PageVideos,
                                                                (PageType == PageTypes.Playlist) ? DownloadTypes.Playlist : DownloadTypes.Channel,
                                                                PageName,
                                                                MP3CheckBox.Checked,
                                                                MetadataCheckBox.Checked,
                                                                Info.Remove(0, 2));
            }
            catch (Exception ex)
            {
                sr.Close();
                DownloadingPlaylist = false;

                OpenDirAtEnd = false;

                Log("\n[ERROR] Error during download playlist/channel process: " + ex.Message);
                Info += "\n\n" + ex.ToString();

                DownloadResultForm drm = new DownloadResultForm(Results.Error,
                                                                "Error en la descarga de " + PageVideos + " vídeos",
                                                                (PageType == PageTypes.Playlist) ? DownloadTypes.Playlist : DownloadTypes.Channel,
                                                                PageName,
                                                                MP3CheckBox.Checked,
                                                                MetadataCheckBox.Checked,
                                                                Info.Remove(0, 2));
            }
            Cursor.Current = Cursors.Default;

            PlaylistNameTextBox.Text  = "Nombre de la lista de reproducción/canal";
            DownloadPlaylist.Enabled  = true;
            DownloadPlaylist.Text     = "Descargar lista de reproducción/canal";
            DownloadProgressBar.Value = 0;
            ProgressText.Text         = "--/--";

            if (OpenDirAtEnd)
            {
                Process.Start("explorer.exe", OutputPath);
            }
        }
Esempio n. 18
0
 public void FirstPopulationProducingFinishedNotification()
 {
     EvolutionProgressBar.Value = EvolutionProgressBar.Maximum;
     ProgressText.Text          = "First population producing finished";
     ProgressText.Refresh();
 }
Esempio n. 19
0
        public virtual void VisitItem(Object item)
        {
            if (item == null)
            {
                return;
            }

            Module module = item as Module;

            if (module != null)
            {
                VisitModule(module);
                return;
            }
            Product product = item as Product;

            if (product != null)
            {
                VisitProduct(product);
                return;
            }
            Feature feature = item as Feature;

            if (feature != null)
            {
                VisitFeature(feature);
                return;
            }
            AdvtExecuteSequence advtExecuteSequence = item as AdvtExecuteSequence;

            if (advtExecuteSequence != null)
            {
                VisitAdvtExecuteSequence(advtExecuteSequence);
                return;
            }
            InstallUISequence installUISequence = item as InstallUISequence;

            if (installUISequence != null)
            {
                VisitInstallUISequence(installUISequence);
                return;
            }
            User user = item as User;

            if (user != null)
            {
                VisitUser(user);
                return;
            }
            Upgrade upgrade = item as Upgrade;

            if (upgrade != null)
            {
                VisitUpgrade(upgrade);
                return;
            }
            Directory directory = item as Directory;

            if (directory != null)
            {
                VisitDirectory(directory);
                return;
            }
            PropertyRef propertyRef = item as PropertyRef;

            if (propertyRef != null)
            {
                VisitPropertyRef(propertyRef);
                return;
            }
            WebSite webSite = item as WebSite;

            if (webSite != null)
            {
                VisitWebSite(webSite);
                return;
            }
            AdminUISequence adminUISequence = item as AdminUISequence;

            if (adminUISequence != null)
            {
                VisitAdminUISequence(adminUISequence);
                return;
            }
            CustomAction customAction = item as CustomAction;

            if (customAction != null)
            {
                VisitCustomAction(customAction);
                return;
            }
            DirectoryRef directoryRef = item as DirectoryRef;

            if (directoryRef != null)
            {
                VisitDirectoryRef(directoryRef);
                return;
            }
            AppId appId = item as AppId;

            if (appId != null)
            {
                VisitAppId(appId);
                return;
            }
            Media media = item as Media;

            if (media != null)
            {
                VisitMedia(media);
                return;
            }
            CustomTable customTable = item as CustomTable;

            if (customTable != null)
            {
                VisitCustomTable(customTable);
                return;
            }
            Condition condition = item as Condition;

            if (condition != null)
            {
                VisitCondition(condition);
                return;
            }
            SFPCatalog sFPCatalog = item as SFPCatalog;

            if (sFPCatalog != null)
            {
                VisitSFPCatalog(sFPCatalog);
                return;
            }
            UI ui = item as UI;

            if (ui != null)
            {
                VisitUI(ui);
                return;
            }
            FragmentRef fragmentRef = item as FragmentRef;

            if (fragmentRef != null)
            {
                VisitFragmentRef(fragmentRef);
                return;
            }
            Icon icon = item as Icon;

            if (icon != null)
            {
                VisitIcon(icon);
                return;
            }
            Property property = item as Property;

            if (property != null)
            {
                VisitProperty(property);
                return;
            }
            FeatureRef featureRef = item as FeatureRef;

            if (featureRef != null)
            {
                VisitFeatureRef(featureRef);
                return;
            }
            WebDirProperties webDirProperties = item as WebDirProperties;

            if (webDirProperties != null)
            {
                VisitWebDirProperties(webDirProperties);
                return;
            }
            ComplianceCheck complianceCheck = item as ComplianceCheck;

            if (complianceCheck != null)
            {
                VisitComplianceCheck(complianceCheck);
                return;
            }
            InstallExecuteSequence installExecuteSequence = item as InstallExecuteSequence;

            if (installExecuteSequence != null)
            {
                VisitInstallExecuteSequence(installExecuteSequence);
                return;
            }
            AdminExecuteSequence adminExecuteSequence = item as AdminExecuteSequence;

            if (adminExecuteSequence != null)
            {
                VisitAdminExecuteSequence(adminExecuteSequence);
                return;
            }
            Binary binary = item as Binary;

            if (binary != null)
            {
                VisitBinary(binary);
                return;
            }
            Group group = item as Group;

            if (group != null)
            {
                VisitGroup(group);
                return;
            }
            WebApplication webApplication = item as WebApplication;

            if (webApplication != null)
            {
                VisitWebApplication(webApplication);
                return;
            }
            ActionSequenceType actionSequenceType = item as ActionSequenceType;

            if (actionSequenceType != null)
            {
                VisitActionSequenceType(actionSequenceType);
                return;
            }
            ActionModuleSequenceType actionModuleSequenceType = item as ActionModuleSequenceType;

            if (actionModuleSequenceType != null)
            {
                VisitActionModuleSequenceType(actionModuleSequenceType);
                return;
            }
            BillboardAction billboardAction = item as BillboardAction;

            if (billboardAction != null)
            {
                VisitBillboardAction(billboardAction);
                return;
            }
            Error error = item as Error;

            if (error != null)
            {
                VisitError(error);
                return;
            }
            Dialog dialog = item as Dialog;

            if (dialog != null)
            {
                VisitDialog(dialog);
                return;
            }
            ProgressText progressText = item as ProgressText;

            if (progressText != null)
            {
                VisitProgressText(progressText);
                return;
            }
            TextStyle textStyle = item as TextStyle;

            if (textStyle != null)
            {
                VisitTextStyle(textStyle);
                return;
            }
            ListBox listBox = item as ListBox;

            if (listBox != null)
            {
                VisitListBox(listBox);
                return;
            }
            ListView listView = item as ListView;

            if (listView != null)
            {
                VisitListView(listView);
                return;
            }
            ComboBox comboBox = item as ComboBox;

            if (comboBox != null)
            {
                VisitComboBox(comboBox);
                return;
            }
            UIText uIText = item as UIText;

            if (uIText != null)
            {
                VisitUIText(uIText);
                return;
            }
            RadioGroup radioGroup = item as RadioGroup;

            if (radioGroup != null)
            {
                VisitRadioGroup(radioGroup);
                return;
            }
            IniFileSearch iniFileSearch = item as IniFileSearch;

            if (iniFileSearch != null)
            {
                VisitIniFileSearch(iniFileSearch);
                return;
            }
            RegistrySearch registrySearch = item as RegistrySearch;

            if (registrySearch != null)
            {
                VisitRegistrySearch(registrySearch);
                return;
            }
            ComponentSearch componentSearch = item as ComponentSearch;

            if (componentSearch != null)
            {
                VisitComponentSearch(componentSearch);
                return;
            }
            FileSearch fileSearch = item as FileSearch;

            if (fileSearch != null)
            {
                VisitFileSearch(fileSearch);
                return;
            }
            DirectorySearch directorySearch = item as DirectorySearch;

            if (directorySearch != null)
            {
                VisitDirectorySearch(directorySearch);
                return;
            }
            File file = item as File;

            if (file != null)
            {
                VisitFile(file);
                return;
            }
            Component component = item as Component;

            if (component != null)
            {
                VisitComponent(component);
                return;
            }
            Merge merge = item as Merge;

            if (merge != null)
            {
                VisitMerge(merge);
                return;
            }
            Custom custom = item as Custom;

            if (custom != null)
            {
                VisitCustom(custom);
                return;
            }
            WebError webError = item as WebError;

            if (webError != null)
            {
                VisitWebError(webError);
                return;
            }
            WebVirtualDir webVirtualDir = item as WebVirtualDir;

            if (webVirtualDir != null)
            {
                VisitWebVirtualDir(webVirtualDir);
                return;
            }
            WebDir webDir = item as WebDir;

            if (webDir != null)
            {
                VisitWebDir(webDir);
                return;
            }
            WebFilter webFilter = item as WebFilter;

            if (webFilter != null)
            {
                VisitWebFilter(webFilter);
                return;
            }
            MergeRef mergeRef = item as MergeRef;

            if (mergeRef != null)
            {
                VisitMergeRef(mergeRef);
                return;
            }
            Subscribe subscribe = item as Subscribe;

            if (subscribe != null)
            {
                VisitSubscribe(subscribe);
                return;
            }
            Publish publish = item as Publish;

            if (publish != null)
            {
                VisitPublish(publish);
                return;
            }
            TypeLib typeLib = item as TypeLib;

            if (typeLib != null)
            {
                VisitTypeLib(typeLib);
                return;
            }
            Shortcut shortcut = item as Shortcut;

            if (shortcut != null)
            {
                VisitShortcut(shortcut);
                return;
            }
            ODBCTranslator oDBCTranslator = item as ODBCTranslator;

            if (oDBCTranslator != null)
            {
                VisitODBCTranslator(oDBCTranslator);
                return;
            }
            Permission permission = item as Permission;

            if (permission != null)
            {
                VisitPermission(permission);
                return;
            }
            Class _class = item as Class;

            if (_class != null)
            {
                VisitClass(_class);
                return;
            }
            CopyFile copyFile = item as CopyFile;

            if (copyFile != null)
            {
                VisitCopyFile(copyFile);
                return;
            }
            Patch patch = item as Patch;

            if (patch != null)
            {
                VisitPatch(patch);
                return;
            }
            ODBCDriver oDBCDriver = item as ODBCDriver;

            if (oDBCDriver != null)
            {
                VisitODBCDriver(oDBCDriver);
                return;
            }
            PerfCounter perfCounter = item as PerfCounter;

            if (perfCounter != null)
            {
                VisitPerfCounter(perfCounter);
                return;
            }
            FileShare fileShare = item as FileShare;

            if (fileShare != null)
            {
                VisitFileShare(fileShare);
                return;
            }
            Certificate certificate = item as Certificate;

            if (certificate != null)
            {
                VisitCertificate(certificate);
                return;
            }
            Category category = item as Category;

            if (category != null)
            {
                VisitCategory(category);
                return;
            }
            WebAppPool webAppPool = item as WebAppPool;

            if (webAppPool != null)
            {
                VisitWebAppPool(webAppPool);
                return;
            }
            SqlString sqlString = item as SqlString;

            if (sqlString != null)
            {
                VisitSqlString(sqlString);
                return;
            }
            ServiceControl serviceControl = item as ServiceControl;

            if (serviceControl != null)
            {
                VisitServiceControl(serviceControl);
                return;
            }
            IsolateComponent isolateComponent = item as IsolateComponent;

            if (isolateComponent != null)
            {
                VisitIsolateComponent(isolateComponent);
                return;
            }
            ServiceConfig serviceConfig = item as ServiceConfig;

            if (serviceConfig != null)
            {
                VisitServiceConfig(serviceConfig);
                return;
            }
            WebProperty webProperty = item as WebProperty;

            if (webProperty != null)
            {
                VisitWebProperty(webProperty);
                return;
            }
            SqlScript sqlScript = item as SqlScript;

            if (sqlScript != null)
            {
                VisitSqlScript(sqlScript);
                return;
            }
            SqlDatabase sqlDatabase = item as SqlDatabase;

            if (sqlDatabase != null)
            {
                VisitSqlDatabase(sqlDatabase);
                return;
            }
            WebLockdown webLockdown = item as WebLockdown;

            if (webLockdown != null)
            {
                VisitWebLockdown(webLockdown);
                return;
            }
            Extension extension = item as Extension;

            if (extension != null)
            {
                VisitExtension(extension);
                return;
            }
            ReserveCost reserveCost = item as ReserveCost;

            if (reserveCost != null)
            {
                VisitReserveCost(reserveCost);
                return;
            }
            RemoveFile removeFile = item as RemoveFile;

            if (removeFile != null)
            {
                VisitRemoveFile(removeFile);
                return;
            }
            ProgId progId = item as ProgId;

            if (progId != null)
            {
                VisitProgId(progId);
                return;
            }
            Microsoft.Tools.WindowsInstallerXml.Serialize.Environment environment = item as
                                                                                    Microsoft.Tools.WindowsInstallerXml.Serialize.Environment;
            if (environment != null)
            {
                VisitEnvironment(environment);
                return;
            }
            ServiceInstall serviceInstall = item as ServiceInstall;

            if (serviceInstall != null)
            {
                VisitServiceInstall(serviceInstall);
                return;
            }
            IniFile iniFile = item as IniFile;

            if (iniFile != null)
            {
                VisitIniFile(iniFile);
                return;
            }
            Registry registry = item as Registry;

            if (registry != null)
            {
                VisitRegistry(registry);
                return;
            }
            CreateFolder createFolder = item as CreateFolder;

            if (createFolder != null)
            {
                VisitCreateFolder(createFolder);
                return;
            }
            MIME mIME = item as MIME;

            if (mIME != null)
            {
                VisitMIME(mIME);
                return;
            }
            Verb verb = item as Verb;

            if (verb != null)
            {
                VisitVerb(verb);
                return;
            }
        }