public LabelControl() { InitializeComponent(); m_helper = new ControlDataHelper <string>(this); m_helper.Options.DisplaysOwnCaption = true; m_helper.Initialise += m_helper_Initialise; }
public DropDownControl() { InitializeComponent(); m_helper = new ControlDataHelper <string>(this); m_helper.Initialise += m_helper_Initialise; m_helper.Uninitialise += m_helper_Uninitialise; }
public CheckBoxControl() { InitializeComponent(); m_helper = new ControlDataHelper <bool>(this); m_helper.Options.DisplaysOwnCaption = true; m_helper.Initialise += m_helper_Initialise; }
public FileControl() { InitializeComponent(); m_helper = new ControlDataHelper <string>(this); m_helper.Initialise += m_helper_Initialise; }
public ListStringControl() { InitializeComponent(); toolbar.IsItemSelected = false; m_helper = new ControlDataHelper <IEditableList <string> >(this); m_helper.Options.Resizable = true; m_helper.Options.Scrollable = true; m_helper.Initialise += m_helper_Initialise; }
public ExpressionControl() { InitializeComponent(); m_helper = new ControlDataHelper <string>(this); m_helper.Initialise += Initialise; m_helper.Uninitialise += Uninitialise; InitialiseInsertMenu(); }
public DictionaryScriptControl() { InitializeComponent(); m_helper = new ControlDataHelper <IEditableDictionary <IEditableScripts> >(this); m_helper.Options.Resizable = true; m_helper.Initialise += m_helper_Initialise; m_helper.Uninitialise += m_helper_Uninitialise; ctlDictionaryScript.Dirty += ctlDictionaryScript_Dirty; ctlDictionaryScript.RequestParentElementEditorSave += ctlDictionaryScript_RequestParentElementEditorSave; }
public DictionaryStringControl() { InitializeComponent(); m_helper = new ControlDataHelper <IEditableDictionary <string> >(this); // "Resizable" option doesn't work well for WinForms usercontrols - this should be made resizable // when the control is fully converted to WPF. //m_helper.Options.Resizable = true; m_helper.Initialise += m_helper_Initialise; m_helper.Uninitialise += m_helper_Uninitialise; ctlDictionaryString.Dirty += ctlDictionaryString_Dirty; ctlDictionaryString.RequestParentElementEditorSave += ctlDictionaryString_RequestParentElementEditorSave; }
public ScriptEditorControl() { InitializeComponent(); SetEditButtonsEnabled(false); m_helper = new ControlDataHelper <IEditableScripts>(this); m_helper.Initialise += m_helper_Initialise; m_helper.Uninitialise += m_helper_Uninitialise; ctlToolbar.MakeEditable += ctlToolbar_MakeEditable; ctlToolbar.Delete += ctlToolbar_Delete; ctlToolbar.MoveUp += ctlToolbar_MoveUp; ctlToolbar.MoveDown += ctlToolbar_MoveDown; ctlToolbar.Cut += ctlToolbar_Cut; ctlToolbar.Copy += ctlToolbar_Copy; ctlToolbar.Paste += ctlToolbar_Paste; ctlToolbar.CodeView += ctlToolbar_CodeView; ctlToolbar.PopOut += ctlToolbar_PopOut; }
public TextEditorControl() { InitializeComponent(); m_helper = new ControlDataHelper <string>(this); m_helper.Options.Scrollable = true; m_helper.Initialise += new Action(m_helper_Initialise); SetSyntaxHighlighting("XML"); textEditor.HorizontalScrollBarVisibility = System.Windows.Controls.ScrollBarVisibility.Auto; textEditor.Padding = new System.Windows.Thickness(5); m_foldingManager = FoldingManager.Install(textEditor.TextArea); textEditor.TextArea.TextEntering += TextEntering; textEditor.TextArea.TextEntered += TextEntered; textEditor.TextArea.KeyUp += KeyPressed; textEditor.TextChanged += TextChanged; UndoActionStepCounts = new Stack <int>(); RedoActionStepCounts = new Stack <int>(); UpdateUndoRedoEnabled(true); }
public GameIdControl() { InitializeComponent(); m_helper = new ControlDataHelper <string>(this); }
public PatternControl() { InitializeComponent(); m_helper = new ControlDataHelper <IEditableCommandPattern>(this); }
public RichTextControl() { InitializeComponent(); m_helper = new ControlDataHelper <string>(this); m_helper.Initialise += Initialise; }
public NumberDoubleControl() { InitializeComponent(); m_helper = new ControlDataHelper <double>(this); m_helper.Initialise += m_helper_Initialise; }
public GameIdControl() { InitializeComponent(); cmdGenerate.Content = L.T("EditorGenerate"); m_helper = new ControlDataHelper <string>(this); }