コード例 #1
0
 private void CRTotalSalesButton_Click(object sender, EventArgs e)
 {
     if (totalSales == null)
     {
         totalSales           = new totalsalesform();
         totalSales.MdiParent = this;
         totalSales.Dock      = DockStyle.Fill;
         totalSales.Show();
         totalSales.FormClosed += TotalSales_FormClosed;
     }
     else
     {
         totalSales.Activate();
     }
 }
コード例 #2
0
 private void TotalSales_FormClosed(object sender, FormClosedEventArgs e)
 {
     totalSales = null;
 }