public RecipientsEditorControl()
        {
            InitializeComponent();

            InputCommands.Stub(this);

            mailbox = VirtualMailBox.VirtualMailBox.Current;
            recipients = new AdvancedObservableCollection<SourceAddress>();

            wordFlipper = new Flipper(TimeSpan.FromMilliseconds(400), ProcessCurrentWord);
            autocompleteFlipper = new Flipper(TimeSpan.FromMilliseconds(500), SearchContacts);

            // Default the validation is enabled
            ValidationEnabled = true;

            DataContext = this;

            var channel = ChannelsManager.GetDefaultChannel();

            if (channel != null)
                TargetChannel = channel;
        }
Beispiel #2
0
        public RecipientsEditorControl()
        {
            InitializeComponent();

            InputCommands.Stub(this);

            mailbox    = VirtualMailBox.VirtualMailBox.Current;
            recipients = new AdvancedObservableCollection <SourceAddress>();

            wordFlipper         = new Flipper(TimeSpan.FromMilliseconds(400), ProcessCurrentWord);
            autocompleteFlipper = new Flipper(TimeSpan.FromMilliseconds(500), SearchContacts);

            // Default the validation is enabled
            ValidationEnabled = true;

            DataContext = this;

            var channel = ChannelsManager.GetDefaultChannel();

            if (channel != null)
            {
                TargetChannel = channel;
            }
        }