public void SetUIByMineInfo(MineInfo mine)
 {
     mineUC = mine;
     try
     {
         txtMineID.Text = mine.MineID;
         txtCity.Text = mine.City;
         txtMineName.Text = mine.MineName;
         txtShortMineName.Text = mine.ShortMineName;
         cbmEconomyType.SelectedItem =mine.EconomyType;
         txtMineLeaderName.Text = mine.MineLeaderName;
         txtMineAddress.Text = mine.MineAddress;
         txtMaxInWellEmployeeCount.Text = mine.MaxInWellEmployeeCount;
         txtMinePhone.Text = mine.MinePhone;
         txtRemark.Text = mine.Remark;
     }
     catch { }
 }
 public void OnMineInfoChangedEvent(MineInfo mine)
 {
     MineInfoChangedEvent.Invoke(mine);
 }
 public FormMineInfo(MineInfo mine)
 {
     InitializeComponent();
     mineInfo = mine;
 }
Exemplo n.º 4
0
 private void GetMineInfo()
 {
     mineInfo = new MineInfo();
     mineInfo.MineID = FileConfig.GetConfigValue("MineID");
     mineInfo.City = FileConfig.GetConfigValue("City");
     mineInfo.MineName = FileConfig.GetConfigValue("MineName");
     mineInfo.ShortMineName = FileConfig.GetConfigValue("ShortMineName");
     mineInfo.EconomyType = FileConfig.GetConfigValue("EconomyType");
     mineInfo.MineLeaderName = FileConfig.GetConfigValue("MineLeaderName");
     mineInfo.MineAddress = FileConfig.GetConfigValue("MineAddress");
     mineInfo.MaxInWellEmployeeCount = FileConfig.GetConfigValue("MaxInWellEmployeeCount");
     mineInfo.MinePhone = FileConfig.GetConfigValue("MinePhone");
     mineInfo.Remark = FileConfig.GetConfigValue("Remark");
     mineID = mineInfo.MineID;
     dal.d_MineID = mineID;
 }
Exemplo n.º 5
0
 void fmi_MineInfoChangedEvent(MineInfo mine)
 {
     mineInfo = mine;
     SetMineInfo(mine);
     isMineInfoChanged = true;
 }
Exemplo n.º 6
0
 private void SetMineInfo(MineInfo mine)
 {
     FileConfig.SetValue("MineID", mine.MineID);
     FileConfig.SetValue("City", mine.City);
     FileConfig.SetValue("MineName", mine.MineName);
     FileConfig.SetValue("ShortMineName", mine.ShortMineName);
     FileConfig.SetValue("EconomyType", mine.EconomyType);
     FileConfig.SetValue("MineLeaderName", mine.MineLeaderName);
     FileConfig.SetValue("MineAddress", mine.MineAddress);
     FileConfig.SetValue("MaxInWellEmployeeCount", mine.MaxInWellEmployeeCount);
     FileConfig.SetValue("MinePhone", mine.MinePhone);
     FileConfig.SetValue("Remark", mine.Remark);
     mineID = mine.MineID;
     dal.d_MineID = mineID;
 }