Beispiel #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;
            }
        }
Beispiel #2
0
        private void client_dataGridView_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            client_details cd_sent        = new client_details();
            int            selectedindex  = e.RowIndex;
            object         selectedObject = client_dataGridView.Rows[selectedindex].DataBoundItem;
            DataRow        ddt            = (selectedObject as DataRowView).Row;

            cd_sent.ClientID       = ddt["ClientID"].ToString();
            cd_sent.ClientName     = ddt["ClientName"].ToString();
            cd_sent.ClientAddress  = ddt["ClientAddress"].ToString();
            cd_sent.ContactNo      = Convert.ToInt32(ddt["ContactNo"].ToString());
            cd_sent.IP_Address     = ddt["IP_Address"].ToString();
            cd_sent.MAC_Address    = ddt["MAC_Address"].ToString();
            cd_sent.ConnectionType = ddt["ConnectionType"].ToString();;
            cd_sent.ConnTakenOn    = Convert.ToDateTime(ddt["ConnTakenOn"].ToString());
            cd_sent.PackageTaken   = ddt["PackageTaken"].ToString();
            searchremovemodify _sending_client = new searchremovemodify(cd_sent);

            _sending_client.Show();
        }
        private void searchmodifyremove_Click(object sender, EventArgs e)
        {
            searchremovemodify smr = new searchremovemodify();

            smr.Show();
        }