Ejemplo n.º 1
0
 private void tabControlGoods_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (this.tabControlGoods.SelectedIndex == 0)
     {
         if (m_Datetime.tvDatetime.SelectedNode != null)
         {
             LoadData(Foundation.GetDatetimeData(this.m_strDatetime));
         }
     }
     else if (this.tabControlGoods.SelectedIndex == 1)
     {
         if (m_GoodsTypeTree.GoodsTypeTree.SelectedNode != null)
         {
             LoadData(Foundation.GetGoodsTypeData(m_GoodsTypeTree.GoodsTypeTree.SelectedNode.Tag.ToString()));
         }
         else
         {
             m_GoodsTypeTree.GoodsTypeTree.SelectedNode = m_GoodsTypeTree.GoodsTypeTree.Nodes[0];
         }
     }
     else if (this.tabControlGoods.SelectedIndex == 2)
     {
         if (m_ProviderTree.ProviderTree.SelectedNode != null)
         {
             LoadData(Foundation.GetProviderData(m_ProviderTree.ProviderTree.SelectedNode.Tag.ToString()));
         }
         else
         {
             m_ProviderTree.ProviderTree.SelectedNode = m_ProviderTree.ProviderTree.Nodes[0];
         }
     }
 }
Ejemplo n.º 2
0
 void ProviderTree_AfterSelect(object sender, TreeViewEventArgs e)
 {
     LoadData(Foundation.GetProviderData(e.Node.Tag.ToString()));
 }