Exemplo n.º 1
0
        public PassageInfoUI(PassageInfo p, int category)
        {
            InitializeComponent();

            if (p != null)
            {
                info          = p;
                Title         = p.Title;
                this.category = category;
            }

            Dock = DockStyle.Top;
        }
Exemplo n.º 2
0
        public PassageEditor(PassageInfo info, int category)
        {
            InitializeComponent();

            this.info = info;

            foreach (CategoryInfo c in Globals.Categories)
            {
                cmbCategories.Items.Add("" + c.Id + ": " + c.Title);
            }

            Category = category;

            codeEdit1.Language = FastColoredTextBoxNS.Language.HTML;
        }