Exemplo n.º 1
0
        public static OtherInfo GetOtherInfo()
        {
            OtherInfo other = new Common.OtherInfo();
            DataSet   ds    = Foundation.OtherInfo();

            foreach (DataRow dr in ds.Tables[0].Rows)
            {
                if ("Sell2Print" == dr["itemname"].ToString())
                {
                    other.Sell2Print = dr["itemvalue"].ToString() == "1";
                }
                else if ("Notethings" == dr["itemname"].ToString())
                {
                    other.Notethings = dr["itemvalue"].ToString();
                }
            }
            return(other);
        }
Exemplo n.º 2
0
        public void LoadData()
        {
            DataSet ds = Foundation.OtherInfo();

            foreach (DataRow dr in ds.Tables[0].Rows)
            {
                if ("Sell2Print" == dr["itemname"].ToString())
                {
                    this.cbSell2Print.Checked = dr["itemvalue"].ToString() == "1";
                }
                else if ("Notethings" == dr["itemname"].ToString())
                {
                    this.txtNotethings.Text = dr["itemvalue"].ToString();
                }
                else if ("backup" == dr["itemname"].ToString())
                {
                    this.txtBackupDir.Text = dr["itemvalue"].ToString();
                }
            }
        }