コード例 #1
0
 public DropDownFilterControl()
 {
     InitializeComponent();
     m_helper = new ControlDataHelper<string>(this);
     m_helper.Initialise += m_helper_Initialise;
     m_helper.Uninitialise += m_helper_Uninitialise;
 }
コード例 #2
0
ファイル: FileControl.xaml.cs プロジェクト: Pertex/Quest
        public FileControl()
        {
            InitializeComponent();

            m_helper = new ControlDataHelper<string>(this);
            m_helper.Initialise += m_helper_Initialise;
        }
コード例 #3
0
ファイル: CheckBoxControl.xaml.cs プロジェクト: Pertex/Quest
 public CheckBoxControl()
 {
     InitializeComponent();
     m_helper = new ControlDataHelper<bool>(this);
     m_helper.Options.DisplaysOwnCaption = true;
     m_helper.Initialise += m_helper_Initialise;
 }
コード例 #4
0
ファイル: LabelControl.xaml.cs プロジェクト: Pertex/Quest
 public LabelControl()
 {
     InitializeComponent();
     m_helper = new ControlDataHelper<string>(this);
     m_helper.Options.DisplaysOwnCaption = true;
     m_helper.Initialise += m_helper_Initialise;
 }
コード例 #5
0
 public ListStringControl()
 {
     InitializeComponent();
     toolbar.IsItemSelected = false;
     m_helper = new ControlDataHelper<IEditableList<string>>(this);
     m_helper.Options.Resizable = true;
     m_helper.Initialise += m_helper_Initialise;
 }
コード例 #6
0
        public ExpressionControl()
        {
            InitializeComponent();

            m_helper = new ControlDataHelper<string>(this);
            m_helper.Initialise += Initialise;
            InitialiseInsertMenu();
        }
コード例 #7
0
ファイル: RichTextControl.xaml.cs プロジェクト: Pertex/Quest
        public RichTextControl()
        {
            InitializeComponent();
            m_helper = new ControlDataHelper<string>(this);
            m_helper.Options.Resizable = true;
            m_helper.Initialise += m_helper_Initialise;

            ctlRichText.Dirty += new WFRichTextControl.DirtyEventHandler(ctlRichText_Dirty);
        }
コード例 #8
0
ファイル: TitleControl.xaml.cs プロジェクト: Pertex/Quest
        public TitleControl()
        {
            InitializeComponent();
            m_helper = new ControlDataHelper<string>(this);
            m_helper.Initialise += m_helper_Initialise;
            m_helper.Options.DisplaysOwnCaption = true;

            gs1.Color = SystemColors.ControlLightLightColor;
            gs2.Color = SystemColors.ControlDarkColor;
            gs3.Color = gs1.Color;
        }
コード例 #9
0
        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;
        }
コード例 #10
0
 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;
     ctlDictionaryString.Dirty += ctlDictionaryString_Dirty;
     ctlDictionaryString.RequestParentElementEditorSave += ctlDictionaryString_RequestParentElementEditorSave;
 }
コード例 #11
0
        public ScriptEditorControl()
        {
            InitializeComponent();
            SetEditButtonsEnabled(false);
            m_helper = new ControlDataHelper<IEditableScripts>(this);
            m_helper.Initialise += m_helper_Initialise;

            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.PopOut += ctlToolbar_PopOut;

            ctlScriptAdder.AddScript += ctlScriptAdder_AddScript;
        }
コード例 #12
0
        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;

            UpdateUndoRedoEnabled(true);
        }
コード例 #13
0
ファイル: NumberControl.xaml.cs プロジェクト: Pertex/Quest
 public NumberControl()
 {
     InitializeComponent();
     m_helper = new ControlDataHelper<int>(this);
     m_helper.Initialise += m_helper_Initialise;
 }
コード例 #14
0
ファイル: TextBoxControl.xaml.cs プロジェクト: Pertex/Quest
 public TextBoxControl()
 {
     InitializeComponent();
     m_helper = new ControlDataHelper<string>(this);
     m_helper.Initialise += Initialise;
 }
コード例 #15
0
ファイル: GameIdControl.xaml.cs プロジェクト: JatinR/quest
 public GameIdControl()
 {
     InitializeComponent();
     m_helper = new ControlDataHelper<string>(this);
 }
コード例 #16
0
ファイル: PatternControl.xaml.cs プロジェクト: Pertex/Quest
 public PatternControl()
 {
     InitializeComponent();
     m_helper = new ControlDataHelper<IEditableCommandPattern>(this);
 }