public FRM_PRODUCTS()
 {
     InitializeComponent();
     /// <summary>
     //للتحقق من موجود الفورم عند بناءه
     if (frm == null)
     {
         frm = this;
     }
     /// </summary>
     this.dataGridView1.DataSource = prd.GET_ALL_PRODUCTS();
 }
예제 #2
0
        private void إدارةالمنتجاتToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FRM_PRODUCTS frm = new FRM_PRODUCTS();

            frm.ShowDialog();
        }
 static void frm_FormClosed(object sender, FormClosedEventArgs e)
 {
     frm = null;
 }