Ejemplo n.º 1
0
 private void yfBtnAdd_Click(object sender, EventArgs e)
 {
     //新增源房
     using (源房Form yF = new 源房Form())
     {
         yF.ShowDialog(this);
     }
 }
Ejemplo n.º 2
0
 private void yfBtnEdit_Click(object sender, EventArgs e)
 {
     //编辑源房
     if (treeView1.SelectedNode != null && treeView1.SelectedNode.Tag is SourceRoom)
     {
         SourceRoom yf = treeView1.SelectedNode.Tag as SourceRoom;
         using (源房Form yF = new 源房Form(yf.ID))
         {
             yF.ShowDialog(this);
         }
     }
 }
Ejemplo n.º 3
0
 public void 编辑源房_Click(object sender, EventArgs e)
 {
     //编辑源房
     if (treeView1.SelectedNode != null && treeView1.SelectedNode.Tag is 源房)
     {
         源房 yf = treeView1.SelectedNode.Tag as 源房;
         using (源房Form yF = new 源房Form(yf.ID))
         {
             yF.ShowDialog(this);
         }
     }
 }
Ejemplo n.º 4
0
 public void 新增源房_Click(object sender, EventArgs e)
 {
     #region 加密狗对源房套数的限制
     int num = int.Parse(Helper.ReadOffsetDataAndDecrypt(376, 12));
     if (num != 0)
     {
         int num2 = 源房.GetYF(context).Execute(System.Data.Objects.MergeOption.NoTracking).Count();//系统当前源房数量
         if (num2 >= num)
         {
             ComponentFactory.Krypton.Toolkit.KryptonMessageBox.Show(string.Format("此版本已达到源房套数上限 - {0}套源房。\r\n如需操作更多源房,请联系软件开发商!", num), "源房上限提示",
                                                                     System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Information);
             return;
         }
     }
     #endregion
     //新增源房
     using (源房Form yF = new 源房Form())
     {
         yF.ShowDialog(this);
     }
 }