示例#1
0
 private void LoginForm_Load(object sender, EventArgs e)
 {
     if (ReadWriteRegistry.ReadRegistry("isInvalid") == null)
     {
         ReadWriteRegistry.WriteRegistry("isInvalid", "false");
     }
     users = readWriteData.ReadData();
     //循环添加到Combox
     foreach (UsersInfo userInfo in users.Values)
     {
         cbUserName.Items.Add(userInfo.UserName);
     }
     //用户名默认选中第一个
     if (cbUserName.Items.Count > 0)
     {
         cbUserName.SelectedIndex = 0;
         txtPWD.Text = users[cbUserName.SelectedItem.ToString().Trim()].PassWord;
     }
 }
示例#2
0
 public static void SetOrderDetails()
 {
     OrderDetails = ReadWriteData.ReadData <List <OrderDetails> >("orderdetails");
 }
示例#3
0
 public static void SetOrder()
 {
     Orders = ReadWriteData.ReadData <List <Order> >("Order");
 }
示例#4
0
 public static void SetManager()
 {
     Managers = ReadWriteData.ReadData <List <Manager> >("manager");
 }
示例#5
0
 public static void SetProductCategory()
 {
     ProductsCategories = ReadWriteData.ReadData <List <ProductsCategories> >("productCategory");
 }
示例#6
0
 public static void SetCategory()
 {
     Categories = ReadWriteData.ReadData <List <Categories> >("category");
 }
示例#7
0
 public static void SetProduct()
 {
     Products = ReadWriteData.ReadData <List <Product> >("product");
 }