public ViewArticleTextPivotItem(ViewArticle viewArticlePage) { InitializeComponent(); InitializeAppBar(); this.Header = "내용"; this.viewArticlePage = viewArticlePage; }
public WriteArticlePivotItem(ViewArticle page, IBoard board) { InitializeComponent(); InitializeApplicationBar(); this.DataContext = this; this.viewArticlePage = page; this.board = board; }
protected ApplicationBar appBar = null; // 목록에서의 앱바 public ViewArticleListPivotItem(ViewArticle viewArticlePage, IBoard board) { InitializeComponent(); InitializeAppBar(board); InitializeNextButton(); this.viewArticlePage = viewArticlePage; this.board = board; this.Header = "목록"; }
public Tuple <ICredential, UserControl> GetCredential(string siteID, ViewArticle page) { ISite site = GetSite(siteID); if (site is DCInsideSite) { return(Tuple.Create <ICredential, UserControl>(site.Credential, new DCInsideLoginPanel((DCInsideCredential)site.Credential, page))); } else { return(Tuple.Create <ICredential, UserControl>(null, null)); } }
public DCInsideLoginPanel(DCInsideCredential credential, ViewArticle parent) { InitializeComponent(); this.credential = credential; this.parent = parent; // Status가 바뀔때 컨트롤의 동작들도 바뀐다 // 컨트롤 값 채우기 LoginIDTextBox.Text = credential.MemberID; LoginPWTextBox.Password = credential.MemberPassword; SaveLoginInfoCheckBox.IsChecked = credential.SaveLoginInfo; AutoLoginCheckBox.IsChecked = credential.AutoLogin; credential.OnStatusChanged += OnStatusChanged; UpdateLoginSubmitButton(); }
public ViewSearchArticleListPivotItem(ViewArticle page, IBoard board, string text, SearchType searchType) : base(page, board) { // InitializeComponent(); this.board = board; this.searchText = text; this.searchType = searchType; this.Header = "검색"; // appBar에 전체 목록 보기 var listIconButton = new ApplicationBarIconButton() { IconUri = new Uri("/Data/appbar.gotoslide.rest.png", UriKind.Relative), Text = "전체보기" }; listIconButton.Click += listIconButton_Click; appBar.Buttons.Add(listIconButton); }