示例#1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (bnbox == null)
     {
         if (enbox != null)
         {
             enbox.Close();
             enbox = null;
         }
         bnbox = new BNBox();
     }
     else if (bnbox != null)
     {
         bnbox.Close();
         bnbox = null;
     }
 }
示例#2
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            if (enbox == null)
            {
                if (bnbox != null)
                {
                    bnbox.Close();
                    bnbox = null;
                }

                enbox = new english.BNBox();
            }
            else if (enbox != null)
            {
                enbox.Close();
                enbox = null;
            }
        }