Exemplo n.º 1
0
        public static TabTextPage GetTextPage(string title, string text)
        {
            string  key  = title + "TEXT";
            TabPage page = null;

            if (!Instance._alPagesStore.TryGetValue(key, out page))
            {
                page = new TabTextPage(title, text);
                Instance._alPagesStore.Add(key, page);
            }
            else
            {
                ((TabTextPage)page).RichTextBox.Text = text;
            }

            return((TabTextPage)page);
        }
Exemplo n.º 2
0
        public static TabTextPage GetTextPage(string title, string text)
        {
            string key = title + "TEXT";
            TabPage page = null;
            if (!Instance._alPagesStore.TryGetValue(key, out page))
            {
                page = new TabTextPage(title, text);
                Instance._alPagesStore.Add(key, page);
            }
            else
            {
                ((TabTextPage)page).RichTextBox.Text = text;
            }

            return (TabTextPage)page;
        }