public OptionsPage()
 {
     MSCEPath             = BentleyDataCollector.MSCEPath();
     MSCESDKPath          = BentleyDataCollector.GetSDKPath(MSCEPath);
     BentleyApp           = BentleyDataCollector.GetBentleyApp(MSCEPath);
     MDLAPPSPath          = BentleyDataCollector.GetMdlappsPath(MSCEPath);
     BentleyBuildFilePath = BentleyDataCollector.BentleyBuildBatchFilePath(BentleyApp);
     BatchLock            = false;
     MDLAPPSLock          = false;
 }
示例#2
0
        private void btnReset_Click(object sender, EventArgs e)
        {
            tbMSCEPath.Text = BentleyDataCollector.MSCEPath();
            foreach (var item in BentleyDataCollector.BentleyProducts)
            {
                if (tbMSCEPath.Text == item.Value.ToString())
                {
                    cboBentleyProduct.Text = item.Key.ToString();
                }
            }

            tbSDKPath.Text             = BentleyDataCollector.GetSDKPath(tbMSCEPath.Text);
            msceOptionsPage.BentleyApp = BentleyDataCollector.GetBentleyApp(tbMSCEPath.Text);
            if (!msceOptionsPage.MDLAPPSLock)
            {
                tbMDLAPPSPath.Text = BentleyDataCollector.GetMdlappsPath(tbMSCEPath.Text);
            }

            if (!msceOptionsPage.BatchLock)
            {
                tbBuildPath.Text = BentleyDataCollector.BentleyBuildBatchFilePath(msceOptionsPage.BentleyApp);
            }
        }