Пример #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 toolStripMenuItem10_Click(object sender, EventArgs e)
        {
            Billsmr newsearch = new Billsmr();

            newsearch.Show();
        }