예제 #1
0
        /// <summary>
        /// On Click federated button
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnFederate_Click(object sender, EventArgs e)
        {
            Federate FedDlg = new Federate(txtPath.Text);
            var      result = FedDlg.ShowDialog(this);

            if (result == DialogResult.OK)
            {
                txtPath.Text      = FedDlg.FileName;
                MapRefModelsRoles = FedDlg.FileRoles;
            }
            rolesList.Enabled = (Path.GetExtension(txtPath.Text).ToUpper() != ".XBIMF");
        }
 /// <summary>
 /// On Click federated button
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnFederate_Click(object sender, EventArgs e)
 {
     Federate FedDlg = new Federate(txtPath.Text);
     var result = FedDlg.ShowDialog(this);
     if (result == DialogResult.OK)
     {
         txtPath.Text = FedDlg.FileName;
         MapRefModelsRoles = FedDlg.FileRoles;
     }
     rolesList.Enabled = (Path.GetExtension(txtPath.Text).ToUpper() != ".XBIMF");
 }