Example #1
0
 private void button3_Click(object sender, EventArgs e)
 {
     try
     {
         button3click = 1;
         A_RT_Time_Set st = new A_RT_Time_Set();
         DialogResult  dr = st.ShowDialog();
         if (dr == DialogResult.OK)
         {
             button3.AccessibleDefaultActionDescription = StrWhere() + " And Ri.InStationHeadTime >= '" + time1 + "' And Ri.InStationHeadTime <= '" + time2 + "' ";
         }
         else
         {
             button3.AccessibleDefaultActionDescription = StrWhere();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
        private void button3_Click(object sender, EventArgs e)
        {
            try
            {
                button3click = 1;
                A_RT_Time_Set st = new A_RT_Time_Set();
                DialogResult dr = st.ShowDialog();
                if (dr == DialogResult.OK)
                {
                    button3.AccessibleDefaultActionDescription = StrWhere() + " And Ri.InStationHeadTime >= '" + time1 + "' And Ri.InStationHeadTime <= '" + time2 + "' ";
                }
                else
                {
                    button3.AccessibleDefaultActionDescription = StrWhere();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

        }