예제 #1
0
        private void tstmiEditProduct_Click(object sender, EventArgs e)
        {
            Product product = getSelectedProduct();

            if (product != null)
            {
                ProductUserControl control = new ProductUserControl(product);
                control.ProductListener = this;
                Management.ShowDialog(control, "تعديل منتج");
            }
        }
 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     Management.ShowDialog(new ProductUserControl(new Product()), "منتج جديد");
 }
 private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     Management.ShowDialog(new OrderUserControl(new Order()), "فاتورة جديدة");
 }
 private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     Management.ShowDialog(new ClientUserControl(new Client()), "عميل جديد");
 }
 private void btnNewClient_Click(object sender, EventArgs e)
 {
     Management.ShowDialog(new ClientUserControl(new Client()), "عميل جديد");
 }