private void OnCrmServerEntryAdded(CrmEntry e) { EventHandler <CrmEntry> handler = CrmServerEntryAdded; if (handler != null) { handler(this, e); } }
public void ModifyEntry(CrmEntry entry) { try { _server.ModifyEntry(entry); } catch (Exception ex) { Messenger.Default.Send(new NotificationMessage(ex.Message, MainViewModel.ShowWcfWarningWindow)); } }
public void CrmEntryModified(CrmEntry entry) { try { Client.CrmEntryModified(entry); } catch (Exception) { OnDisconnected(EventArgs.Empty); } }
public void ModifyEntry(CrmEntry entry) { try { _databaseClient.Set(entry); CrmClient currentClient; if (!_clients.TryGetValue(GetContext(), out currentClient)) { return; } foreach (var crmClient in _clients.Values) { crmClient.CrmEntryModified(entry); } OnNotificationReceived(new NotificationEventArgs() { Notification = string.Format("CRM Entry Modified by Client {0}: {1} ({2}, {3})", currentClient.Credential.UserName, entry.ID, entry.LastName, entry.FirstName) }); } catch (Exception) { } }
public EntryAddViewModel() { CurrentCrmEntry = new CrmEntry(); InitCommands(); }
public void CrmEntryModified(CrmEntry entry) { OnCrmServerEntryModified(entry); }
public void CrmEntryDeleted(CrmEntry entry) { OnCrmServerEntryDeleted(entry); }
public void CrmEntryAdded(CrmEntry entry) { OnCrmServerEntryAdded(entry); }
public IncomingCallPopup(CrmEntry entry) { InitializeComponent(); DataContext = entry; }