| | |
| | | |
| | | var bg = new Button |
| | | { |
| | | X = Application.GetRealWidth(485), |
| | | X = Application.GetRealWidth(495), |
| | | Y = Application.GetRealHeight(161), |
| | | Width = Application.GetRealWidth(449), |
| | | Height = Application.GetRealHeight(495), |
| | |
| | | |
| | | var bg1 = new FrameLayout |
| | | { |
| | | X = Application.GetRealWidth(485), |
| | | X = Application.GetRealWidth(495), |
| | | Y = Application.GetRealHeight(161), |
| | | Width = Application.GetRealWidth(449), |
| | | Height = Application.GetRealHeight(495), |
| | |
| | | atHome.IsSelected = true; |
| | | tempRow = atHome; |
| | | } |
| | | atHome.ClickBtn.MouseUpEventHandler += (sender, e) => |
| | | atHome.ButtonClickEvent += (sender, e) => |
| | | { |
| | | if((sender as Button).IsSelected) |
| | | if(sender.IsSelected) |
| | | { |
| | | dialog.Close(); |
| | | return; |
| | |
| | | dialog.Close(); |
| | | if(result == GarrisonMode.AtHome) |
| | | { |
| | | |
| | | |
| | | } |
| | | }); |
| | | |
| | | |
| | | }) |
| | | { IsBackground = true }.Start(); |
| | | }; |
| | |
| | | withdrawGarriso.IsSelected = true; |
| | | tempRow = withdrawGarriso; |
| | | } |
| | | withdrawGarriso.ClickBtn.MouseUpEventHandler += (sender, e) => |
| | | withdrawGarriso.ButtonClickEvent += (sender, e) => |
| | | { |
| | | if ((sender as Button).IsSelected) |
| | | if (sender.IsSelected) |
| | | { |
| | | dialog.Close(); |
| | | return; |
| | |
| | | { |
| | | atHome.IsSelected = true; |
| | | } |
| | | atHome.ClickBtn.MouseUpEventHandler += (sender, e) => |
| | | atHome.ButtonClickEvent += (sender, e) => |
| | | { |
| | | if ((sender as Button).IsSelected) |
| | | if (sender.IsSelected) |
| | | { |
| | | dialog.Close(); |
| | | return; |
| | |
| | | { |
| | | removeHome.IsSelected = true; |
| | | } |
| | | removeHome.ClickBtn.MouseUpEventHandler += (sender, e) => |
| | | removeHome.ButtonClickEvent += (sender, e) => |
| | | { |
| | | if ((sender as Button).IsSelected) |
| | | if (sender.IsSelected) |
| | | { |
| | | dialog.Close(); |
| | | return; |
| | |
| | | { |
| | | withdrawGarriso.IsSelected = true; |
| | | } |
| | | withdrawGarriso.ClickBtn.MouseUpEventHandler += (sender, e) => |
| | | withdrawGarriso.ButtonClickEvent += (sender, e) => |
| | | { |
| | | if ((sender as Button).IsSelected) |
| | | if (sender.IsSelected) |
| | | { |
| | | dialog.Close(); |
| | | return; |