Example #1
0
        public static FormSupplier Instance()
        {
            if (sForm == null)
            {
                sForm = new FormSupplier();
            }

            return(sForm);
        }
Example #2
0
        private void supplierToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CloseAllChild();

            Form sForm = FormSupplier.Instance();

            sForm.MdiParent = this;
            sForm.Show();
            sForm.Activate();
        }
Example #3
0
        private void FormSupplier_Load(object sender, EventArgs e)
        {
            this.WindowState = FormWindowState.Maximized;

            sFunctions.CreateDirectory("\\@Data\\@Image");

            daFormSupplierList = new MySqlDataAdapter("", clsConnection.CN);

            LoadSupplier("SELECT tblsupplier.suppliercode, tblsupplier.suppliername, tblsupplier.discription, tblsupplier.bussinessno, tblsupplier.email, tblsupplier.address, tblsupplier.status FROM tblsupplier ORDER BY tblsupplier.autoid ASC");

            publicFormSupplier = this;
        }