private void txcorg_name_ChooserClick(object sender, EventArgs e)
 {
     frmOrganization frmModels = new frmOrganization();
     DialogResult result = frmModels.ShowDialog();
     if (result == DialogResult.OK)
     {
         txtcom_name.Caption = frmModels.Com_Name;
         txcorg_name.Text = frmModels.Org_Name;
         txcorg_name.Tag = frmModels.Org_Id;
     }
 }
예제 #2
0
        private void btnOrganization_Click(object sender, EventArgs e)
        {
            frmOrganization Organization = new frmOrganization();
            Organization.IsCanSelectMore = true;
            DialogResult result = Organization.ShowDialog();
            if (result == DialogResult.OK)
            {

                rtbOrganization.Text = Organization.Org_Name.Contains(",") ? Organization.Org_Name.Substring(0, Organization.Org_Name.Length - 1) : Organization.Org_Name;
                rtbOrganization.Tag = Organization.Org_Id.Contains(",") ? Organization.Org_Id.Substring(0, Organization.Org_Id.Length - 1) : Organization.Org_Id;
            }
        }