Пример #1
0
        public frmTimKiem(IGuiTinNhan gui_tin_nhan)
        {
            InitializeComponent();

            _guiTinNhan = gui_tin_nhan;

            ControlPlus.MovieFormWhenMouseDownControl(controlBoxFlat1, this.Handle);
            ControlPlus.MovieFormWhenMouseDownControl(controlBoxFlat1.lblFormText, this.Handle);

            panTimKiemThoiGianDangNhap.DataBindings.Add("Enabled", chkTimNguoiMoiDangNhap, "Checked");

            _duLieuTimKiem = gui_tin_nhan.TaoDuLieuTimKiem();

            foreach (var noio in _duLieuTimKiem.NoiO)
            {
                cbbNoiO.Items.Add(noio.Value);
            }

            foreach (var tinhtrang in _duLieuTimKiem.TinhTrangHonNhan)
            {
                cbbTinhTrangHonNhan.Items.Add(tinhtrang);
            }

            foreach (var gtinh in _duLieuTimKiem.GioiTinh)
            {
                cbbGioiTinh.Items.Add(gtinh.Value);
            }

            cbbTinhTrangHonNhan.DisplayMember = "TenTinhTrang";

            cbbGioiTinh.SelectedIndex = 0;
            cbbNoiO.SelectedIndex     = 0;
            cbbTinhTrangHonNhan.SetItemChecked(0, true);
        }
Пример #2
0
        public frmVerify()
        {
            InitializeComponent();

            ControlPlus.MovieFormWhenMouseDownControl(controlBoxFlat1, this.Handle);
            ControlPlus.MovieFormWhenMouseDownControl(controlBoxFlat1.lblFormText, this.Handle);
        }
Пример #3
0
        public frmMain()
        {
            InitializeComponent();

            ControlPlus.MovieFormWhenMouseDownControl(controlBoxFlat1, this.Handle);
            ControlPlus.MovieFormWhenMouseDownControl(controlBoxFlat1.lblFormText, this.Handle);

            _db = new DatabaseManager(TrangWeb.ThongTinNguoiDung);
        }
Пример #4
0
        public frmMainTab()
        {
            InitializeComponent();

            CheckForIllegalCrossThreadCalls = false;

            ControlPlus.MovieFormWhenMouseDownControl(controlBoxFlat1, this.Handle);
            ControlPlus.MovieFormWhenMouseDownControl(controlBoxFlat1.lblFormText, this.Handle);
        }
Пример #5
0
        public frmThemNguoiDung()
        {
            InitializeComponent();

            ControlPlus.MovieFormWhenMouseDownControl(controlBoxFlat1, this.Handle);
            ControlPlus.MovieFormWhenMouseDownControl(controlBoxFlat1.lblFormText, this.Handle);

            this.NguoiDung = new ThongTinNguoiDung();
        }
        public frmTuDongDangKyTaiKhoan(TrangWeb trang)
        {
            InitializeComponent();
            _trang = trang;
            this.DanhSachTaiKhoanDaDangKy = new List <ThongTinTaiKhoan>();
            switch (trang)
            {
            case TrangWeb.HenHo2:
                _gioiTinh = new List <Tuple <string, string> >()
                {
                    new Tuple <string, string>("Nam", "0"),
                    new Tuple <string, string>("Nữ", "1"),
                    new Tuple <string, string>("Gay", "2"),
                    new Tuple <string, string>("Les", "3")
                };
                break;

            case TrangWeb.DuyenSo:
                _gioiTinh = new List <Tuple <string, string> >()
                {
                    new Tuple <string, string>("Nam", "1"),
                    new Tuple <string, string>("Nữ", "2"),
                    new Tuple <string, string>("Gay", "3"),
                    new Tuple <string, string>("Les", "4")
                };
                break;

            case TrangWeb.eHenHo:
                _gioiTinh = new List <Tuple <string, string> >()
                {
                    new Tuple <string, string>("Nam", "male"),
                    new Tuple <string, string>("Nữ", "female")
                };
                break;
            }
            foreach (var gt in _gioiTinh)
            {
                cbbGioiTinh.Items.Add(gt.Item1);
            }
            cbbGioiTinh.SelectedIndex = 0;
            #region Tùy chỉnh các thông số
            //Di chuyển form khi mà di chuyển các điểu khiển sau
            ControlPlus.MovieFormWhenMouseDownControl(topPanel, this.Handle);
            ControlPlus.MovieFormWhenMouseDownControl(formNameLabel, this.Handle);
            ControlPlus.MovieFormWhenMouseDownControl(bottomPanel, this.Handle);
            ControlPlus.MovieFormWhenMouseDownControl(statusLabel, this.Handle);
            ControlPlus.MovieFormWhenMouseDownControl(infoLabel, this.Handle);
            //flatStyle1 = new Controls.FlatStyle(this);
            //flatStyle1.Style = Style.Dark;
            //Cho phép thay đổi kích thước form khi di chuột vào góc form
            this.AllowResize = true;
            this.Text        = formNameLabel.Text;
            #endregion
        }
        public frmTimKiemBrowser(TrangWeb trang)
        {
            InitializeComponent();

            _trang = trang;


            ControlPlus.MovieFormWhenMouseDownControl(controlBoxFlat1.lblFormText, this.Handle);

            this.DanhSachTaiKhoanDuocChon = new List <ThongTinTaiKhoan>();

            switch (trang)
            {
            case TrangWeb.HenHo2:
                webBrowser1.Navigate("http://henho2.com/Home/Index?gtinh=0&countryid=237&province=-1&maritial=1&objective=2&ageFrom=&ageTo=&name=");
                break;
            }
        }
Пример #8
0
        private void AddText(ControlPlus.TipImage tipData, string title, int source, int real, string color, bool isLeft)
        {
            if (isLeft)
            {
                tipData.AddTextNewLine(string.Format("{0} {1,3:D}", title, source), color);
            }
            else
            {
                tipData.AddTextOff(string.Format("{0} {1,3:D}", title, source), color, 90);
            }

            int temp = real - source;
            if (temp > 0)
            {
                tipData.AddText(string.Format("+{0,2:D}", temp), "Lime");
            }
            else if (temp < 0)
            {
                tipData.AddText(string.Format("{0,2:D}", temp), "Red");
            }
        }