Click here to Skip to main content
15,886,110 members

Comments by Sider89 (Top 16 by date)

Sider89 14-Mar-15 6:29am View    
any ideas?
Sider89 13-Mar-15 8:10am View    
Yes, if I insert row in the table, e.info has 'insert' flag
Sider89 27-Mar-13 3:49am View    
Note: It dose not work with large amount of data. In this case I have about 847 000 records in table. It works with small data perfectly(with about 5000 - 6000 records)
Sider89 26-Mar-13 8:15am View    
Any ideas?
Sider89 21-Mar-13 11:51am View    
yes, this is in MVVM..
public ObservableCollection(customermodel) Customers
{ get { return _Customers; }
set {
if (_Customers != value){
_Customers = value;
}
}
}
private ObservableCollection(customermodel) _Customers;


private void LoadData()
{
App.Instance.SetBusy();


proxy.ServicesClient client = new proxy.ServicesClient();

client.GetCustomersCompleted += (s, e) =>
{
if (e.Error != null)
{
throw new Exception();
}
else
{
Customers = new ObservableCollection<customermodel>();
foreach (var item in e.Result)
{
Customers.Add(new CustomerModel()
{
CustomerId = item.CustomerId,
Title = item.Title,
FirstName = item.FirstName,
MiddleName = item.MiddleName,
LastName = item.LastName,
CompanyName = item.CompanyName,
SalesPerson = item.SalesPerson,
EmailAddress = item.EmailAddress,
Phone = item.Phone
});
}


OnPropertyChanged("Customers");


App.Instance.UnSetBusy();
};

client.GetCustomersAsync();
client.Close();

}

here is the fragment, it works. binding, evrithing ... not only busyindicator