| | |
| | | |
| | | public void LoadPage() |
| | | { |
| | | Action<string,string> action = (s,a) => { |
| | | var page = new AddThirdPartyBrandListpage(brandList); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.FunctionBrand)).LoadTopView_AddIcon("3ty",action); |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.FunctionBrand)).LoadTopView();//.LoadTopView_AddIcon("3ty",action); |
| | | |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | |
| | |
| | | }; |
| | | contentView.AddChidren(btnTipText1); |
| | | |
| | | var btnAdd = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(500), |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Width = Application.GetRealWidth(220), |
| | | Height = Application.GetRealWidth(44), |
| | | BackgroundColor = CSS_Color.MainColor, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | | TextSize = CSS_FontSize.SubheadingFontSize, |
| | | IsBold = true, |
| | | Radius = (uint)Application.GetRealWidth(22), |
| | | BorderColor = 0x00000000, |
| | | BorderWidth = 0, |
| | | TextID = StringId.Add, |
| | | }; |
| | | contentView.AddChidren(btnAdd); |
| | | |
| | | |
| | | btnAdd.MouseUpEventHandler = (sender, e) => { |
| | | var page = new AddThirdPartyBrandListpage(brandList); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage(); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | this.RemoveFromParent(); |
| | | }; |
| | | //var btnAdd = new Button() |
| | | //{ |
| | | // Y = Application.GetRealHeight(500), |
| | | // Gravity = Gravity.CenterHorizontal, |
| | | // Width = Application.GetRealWidth(220), |
| | | // Height = Application.GetRealWidth(44), |
| | | // BackgroundColor = CSS_Color.MainColor, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.MainBackgroundColor, |
| | | // TextSize = CSS_FontSize.SubheadingFontSize, |
| | | // IsBold = true, |
| | | // Radius = (uint)Application.GetRealWidth(22), |
| | | // BorderColor = 0x00000000, |
| | | // BorderWidth = 0, |
| | | // TextID = StringId.Add, |
| | | //}; |
| | | //contentView.AddChidren(btnAdd); |
| | | //btnAdd.MouseUpEventHandler = (sender, e) => { |
| | | // var page = new AddThirdPartyBrandListpage(brandList); |
| | | // MainPage.BasePageView.AddChidren(page); |
| | | // page.LoadPage(); |
| | | // MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | // this.RemoveFromParent(); |
| | | //}; |
| | | |
| | | |
| | | |