Exemplo n.º 1
0
        private void AddEditGroupNameForm_Load(object sender, EventArgs e)
        {

            ///////////
            uc_FloatingList = new UC_FloatingList();
            uc_FloatingList.Width = search_tbox_group.Width;
            uc_FloatingList.Height = 100;

            Point point = search_tbox_group.Location;
            point.Y += search_tbox_group.Height + 2;

            uc_FloatingList.Location = point;
            uc_FloatingList.Visible = false;
            uc_FloatingList.UpdateListViewWidth();
            uc_FloatingList.FloatingListObserver = this;
            this.Controls.Add(uc_FloatingList);
            uc_FloatingList.BringToFront();
            search_tbox_group.SetDoTextChangedAction(DoTextChangedAction);
            search_tbox_group.UC_FloatingList = uc_FloatingList;
        }
Exemplo n.º 2
0
        private void AddEditContactForm_Load(object sender, EventArgs e)
        {
            DuplicateContactMode mode = dbController.GetDuplicateContactMode();
            switch (mode)
            {
                case DuplicateContactMode.REPLACE_WITH_NEW_ITEM:
                    radio_btn_replace_with_new.Checked = true;
                    break;
                case DuplicateContactMode.ALLOW_ADD_NEW:
                    radio_btn_allow_duplicate.Checked = true;
                    break;
                case DuplicateContactMode.DO_NOT_IMPORT:
                    radio_btn_do_not_import.Checked = true;
                    break;
            }


            tbox_email.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
            tbox_email.AutoCompleteSource = AutoCompleteSource.CustomSource;

            tbox_fax.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
            tbox_fax.AutoCompleteSource = AutoCompleteSource.CustomSource;

            LoadContact();

            ///////////
            uc_FloatingList = new UC_FloatingList();
            uc_FloatingList.Width = search_tbox_group.Width;
            uc_FloatingList.Height = 100;

            Point point = search_tbox_group.Location;
            point.Y += search_tbox_group.Height + 2;

            uc_FloatingList.Location = point;
            uc_FloatingList.Visible = false;
            uc_FloatingList.UpdateListViewWidth();
            uc_FloatingList.FloatingListObserver = this;
            this.Controls.Add(uc_FloatingList);
            uc_FloatingList.BringToFront();
            search_tbox_group.SetDoTextChangedAction(DoTextChangedAction);
            search_tbox_group.UC_FloatingList = uc_FloatingList;
        }