Esempio n. 1
0
        public PublishWindow(AnomalyController controller)
            : base("Anomaly.GUI.PublishWindow.PublishWindow.layout")
        {
            this.controller = controller;

            resourceProfileCombo = window.findWidget("Profile") as ComboBox;
            resourceProfileCombo.EventComboChangePosition += resourceProfileCombo_EventComboChangePosition;

            Button browseButton = window.findWidget("Browse") as Button;

            browseButton.MouseButtonClick += browseButton_MouseButtonClick;

            Button publishButton = window.findWidget("Publish") as Button;

            publishButton.MouseButtonClick += publishButton_MouseButtonClick;

            Button saveProfile = window.findWidget("Save") as Button;

            saveProfile.MouseButtonClick += saveProfile_MouseButtonClick;

            archiveCheckBox   = new CheckButton(window.findWidget("CreateArchive") as Button);
            obfuscateCheckBox = new CheckButton(window.findWidget("Obfuscate") as Button);

            outputLocationTextBox          = window.findWidget("OutputDir") as EditBox;
            outputLocationTextBox.OnlyText = AnomalyConfig.LastPublishDirectory;

            archiveNameText = window.findWidget("ArchiveName") as EditBox;

            publishController = new PublishController(controller.Solution);
            //fileList.DirectoryIgnored += new EventHandler<PublishControllerEventArgs>(fileList_DirectoryIgnored);
            //fileList.ExternalFileAdded += new EventHandler<PublishControllerEventArgs>(fileList_ExternalFileAdded);

            resourceProfileCombo.addItem("None");
            foreach (String profileFile in Directory.EnumerateFiles(controller.Solution.WorkingDirectory, "*.rpr", SearchOption.TopDirectoryOnly))
            {
                resourceProfileCombo.addItem(Path.GetFileNameWithoutExtension(profileFile));
            }
            resourceProfileCombo.addItem("New...");

            fileTree = new FileBrowserTree(window.findWidget("Scroller") as ScrollView, publishController);
        }
Esempio n. 2
0
 public DirectoryNode(String directory, FileBrowserTree projectExplorer)
 {
     this.projectExplorer = projectExplorer;
     this.ImageResource   = "Anomaly.PublishIcons.Folder";
     changePath(directory);
 }