public void SetForm(MainForm form) { //Type form.Sign_TypeChooser.SelectedIndex = form.Sign_TypeChooser.FindStringExact(Type.ToString()); form.Sign_TypeValue1.Text = m_typeValue1; form.Sign_TypeValue2.Text = m_typeValue2; //Color form.Sign_ColorChooser.SelectedIndex = form.Sign_ColorChooser.FindStringExact(SignNode.ColorDictionary.FirstOrDefault(x => x.Value == (TextColor)).Key); //Event form.Sign_EventButton.Checked = HasEvent; if (HasEvent) { form.Sign_Action.SelectedIndex = form.Sign_Action.FindStringExact(Action); form.Sign_ActionValue.Text = ActionValue; } form.SetFormatting(Bold, Italic, Underlined, Strikethrough, Obfuscated); }