Example #1
0
 public LabelControl()
 {
     InitializeComponent();
     m_helper = new ControlDataHelper <string>(this);
     m_helper.Options.DisplaysOwnCaption = true;
     m_helper.Initialise += m_helper_Initialise;
 }
Example #2
0
 public DropDownControl()
 {
     InitializeComponent();
     m_helper               = new ControlDataHelper <string>(this);
     m_helper.Initialise   += m_helper_Initialise;
     m_helper.Uninitialise += m_helper_Uninitialise;
 }
Example #3
0
 public CheckBoxControl()
 {
     InitializeComponent();
     m_helper = new ControlDataHelper <bool>(this);
     m_helper.Options.DisplaysOwnCaption = true;
     m_helper.Initialise += m_helper_Initialise;
 }
Example #4
0
        public FileControl()
        {
            InitializeComponent();

            m_helper             = new ControlDataHelper <string>(this);
            m_helper.Initialise += m_helper_Initialise;
        }
Example #5
0
 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;
 }
Example #6
0
        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;
 }
Example #9
0
        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);
        }
Example #11
0
 public GameIdControl()
 {
     InitializeComponent();
     m_helper = new ControlDataHelper <string>(this);
 }
Example #12
0
 public PatternControl()
 {
     InitializeComponent();
     m_helper = new ControlDataHelper <IEditableCommandPattern>(this);
 }
Example #13
0
 public RichTextControl()
 {
     InitializeComponent();
     m_helper             = new ControlDataHelper <string>(this);
     m_helper.Initialise += Initialise;
 }
Example #14
0
 public NumberDoubleControl()
 {
     InitializeComponent();
     m_helper             = new ControlDataHelper <double>(this);
     m_helper.Initialise += m_helper_Initialise;
 }
Example #15
0
 public GameIdControl()
 {
     InitializeComponent();
     cmdGenerate.Content = L.T("EditorGenerate");
     m_helper            = new ControlDataHelper <string>(this);
 }