public ExportProjectPolicyDialog(IPolicyProvider policyProvider)
        {
            this.Build();
            this.policyProvider = policyProvider;

            fileEntry.DefaultPath = DefaultFileDialogPolicyDir;
            if (policyProvider is SolutionItem)
            {
                fileEntry.Path = ((SolutionItem)policyProvider).Name + ".mdpolicy";
            }
            else if (policyProvider is Solution)
            {
                fileEntry.Path = ((Solution)policyProvider).Name + ".mdpolicy";
            }

            UpdateWidgets();

            labelPolicies.Text = ApplyPolicyDialog.GetPoliciesDescription(policyProvider.Policies);
        }
Exemple #2
0
        public ExportProjectPolicyDialog(IPolicyProvider policyProvider)
        {
            this.Build();
            this.policyProvider = policyProvider;

            fileEntry.DefaultPath = DefaultFileDialogPolicyDir;
            if (policyProvider is SolutionItem)
            {
                fileEntry.Path = ((SolutionItem)policyProvider).Name + ".mdpolicy";
            }
            else if (policyProvider is Solution)
            {
                fileEntry.Path = ((Solution)policyProvider).Name + ".mdpolicy";
            }

            fileEntry.FileFilters.AddFilter(GettextCatalog.GetString("MonoDevelop policy files"), "*.mdpolicy");
            fileEntry.FileFilters.AddAllFilesFilter();

            UpdateWidgets();

            labelPolicies.Text = ApplyPolicyDialog.GetPoliciesDescription(policyProvider.Policies);
        }