Example #1
0
        private void btnOpen_Click(object sender, EventArgs e)
        {
            // string strSearchName = listboxRecipeName.SelectedItem.ToString();
            if (tbrecipename.Text.Length > 0)
            {
                if (label1.Text == "Recipe Name")
                {
                    Openrecipe openrecipe = new Openrecipe();
                    openrecipe.recipetype = this;
                    openrecipe.ShowDialog();
                }
                if (label1.Text == "Cassette Recipe Name")
                {
                    OpenCassetteWafer opencassette = new OpenCassetteWafer();

                    opencassette.updatelistbox += new OpenCassetteWafer.UpdateListbox(btnCassette_Click);



                    opencassette.ShowDialog();
                }
                if (label1.Text == "Conditioning Recipe Name")
                {
                    OpenConditionRecipe openconditionRecipe = new OpenConditionRecipe();

                    openconditionRecipe.ShowDialog();
                }
            }
            else
            {
                MessageBox.Show("pleace select recipe");
            }
        }
Example #2
0
 private void btnOpen_Click(object sender, EventArgs e)
 {
     if (cmbRecipe.SelectedItem.ToString().Length > 0)
     {
         /*  selectwaferrecipe = cmbWaferRecipe.SelectedItem.ToString();
          * SqlConnection con = new SqlConnection(scsb.ToString());
          * con.Open();
          * string strSQL = "select * from newrecipe where recipename like @1";
          * SqlCommand cmd = new SqlCommand(strSQL, con);
          * cmd.Parameters.AddWithValue("@1", selectwaferrecipe);*/
         Openrecipe openrecipe = new Openrecipe();
         openrecipe.ShowDialog();
     }
 }