Exemple #1
0
        public void RELOAD()
        {
            lbTitle.Text = "RFID OPERATIONAL PROGRESS";
            timer1.Start();
            if (pnFill.HasChildren)
            {
                foreach (Control childControl in pnFill.Controls)
                {
                    if (childControl != lblOrder)
                    {
                        childControl.Font = new Font("Arial", 62, FontStyle.Bold);
                    }
                }
            }
            label26.Font = new Font("Arial", 32, label26.Font.Style);
            label27.Font = new Font("Arial", 32, label27.Font.Style);

            label28.Font = new Font("Arial", 54, FontStyle.Bold);
            label29.Font = new Font("Arial", 54, FontStyle.Bold);
            label30.Font = new Font("Arial", 54, FontStyle.Bold);
            label31.Font = new Font("Arial", 54, FontStyle.Bold);
            someResize();
            ReSize();

            OnNewHome += new NewHome(Form1_OnNewHome);
            LoadData();
        }
 private void Refresh_data_Load(object sender, EventArgs e)
 {
     OnNewHome += new NewHome(Form1_OnNewHome); //tab
     LoadData();                                //load data vao datagrid
     dataGridView1.FirstDisplayedCell = dataGridView1.Rows[dataGridView1.Rows.Count - 1].Cells[0];
     FormBorderStyle = FormBorderStyle.Fixed3D;
     WindowState     = FormWindowState.Maximized;
 }
        public void Form1_OnNewHome()
        {
            ISynchronizeInvoke i = (ISynchronizeInvoke)this;

            if (i.InvokeRequired)    //tab
            {
                NewHome dd = new NewHome(Form1_OnNewHome);
                i.BeginInvoke(dd, null);
                return;
            }
            LoadData();
        }
Exemple #4
0
        public void OnNewHome1()
        {
            ISynchronizeInvoke i = (ISynchronizeInvoke)this;

            if (i.InvokeRequired)
            {
                NewHome dd = new NewHome(OnNewHome1);
                i.BeginInvoke(dd, null);
                return;
            }
            LoadData();
        }
 private void BangGiaTrucTuyen_Load(object sender, EventArgs e)
 {
     OnNewHome += new NewHome(Form1_OnNewHome);
     //tab
     //load data vao datagrid
     LoadData();
     dataGridView1.ColumnHeadersHeight = dataGridView1.ColumnHeadersHeight * 2;
     dataGridView1.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
     dataGridView1.Paint              += new PaintEventHandler(dataGridView1_Paint);
     dataGridView1.Scroll             += new ScrollEventHandler(dataGridView1_Scroll);
     dataGridView1.ColumnWidthChanged += new DataGridViewColumnEventHandler(dataGridView1_ColumnWidthChanged);
 }
Exemple #6
0
        public void Form1_OnNewHome()
        {
            ISynchronizeInvoke i = (ISynchronizeInvoke)this;

            if (i.InvokeRequired)
            {
                NewHome dd = new NewHome(Form1_OnNewHome);
                i.BeginInvoke(dd, null);
                return;
            }
            DanhSachBuuCuc(Cl_KetNoi.hamketnoisql());
        }
Exemple #7
0
        private void frmBGTT_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'cKDataSet.SP_GETROW' table. You can move, or remove it, as needed.
            //tab

            try
            {
                OnNewHome += new NewHome(OnNewHome1);
                LoadData();
            }
            catch (Exception err)
            {
                MessageBox.Show("Bạn chưa kích hoạt dịch vụ Broker", err.Message, MessageBoxButtons.OK);
            }
        }
Exemple #8
0
        private void FrmPhapLy_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'data.LoaiTuVan' table. You can move, or remove it, as needed.
            this.loaiTuVanTableAdapter.Fill(this.data.LoaiTuVan);
            UseEnableControl = false;
            LockControls(false);
            OnReload();

            itemTrangThai.Enabled = HeThong.NguoiDungDangNhap.Loai == 3;
            btnChuyen.Enabled     = HeThong.NguoiDungDangNhap.Loai >= 2;



            OnNewHome += new NewHome(Form1_OnNewHome);

            LoadData();
        }
 private void Form1_Load(object sender, EventArgs e)
 {
     OnNewHome += new NewHome(Form1_OnNewHome);  //tab
     //load data vao datagrid
     LoadData();
 }
 private void Form1_Load(object sender, EventArgs e)
 {
     OnNewHome += new NewHome(Form1_OnNewHome);
     LoadData();
 }
Exemple #11
0
 private void main_Load(object sender, EventArgs e)
 {
     // loads data into the 'qLNVDataSet.NHANVIEN' table
     OnNewHome += new NewHome(Form1_OnNewHome);
     LoadData();
 }
Exemple #12
0
            public NewHome GetDById(int id)
            {
                NewHome home = db.NewHome.SingleOrDefault(s => s.HomeId == id);

                return(home);
            }
Exemple #13
0
 public async Task <ActionResult <int> > AddNewHome([FromBody] NewHome homeadd)
 {
     db.NewHome.Add(homeadd);
     return(await db.SaveChangesAsync());
 }