コード例 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            ClientWithPrimaryDetails frmClient = new ClientWithPrimaryDetails();

            frmClient.TopLevel = false;
            splitContainer.Panel2.Controls.Add(frmClient);
            frmClient.Dock = DockStyle.Fill;
            frmClient.Show();
        }
コード例 #2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (trvList.SelectedNode != null)
     {
         Client client = convertSelectedRowDataToClient();
         ClientWithPrimaryDetails frmClient = new ClientWithPrimaryDetails(client);
         frmClient.TopLevel = false;
         splitContainer.Panel2.Controls.Add(frmClient);
         frmClient.Dock = DockStyle.Fill;
         frmClient.Show();
     }
 }