Пример #1
0
        private void stokToolStripMenuItem_Click(object sender, EventArgs e)
        {
            StockForm frm = new StockForm();

            frm.MdiParent = this;
            frm.Show();
        }
Пример #2
0
        /// <summary>
        /// Edition d'un stock
        /// </summary>
        /// <param name="p"></param>
        /// <param name="action"></param>
        private void NewStock(Product p, int action)
        {
            StockForm s = new StockForm((Product)currentProduct.Clone(), action);

            if (s.ShowDialog() != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }
            StockManager.Instance.Save(s.getStock());
            Reload(ProductManager.Instance.All());
            Utils.Notify("Stock du produit modifié");
            return;
        }
Пример #3
0
 static void Main()
 {
     try
     {
         log.Info("Running....");
         Application.EnableVisualStyles();
         Application.SetCompatibleTextRenderingDefault(false);
         using (IApplicationContext ctx = ContextRegistry.GetContext())
         {
             StockForm stockForm = new StockForm();
             Application.ThreadException += ThreadException;
             Application.Run(stockForm);
         }
     }
     catch (Exception e)
     {
         log.Error("Spring.RabbitQuickStart.Client is broken.", e);
     }
 }
Пример #4
0
        static void Main()
        {
            try
            {
                log.Info("Running....");
                NamespaceParserRegistry.RegisterParser(typeof(GemfireNamespaceParser));
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

                BrokerConfiguration.Configure();

                using (IApplicationContext ctx = ContextRegistry.GetContext())
                {
                    StockForm stockForm = new StockForm();
                    Application.ThreadException += ThreadException;
                    Application.Run(stockForm);
                }
            }
            catch (Exception e)
            {
                log.Error("Spring.Interop.StockTraderSample.Client is broken.", e);
                throw;
            }
        }
Пример #5
0
        private void stockReportToolStripMenuItem_Click(object sender, EventArgs e)
        {
            StockForm sForm = new StockForm();

            sForm.Show();
        }
        private void btnStockManagement_Click(object sender, EventArgs e)
        {
            StockForm sf = new StockForm();

            sf.Show();
        }
        private void btnItemPUNISHMENT(object sender, EventArgs e)
        {
            StockForm frm = new StockForm();

            CheckFormStatus(frm);
        }