Esempio n. 1
0
 public frmProfilesManager() : base("ÒµÎñ¹æÔò")
 {
     this.Profile = Profiles.FromFile("Profiles.xml");
     if (this.Profile == null)
     {
         this.Profile = Profiles.Create("Profiles.xml", true);
     }
 }
Esempio n. 2
0
        protected void LoadProfile(Profiles Profile)
        {
            foreach (Profiles.OrderRelationElement element in Profile.OrderRelation)
            {
                AddElement(element, PropertyBag);
            }

            PropertyGrid.SelectedObject = PropertyBag;
        }
        private ListViewItem AddItem(Profiles.BlacklstElement element)
        {
            ListViewItem lvi = this.ListView.Items.Add(element.GetAttribute("Host"));
            lvi.Tag = (object)element;

            lvi.SubItems.Add(element.GetAttribute("Date"));
            lvi.SubItems.Add(element.GetAttribute("Desc"));

            return lvi;
        }
Esempio n. 4
0
        protected void AddElement(Profiles.OrderRelationElement element, PropertyBag bag)
        {
            const string category = "Provision¶©¹º";

            string desc = String.Format("ID := {{{0}}}", element.GetAttribute("Code"));
            PropertySpec item = new PropertySpec(element.GetAttribute("Name"), 0, category, desc);

            item.Key = element.GetAttribute("Code");
            #if false
            item.Attributes = new Attribute[] { ReadOnlyAttribute.Yes };
            #endif

            bag.Add(item);
        }
 public frmProfilesManager()
     : base("ҵ�����")
 {
     this.Profile = Profiles.FromFile("Profiles.xml");
     if (this.Profile == null) this.Profile = Profiles.Create("Profiles.xml", true);
 }
 public frmProfilesSecure(Profiles.BlacklstElement profile)
 {
     this.Profile = profile;
     InitializeComponent();
 }