public void Initialise(User loggedInUser, MediaTag myMediaTag, Page page) { myPage = page; LoggedInUser = loggedInUser; MyMediaTag = myMediaTag; if (LoggedInUser.AccountType == "admin" || LoggedInUser.AccountType == "member") { UploadDiv.Style.Clear(); } }
public void Initialise(User loggedInUser, Page page, bool showButton = true) { myPage = page; LoggedInUser = loggedInUser; MyMediaTag = null; if (LoggedInUser.AccountType == "admin" || LoggedInUser.AccountType == "member") { UploadDiv.Style.Clear(); } UploadDiv.Visible = showButton; }
public void Initialise(User loggedInUser, Page page, MediaTag myMediaTag) { MyMediaTag = myMediaTag; Initialise(loggedInUser, page); }