private void provider_CloudRemoved(object sender, CloudEventArgs e) { Models.Cloud cloud = e.Cloud; CloudViewModel cloudViewItem = clouds.SingleOrDefault((i) => i.Cloud.Equals(cloud)); clouds.Remove(cloudViewItem); }
private void provider_CloudAdded(object sender, CloudEventArgs e) { clouds.Add(new CloudTreeViewItemViewModel(e.Cloud)); }
private void provider_CloudChanged(object sender, CloudEventArgs e) { Refresh(e.Cloud); }
private void provider_CloudRemoved(object sender, CloudEventArgs e) { CloudTreeViewItemViewModel cloudTreeViewItem = clouds.SingleOrDefault((i) => i.Cloud.Equals(e.Cloud)); clouds.Remove(cloudTreeViewItem); }