These are chat archives for andrebelanger/HTMLEditor

16th
Sep 2014
Megan Ketelaar
@Xcelled
Sep 16 2014 22:37
@cjones142 just FYI, c# has an awesome thing called "Auto properties"
So this:
//for possibly being able to open a new, blank tab in the editor
bool is_blank_tab;
    //represents an available tab that can be created
    bool is_hidden_tab;


    public Tab()
    {
        is_hidden_tab = true;
    }

    public Tab(HTML_File file){
        is_hidden_tab = false;
    }

    public bool get_is_hidden_tab()
    {
        return is_hidden_tab;
    }
Could be rewritten
public bool IsBlankTab { get { throw new NotImplementException(); } }
public bool IsHiddenTab { get; private set; }

public Tab()
{
   IsHiddenTab = false;
}
Megan Ketelaar
@Xcelled
Sep 16 2014 22:45
@andrebelanger Would it be okay with you if we renamed the html stuff to follow C#'s X* class heirachry? Would make it easier to follow and implement I think.
ie this

So we'd have like

HtmlObject
HtmlAttribute
HtmlNode
HtmlElement

etc

Megan Ketelaar
@Xcelled
Sep 16 2014 23:17
Also I really love how easy C# makes stuff lol
        public void Save(string filename)
        {
            File.WriteAllLines(filename, Lines);
        }