Exemplo n.º 1
0
 public TabsHelper(EventHandler <TextChangedEventArgs> textAreaTextChanged, EventHandler textAreaSelectionChangedDelayed, TabControl mainTabControl, DashGlobal dashGlobal)
 {
     MainTabControl = mainTabControl;
     TextAreaSelectionChangedDelayed = textAreaSelectionChangedDelayed;
     TextAreaTextChanged             = textAreaTextChanged;
     DashGlobal = dashGlobal;
 }
Exemplo n.º 2
0
        private string[] snippets = { }; //{ "diag_log \"\";", "for \"_i\" from 1 to 10 do { debugLog _i; };", "call compile preprocessFileLine Numbers \"\";" };

        #endregion Fields

        #region Constructors

        public EditorHelper(
            EventHandler<TextChangedEventArgs> textAreaTextChanged,
            EventHandler<TextChangedEventArgs> textAreaTextChangedDelayed,
            KeyEventHandler textAreaKeyUp,
            EventHandler textAreaSelectionChangedDelayed,
            DragEventHandler textAreaDragDrop,
            DragEventHandler textAreaDragEnter,
            TabControl mainTabControl,
            AutocompleteMenu armaSense,
            DashGlobal dashGlobal)
        {
            TextAreaTextChanged = textAreaTextChanged;
            TextAreaTextChangedDelayed = textAreaTextChangedDelayed;
            TextAreaKeyUp = textAreaKeyUp;
            TextAreaSelectionChangedDelayed = textAreaSelectionChangedDelayed;
            TextAreaDragDrop = textAreaDragDrop;
            TextAreaDragEnter = textAreaDragEnter;
            MainTabControl = mainTabControl;
            ArmaSense = armaSense;

            DashGlobal = dashGlobal;

            ArmaListItemsCount = 0;
            ArmaSenseKeywords = new List<AutocompleteItem>();

            foreach (var item in keywordList)
            {
                ArmaSenseKeywords.Add(new AutocompleteItem(item) { ImageIndex = 0, ToolTipTitle = "Arma Script Command", ToolTipText = item });
            }
        }
Exemplo n.º 3
0
 public TabsHelper(EventHandler<TextChangedEventArgs> textAreaTextChanged, EventHandler textAreaSelectionChangedDelayed, TabControl mainTabControl, DashGlobal dashGlobal)
 {
     MainTabControl = mainTabControl;
     TextAreaSelectionChangedDelayed = textAreaSelectionChangedDelayed;
     TextAreaTextChanged = textAreaTextChanged;
     DashGlobal = dashGlobal;
 }
Exemplo n.º 4
0
        public Main()
        {
            this.DashGlobal = new DashGlobal(
                textArea_TextChanged,
                textArea_TextChangedDelayed,
                textArea_KeyUp,
                textArea_SelectionChangedDelayed,
                textArea_DragDrop,
                textArea_DragEnter,
                mainTabControl,
                ArmaSense,
                this);

            InitializeComponent();

            this.DashGlobal.EditorHelper.MainTabControl     = mainTabControl;
            this.DashGlobal.TabsHelper.MainTabControl       = mainTabControl;
            this.DashGlobal.SettingsHelper.MainTabControl   = mainTabControl;
            this.DashGlobal.EditorHelper.ArmaSenseImageList = armaSenseImageList;
        }
Exemplo n.º 5
0
 public FilesHelper(DashGlobal dashGlobal)
 {
     DashGlobal = dashGlobal;
 }
Exemplo n.º 6
0
 public FilesHelper(DashGlobal dashGlobal)
 {
     DashGlobal = dashGlobal;
 }