コード例 #1
0
        //=============================================================================================================================
        #endregion



        #region Search button
        private void searchbutton_Click(object sender, EventArgs e)
        {
            switch (mainwindow_tabcontrol.SelectedIndex)
            {
            case 0:
            {
                try
                {
                    searchremovemodify clientsrm = new searchremovemodify();
                    clientsrm.Show();
                }
                catch (Exception ex)
                {
                    MessageBox.Show("Error: " + ex, "OOPS");
                }
            }
            break;

            case 1:
            {
                try
                {
                    complaintsmr csmr = new complaintsmr();
                    csmr.Show();
                }
                catch (Exception ex)
                {
                    MessageBox.Show("Error: " + ex, "OOPS");
                }
            }
            break;

            case 2:
            {
                try
                {
                    Billsmr bsmr = new Billsmr();
                    bsmr.Show();
                }
                catch (Exception ex)
                {
                    MessageBox.Show("Error: " + ex, "OOPS");
                }
            }
            break;
            }
        }
コード例 #2
0
        private void complaints_srm_Click(object sender, EventArgs e)
        {
            complaintsmr luf = new complaintsmr();

            luf.Show();
        }