Esempio n. 1
0
    public void BindRecent()
    {
        DataSet dsr = new DataSet();

        dsr = objsql.GetDataset("select top 8 * from tblOurDeals where Status='1' order by id desc");
        if (dsr.Tables[0].Rows.Count > 0)
        {
            ListRecent.DataSource = dsr;
            ListRecent.DataBind();
        }
        dsr.Clear();
    }
        //////////////////////////////////////////////////////////////////////////
        private void OnLoad(object sender, EventArgs e)
        {
            this.MinimumSize = this.Size;
            if (AppMgr != null)
            {
                LoadLayout(AppMgr.Settings);
            }


            SetState();
            if (TxtProject.Enabled)
            {
                TxtProject.Focus();
            }
            else if (ListRecent.Enabled)
            {
                ListRecent.Focus();
            }
        }