Esempio n. 1
0
        void ribCB_Basislayer_CurrentChanged(object sender, RibbonPropertyChangedEventArgs e)
        {
            RibbonCombo ribCombo = (RibbonCombo)sender;

            myRegistry.regIO objRegIO = new myRegistry.regIO();
            objRegIO.regValue("blocks", "Basislayer", ((RibbonLabel)ribCombo.Current).Text);
        }
Esempio n. 2
0
        //Methoden
        private void bt_OK_Click(object sender, EventArgs e)
        {
            string Basislayer = cB_Basislayer.Text;
            bool   textOK     = false;

            if (cB_Basislayer.Text.Length > 2)
            {
                if (Basislayer.Substring(Basislayer.Length - 2, 2) == "-P")
                {
                    myAutoCAD.myLayer objLayer = myAutoCAD.myLayer.Instance;

                    myRegistry.regIO objRegIO = new myRegistry.regIO();
                    objRegIO.regValue("blocks", "Basislayer", cB_Basislayer.Text);
                    textOK = true;
                }
            }

            if (!textOK)
            {
                MessageBox.Show("Basislayer müssen dem Format \"*-P\" entsprechen!");
            }

            else
            {
                Close();
            }
        }
Esempio n. 3
0
        public void ribchkBoxImport3d_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            myRegistry.regIO objRegistry = new myRegistry.regIO();
            bool             b3d         = ((Autodesk.Windows.RibbonCheckBox)sender).IsChecked.Value;

            if (e.PropertyName == "IsChecked")
            {
                objRegistry.regValue("blocks", "insert3d", b3d);
            }
        }
Esempio n. 4
0
 private void cB_Basislayer_SelectedValueChanged(object sender, EventArgs e)
 {
     myRegistry.regIO objRegIO = new myRegistry.regIO();
     objRegIO.regValue("blocks", "Basislayer", cB_Basislayer.SelectedItem);
 }
Esempio n. 5
0
 private void nUD_Height_ValueChanged(object sender, EventArgs e)
 {
     objRegistry.regValue("blocks", "Kommastellen", Convert.ToInt32(nUD_Height.Value));
 }