Esempio n. 1
0
        private void btnInsertTop_Click(object sender, EventArgs e)
        {
            if (_InsertTopShield)
            {
                return;
            }
            try
            {
                _InsertTopShield = true;

                Globs.CancelCommand();

#if OLDER_THAN_2015
                _AcAp.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("Plan2RaumnummernInsertTop2 ", true, false, false);
#else
                _AcAp.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("Plan2RaumnummernInsertTop ", true, false, false);
#endif
            }
            catch (Exception ex)
            {
                _AcAp.Application.ShowAlertDialog(ex.Message);
            }
            finally
            {
                _InsertTopShield = false;
            }
        }
Esempio n. 2
0
        private void btnAbzFlaechenGrenzeLayerName_Click(object sender, EventArgs e)
        {
            if (_AbzFlaechenGrenzeLayerNameShield)
            {
                return;
            }
            try
            {
                _AbzFlaechenGrenzeLayerNameShield = true;

                Globs.CancelCommand();

                _AcAp.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("Plan2RaumnummerSelAbzFgLayer ", true, false, false);
            }
            catch (Exception ex)
            {
                _AcAp.Application.ShowAlertDialog(ex.Message);
            }
            finally
            {
                _AbzFlaechenGrenzeLayerNameShield = false;
            }
        }
Esempio n. 3
0
        private void btnFlaBereinig_Click(object sender, EventArgs e)
        {
            if (_FlaBereinigShield)
            {
                return;
            }
            try
            {
                _FlaBereinigShield = true;

                Globs.CancelCommand();

                _AcAp.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("Plan2FlaBereinig ", true, false, false);
            }
            catch (Exception ex)
            {
                _AcAp.Application.ShowAlertDialog(ex.Message);
            }
            finally
            {
                _FlaBereinigShield = false;
            }
        }
Esempio n. 4
0
        private void btnSelectBlock_Click(object sender, EventArgs e)
        {
            if (_SelectBlockShield)
            {
                return;
            }
            try
            {
                _SelectBlockShield = true;

                Globs.CancelCommand();

                _AcAp.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("Plan2RaumnummerSelBlockAndAtt ", true, false, false);
            }
            catch (Exception ex)
            {
                _AcAp.Application.ShowAlertDialog(ex.Message);
            }
            finally
            {
                _SelectBlockShield = false;
            }
        }