Example #1
0
 private void FormMyFiles_Load(object sender, EventArgs e)
 {
     filesGridView.DataSource      = filePropertyClient.GetAllFiles();
     propertiesDropdown.DataSource = filePropertyClient.GetAllProperties();
     setOptions();
     processItemSelection();
 }
Example #2
0
 /// <summary>
 /// Cand lista de propietati este updatata, toate propietatile sunt luate din
 /// baza de date si descrierea lor afisata.
 /// </summary>
 private void UpdatePropertyList()
 {
     propertyView.Items.Clear();
     Properties = FilePropertyClient.GetAllProperties().ToList <Property>();
     foreach (var property in Properties)
     {
         propertyView.Items.Add(new ListViewItem(new string[] { property.Id.ToString(), property.Description }));
     }
 }
Example #3
0
 private void AddProperty_Load(object sender, EventArgs e)
 {
     keyDropdown.DataSource = filePropertyClient.GetAllProperties();
     if (setProperty != null)
     {
         newKeyCheckbox.Checked   = false;
         keyDropdown.SelectedItem = setProperty.Key;
         txtValue.Text            = setProperty.Value;
     }
 }