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); }
//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(); } }
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); } }
private void cB_Basislayer_SelectedValueChanged(object sender, EventArgs e) { myRegistry.regIO objRegIO = new myRegistry.regIO(); objRegIO.regValue("blocks", "Basislayer", cB_Basislayer.SelectedItem); }
private void nUD_Height_ValueChanged(object sender, EventArgs e) { objRegistry.regValue("blocks", "Kommastellen", Convert.ToInt32(nUD_Height.Value)); }