Exemplo n.º 1
0
        public ContactForm(IContactsManager contactsManager, ContactViewModel contactViewModel)
        {
            _contactsManager  = contactsManager;
            _contactViewModel = contactViewModel;

            InitializeComponent();

            ToolStripManager.Renderer = new ToolStripSystemRenderer();

            tagsListControl1.ContactViewModel = contactViewModel;
            tagsListControl1.ContactsManager  = _contactsManager;
            labelShowedName.Text = contactViewModel.ShowedName;

            ContactInfosCollectionChanged(null, null);

            _contactViewModel.ContactInfos.CollectionChanged += ContactInfosCollectionChanged;
            _contactViewModel.PropertyChanged    += ContactViewModelPropertyChanged;
            _contactViewModel.SelectedContactInfo = _contactViewModel.ContactInfos.FirstOrDefault();

            if (string.IsNullOrWhiteSpace(_contactViewModel.ShowedName))
            {
                Text = "New contact";
            }
            else
            {
                Text = String.Format("Editing contact: {0}", _contactViewModel.ShowedName);
            }
        }
Exemplo n.º 2
0
        public ContactInfoViewModel(IContactsManager contactsManager, IContactInfoLocal contactInfo)
        {
            _contactsManager = contactsManager;
            ContactInfo      = contactInfo;

            RefreshInfo();
        }
Exemplo n.º 3
0
        public AddContactInfoCommand(ContactViewModel contactViewModel, IContactsManager contactsManager, IAddressBookLocal addressBook)
        {
            _contactViewModel = contactViewModel;
            _contactsManager  = contactsManager;
            _addressBook      = addressBook;

            Text = addressBook.Name;
        }
Exemplo n.º 4
0
 public void ieduNnurne(ICustomizeHandler icustomizeHandler_1, IBasicHandler ibasicHandler_1, IGroupManager igroupManager_1, IFriendsManager ifriendsManager_1, IContactsManager icontactsManager_1)
 {
     this.icustomizeHandler_0 = icustomizeHandler_1;
     this.ibasicHandler_0     = ibasicHandler_1;
     this.igroupManager_0     = igroupManager_1;
     this.ifriendsManager_0   = ifriendsManager_1;
     this.icontactsManager_0  = icontactsManager_1;
 }
Exemplo n.º 5
0
 public MainAppBehavior(IKeyValueStore store, IAppUserManager appUserManager,
                        IContactsManager contactsManager, IFriendsManager friendsManager, IChatService chatService)
 {
     _store           = store;
     _userManager     = appUserManager;
     _contactsManager = contactsManager;
     _friendsManager  = friendsManager;
     _chatService     = chatService;
 }
Exemplo n.º 6
0
 public LifeCycleState(IKeyValueStore store, IAppUserManager appUserManager,
                       IContactsManager contactsManager, IFriendsManager friendsManager, IChatService chatService)
 {
     _store           = store;
     _userManager     = appUserManager;
     _contactsManager = contactsManager;
     _friendsManager  = friendsManager;
     _chatService     = chatService;
 }
Exemplo n.º 7
0
        internal ContactViewModel(IContactsManager contactsManager, IContact contact)
        {
            _contactsManager = contactsManager;
            _contact         = contact;

            _contact.Changed += ContactChanged;

            RefreshInfo();
        }
Exemplo n.º 8
0
        public ContactsSelectionViewModel(IPageService pageService, IContactsManager contactsManager)
        {
            var contactsManager1 = contactsManager;

            ContactGroups = contactsManager1.BuildContactGroup();

            TappedCommand = new Command(async
                                            (o) => await pageService.DisplayAlert("Clicked", o.ToString(), "Ok"));

            contactsManager1.PropertyChanged += (sender, args) =>
            {
                if (string.CompareOrdinal(args.PropertyName, nameof(contactsManager1.Contacts)) == 0)
                {
                    ContactGroups = contactsManager1.BuildContactGroup();
                }
            };
        }
Exemplo n.º 9
0
        public ContactsListForm(IContactsManager contactsManager)
        {
            _contactsManager = contactsManager;

            InitializeComponent();

            ToolStripManager.Renderer = new ToolStripSystemRenderer();

            _bindingSource = new AdvancedBindingSource <ContactViewModel>();

            dataGridView.AutoGenerateColumns = false;

            dataGridView.Columns.Clear();
            dataGridView.Columns.AddRange(
                new DataGridViewTextBoxColumn {
                HeaderText = Resources.ContactsListForm_Name, Name = "ShowedName", SortMode = DataGridViewColumnSortMode.NotSortable, Width = 250, DataPropertyName = "ShowedName"
            },
                new DataGridViewTextBoxColumn {
                HeaderText = Resources.ContactsListForm_Company, Name = Resources.ContactsListForm_Company, SortMode = DataGridViewColumnSortMode.NotSortable, Width = 100, DataPropertyName = Resources.ContactsListForm_Company
            },
                new DataGridViewTextBoxColumn {
                HeaderText = Resources.ContactsListForm_Phone_numbers, Name = "PhoneNumbersString", SortMode = DataGridViewColumnSortMode.NotSortable, Width = 250, DataPropertyName = "PhoneNumbersString"
            },
                //new DataGridViewTagsColumns { HeaderText = "Tags", Name = "Tags", SortMode = DataGridViewColumnSortMode.NotSortable, Width = 300, DataPropertyName = "TagLocals" },
                new DataGridViewTextBoxColumn {
                HeaderText = Resources.ContactsListForm_Note, Name = Resources.ContactsListForm_Note, SortMode = DataGridViewColumnSortMode.NotSortable, DataPropertyName = Resources.ContactsListForm_Note, AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill
            }
                );

            dataGridView.DataSource = _bindingSource;

            dataGridView.CellDoubleClick            += DataGridViewCellDoubleClick;
            dataGridView.CellContextMenuStripNeeded += DataGridViewCellContextMenuStripNeeded;

            buttonSpecAny1.Click += buttonSpecAny1_Click;

            textBoxSearch.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;

            _contactsManager.AddressBookReloaded += ContactsManagerOnAddressBookReloaded;

            ReloadContacts();
        }
Exemplo n.º 10
0
        public ContactDetailsControl(IContactsManager contactsManager, ContactInfoViewModel contactInfoViewModel)
        {
            _contactsManager      = contactsManager;
            _contactInfoViewModel = contactInfoViewModel;

            _panel = new VerticalLayoutPanel {
                Dock = DockStyle.Fill
            };
            _panel.UseZebra = false;

            _addPhoneEmailControl           = new AddPhoneEmailControl();
            _addPhoneEmailControl.AddPhone += PhoneEmailControlAddPhone;
            _addPhoneEmailControl.AddEmail += PhoneEmailControlAddEmail;

            Controls.Add(_panel);

            RefreshInfo();

            _contactInfoViewModel.PhoneNumbers.CollectionChanged += PhoneNumbersEmailsCollectionChanged;
            _contactInfoViewModel.Emails.CollectionChanged       += PhoneNumbersEmailsCollectionChanged;
        }
Exemplo n.º 11
0
 public UserController(ILogger <UserController> logger, IContactsManager contactsManager)
 {
     this.logger          = logger;
     this.contactsManager = contactsManager;
 }
Exemplo n.º 12
0
 public void method_5(IContactsManager icontactsManager_1)
 {
     this.icontactsManager_0 = icontactsManager_1;
 }
Exemplo n.º 13
0
 public RaffleManager()
 {
     _contactsManager = DependencyService.Get <IContactsManager>();
     _smsManager      = DependencyService.Get <INotificationManager>();
 }