Example #1
0
        private void btnQd_Click(object sender, EventArgs e)
        {
            frmOutPlan frm = new frmOutPlan();

            frm.Show("装船");
            App.LinkedListForm.AddLast(frm);
        }
Example #2
0
 private void listView1_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         if (listView1.SelectedIndices.Count > 0)
         {
             if (listView1.SelectedIndices[0] == 0)
             {
                 hStore.Forms.OutResearch.zt.frmOutPlan frm = new hStore.Forms.OutResearch.zt.frmOutPlan();
                 Global.frmCurrent      = frm;
                 Global.storage.expflag = "zt";
                 frm.Owner = this;
                 frm.Show();
                 this.Hide();
             }
             if (listView1.SelectedIndices[0] == 1)
             {
                 hStore.Forms.OutResearch.zk.frmOutPlan frm = new hStore.Forms.OutResearch.zk.frmOutPlan();
                 Global.frmCurrent      = frm;
                 Global.storage.expflag = "zk";
                 frm.Owner = this;
                 frm.Show();
                 this.Hide();
             }
             if (listView1.SelectedIndices[0] == 2)
             {
                 hStore.Forms.OutResearch.zc.frmOutCP frm = new hStore.Forms.OutResearch.zc.frmOutCP();
                 Global.frmCurrent      = frm;
                 Global.storage.expflag = "zc";
                 frm.Owner = this;
                 frm.Show();
                 this.Hide();
             }
             else if (listView1.SelectedIndices[0] == 3)
             {
                 hStore.Forms.OutResearch.tl.frmOutPlan frm = new hStore.Forms.OutResearch.tl.frmOutPlan();
                 Global.frmCurrent      = frm;
                 Global.storage.expflag = "tl";
                 frm.Owner = this;
                 frm.Show();
                 this.Hide();
             }
             else if (listView1.SelectedIndices[0] == 4)
             {
                 frmOutPlan frm = new frmOutPlan();
                 Global.frmCurrent = frm;
                 frm.Owner         = this;
                 frm.Show();
                 this.Hide();
             }
         }
     }
     else if (e.KeyCode == Keys.Escape)
     {
         Global.frmCurrent      = this.Owner;
         Global.storage.expflag = "";
         this.Owner.Show();
         this.Owner = null;
         this.imgList.Images.Clear();
         this.imgList.Dispose();
         this.Close();
         this.Dispose();
     }
 }