예제 #1
0
 public MessageLogFrame()
 {
     InitializeComponent();
     codeEditor1.Dock = DockStyle.Fill;
     lvMessages.Dock  = DockStyle.Fill;
     Disposed        += new EventHandler(MessageLogFrame_Disposed);
     cbxStyle.Items.Add(Texts.Get("s_log_as_list"));
     cbxStyle.Items.Add(Texts.Get("s_log_as_trace"));
     Style      = MessageFrameStyle.List;
     m_imgCache = new ImageCache(imageList1, Color.White);
 }
예제 #2
0
 public DATreeView()
 {
     m_invoker = new ControlInvoker(this);
     InitializeComponent();
     m_imgCache = new ImageCache(imageList1, Color.White);
     //m_manager = new ResourceManager("StdIcons", typeof(DATreeView).Assembly);
     SetTreeBehaviour();
     HObjectClipboard.Changed += HObjectClipboard_Changed;
     this.Disposed            += new EventHandler(DATreeView_Disposed);
     HConnection.RemoveByKey  += HConnection_RemoveByKey;
     OnlineHelpManager.RegisterHelpButton(btnOnlineHelp, "contree", true);
 }
예제 #3
0
        //FindAndReplaceForm m_findForm;

        public CodeEditor()
        {
            Disposed += new EventHandler(CodeEditor_Disposed);

            HSettings.ReloadSettings += HSettings_ReloadSettings;
            HSettings_ReloadSettings();
            ActiveTextAreaControl.TextArea.KeyDown += new System.Windows.Forms.KeyEventHandler(TextArea_KeyDown);
            m_imageList = new ImageList();
            m_imgCache  = new ImageCache(m_imageList, Color.White);
            if (MainWindow.Instance != null && CodeCompletionFeature.Allowed)
            {
                m_complHandler = CodeCompletionKeyHandler.Attach(MainWindow.Instance.Window, this);
                m_tipProvider  = ToolTipProvider.Attach(MainWindow.Instance.Window, this);
            }
        }
예제 #4
0
 public SettingsPageFrame()
 {
     InitializeComponent();
     m_imgCache = new ImageCache(imageList1, SystemColors.ButtonFace);
 }
예제 #5
0
 public TabbedDashboardFrame()
 {
     InitializeComponent();
     SelectedObject = null;
     m_imgCache     = new ImageCache(imageList1, SystemColors.ButtonFace);
 }
예제 #6
0
        public CodeCompletionProvider(Form parentForm, IDatabaseSource conn, SqlEditorAnalyser anal, ImageCache imgCache, char firstChar, TextAreaControl textArea, CodeCompletionSettings settings)
        {
            m_parentForm = parentForm;
            m_conn       = conn;
            m_anal       = anal;
            m_dialect    = m_conn.Dialect;
            m_imgCache   = imgCache;
            m_firstChar  = firstChar;
            m_settings   = settings;

            if (m_firstChar == '\0')
            {
                int    col  = textArea.Caret.Column;
                string line = textArea.Document.GetText(textArea.Document.GetLineSegment(textArea.Caret.Line));
                var    sb   = new StringBuilder();
                while (col >= 1 && (Char.IsLetterOrDigit(line[col - 1]) || line[col - 1] == '_'))
                {
                    sb.Insert(0, line[col - 1]);
                    col--;
                }
                if (sb.Length > 0)
                {
                    m_presel = sb.ToString();
                }
            }
        }