Beispiel #1
0
        private void Edit_Button_Click(object sender, EventArgs e)
        {
            if (this.Edit_Offer_List.SelectedItems.Count > 0)
            {
                ListViewItem m_Item   = this.Edit_Offer_List.SelectedItems[0];
                int          m_ItemID = Convert.ToInt32(m_Item.Tag);

                OfferNode m_CurrentNode             = this.Offer.Nodes.Where(q => q.ItemID == m_ItemID).FirstOrDefault();
                Node_Set_Amount_Gumpling m_Gumpling = new Node_Set_Amount_Gumpling();
                m_Gumpling.Node = m_CurrentNode;
                m_Gumpling.NodeAmountChanged += Gumpling_NodeAmountChanged;
                m_Gumpling.ShowDialog();
            }
        }
Beispiel #2
0
        private void Edit_Button_Click(object sender, EventArgs e)
        {
            if (this.Buy_Items_List.SelectedItems.Count > 0)
            {
                int m_ItemID = Convert.ToInt32(this.Buy_Items_List.SelectedItems[0].Tag);

                StockMovementNode m_Node = this.StockMovement.Nodes.Where(q => q.ItemID == m_ItemID).FirstOrDefault();

                Node_Set_Amount_Gumpling m_Gumpling = new Node_Set_Amount_Gumpling();
                m_Gumpling.Node = m_Node;
                m_Gumpling.NodeAmountChanged += NodeAmountChanged;
                m_Gumpling.ShowDialog();
            }
        }
Beispiel #3
0
 private void Buy_Items_Pop_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Multiply)
     {
         if (this.StockMovement.Nodes.Count > 0)
         {
             StockMovementNode        m_Node     = this.StockMovement.Nodes.LastOrDefault();
             Node_Set_Amount_Gumpling m_Gumpling = new Node_Set_Amount_Gumpling();
             m_Gumpling.Node = m_Node;
             m_Gumpling.NodeAmountChanged += NodeAmountChanged;
             m_Gumpling.ShowDialog();
         }
     }
 }
Beispiel #4
0
        private void Manage_Sales_Mdi_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Multiply)
            {
                if (this.Invoice.Nodes.Count > 0)
                {
                    InvoiceNode m_Node = this.Invoice.Nodes.LastOrDefault();

                    Node_Set_Amount_Gumpling m_Gumpling = new Node_Set_Amount_Gumpling();
                    m_Gumpling.Node = m_Node;
                    m_Gumpling.NodeAmountChanged += NodeAmountChanged;
                    m_Gumpling.ShowDialog();
                }
            }
        }
Beispiel #5
0
        private void düzenleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (this.Edit_Sale_List.SelectedItems.Count == 1)
            {
                int m_ItemID = Convert.ToInt32(this.Edit_Sale_List.SelectedItems[0].Tag);

                InvoiceNode m_Node = this.Invoice.Nodes.Where(q => q.ItemID == m_ItemID).FirstOrDefault();

                if (m_Node != null)
                {
                    Node_Set_Amount_Gumpling m_Gumpling = new Node_Set_Amount_Gumpling();
                    m_Gumpling.Node = m_Node;
                    m_Gumpling.NodeAmountChanged += NodeAmountChanged;
                    m_Gumpling.ShowDialog();
                }
            }
        }