| | |
| | | { |
| | | public class ReplicationView |
| | | { |
| | | Dialog dialog = new Dialog(); |
| | | FrameLayout fLayout = new FrameLayout |
| | | { |
| | | Height = Application.GetRealHeight(667), |
| | | BackgroundColor = CSS.CSS_Color.viewMiddle, |
| | | }; |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public void Show() |
| | | public void Show(FrameLayout frame) |
| | | { |
| | | #region 界面布局 |
| | | dialog.BackgroundColor = CSS.CSS_Color.viewMiddle; |
| | | frame.AddChidren(fLayout); |
| | | PirDevice.View.TopView topView = new View.TopView(); |
| | | topView.topNameBtn.TextID = StringId.fuzhiyaokonggongnneg; |
| | | dialog.AddChidren(topView.FLayoutView()); |
| | | topView.clickBackBtn.MouseUpEventHandler += (sender, e) => { dialog.Close();}; |
| | | fLayout.AddChidren(topView.FLayoutView()); |
| | | topView.clickBackBtn.MouseUpEventHandler += (sender, e) => { RemView(); }; |
| | | FrameLayout frameLayout = new FrameLayout(); |
| | | frameLayout.Height = Application.GetRealHeight(667 - 64); |
| | | frameLayout.Y = Application.GetRealHeight(64); |
| | | // frameLayout.BackgroundColor = CSS.CSS_Color.textWhiteColor; |
| | | dialog.AddChidren(frameLayout); |
| | | // frameLayout.BackgroundColor = CSS.CSS_Color.textWhiteColor; |
| | | fLayout.AddChidren(frameLayout); |
| | | var textBtn = new Button |
| | | { |
| | | Y = Application.GetRealHeight(24), |
| | |
| | | UnSelectedImagePath = "PirIcon/icon2.png", |
| | | }; |
| | | frameLayout.AddChidren(icon2Btn); |
| | | dialog.Show(); |
| | | #endregion |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 移除当前界面 |
| | | /// </summary> |
| | | public void RemView() { |
| | | dialog.Close(); |
| | | public void RemView() |
| | | { |
| | | fLayout.RemoveFromParent(); |
| | | } |
| | | } |
| | | } |