Esempio n. 1
0
        private void SupplierF(object sender, EventArgs a)
        {
            Console.WriteLine("Поставщики");
            string id = "supplier";

            if (shouldIOpen(id))
            {
                statStrip.Items[1].Text = "Вікно поставщиків не готово";
                Form z = new Window2(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "/s.csv", Encoding.UTF8);
                z.MdiParent = Program.mainWin;
                z.Text      = "Поставщики";
                z.Name      = id;
                z.Show();
            }
            statStrip.Items[1].Text = "Поставщики загружені";
        }
Esempio n. 2
0
        private void PartF(object sender, EventArgs a)
        {
            Console.WriteLine("Деталі");
            string id = "part";

            if (shouldIOpen(id))
            {
                statStrip.Items[1].Text = "Вікно деталей не готово";
                Form z = new Window2(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "/p.csv", Encoding.UTF8);
                z.MdiParent = Program.mainWin;
                z.Text      = "Детали";
                z.Name      = id;
                z.Show();
            }
            statStrip.Items[1].Text = "Деталі звантажені";
        }
Esempio n. 3
0
        private void DeliveryF(object sender, EventArgs a)
        {
            Console.WriteLine("Поставки");
            statStrip.Items[1].Text = "Вікно поставок не готово";
            string id = "delivery";

            if (shouldIOpen(id))
            {
                Form z = new Window2(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "/spj.csv", Encoding.UTF8);
                z.MdiParent = Program.mainWin;
                z.Text      = "Поставки";
                z.Name      = id;
                z.Show();
            }

            statStrip.Items[1].Text = "Поставки завантажені";
        }