public void setMapModel(MapModel model, ToBattleDialog toBattleDialog, MapDialog mapDialog) { _mapModel = model; _toBattleDialog = toBattleDialog; _mapDialog = mapDialog; _updateView(); }
private void ShowDestination() { MapDialog mapDialog = new MapDialog(TravelLocation, UserLocation) { Title = "Route", CloseButtonText = "Close" }; var result = mapDialog.ShowAsync(); }
void Awake() { _Instance = this; tween = GetComponent <TweenPosition>(); desLabel = transform.Find("Sprite/DesLabel").GetComponent <UILabel>(); energyTagLabel = transform.Find("Sprite/EnergyTagLabel").GetComponent <UILabel>(); energyLabel = transform.Find("Sprite/EnergyLabel").GetComponent <UILabel>(); enterBtn = transform.Find("Sprite/EnterBtn").GetComponent <UIButton>(); }
void Awake() { instance = this; btnClose = transform.Find("btn-close").GetComponent <UIButton>(); dialog = transform.Find("Dialog").GetComponent <MapDialog>(); enterBtn = transform.Find("Dialog/btn-enter").GetComponent <UIButton>(); EventDelegate ed1 = new EventDelegate(this, "OnCloseClick"); btnClose.onClick.Add(ed1); EventDelegate ed2 = new EventDelegate(this, "OnEnter"); }
private void OpenMap() { Stream stream; MapDialog.ShowDialog(); try { stream = MapDialog.OpenFile(); } catch (Exception f) { MessageBox.Show(f.Message); throw f; } Apply_Map(stream); }
private void MapItButton_Click(object sender, EventArgs e) { string szAddress = ""; string szCity = ""; string szState = ""; MapDialog dlg = new MapDialog(); foreach (DataGridViewRow row in routeViewDataGridView.SelectedRows) { szAddress = row.Cells[5].Value.ToString(); szCity = row.Cells[6].Value.ToString(); szState = row.Cells[7].Value.ToString(); szAddress = szAddress + " ," + szCity + " ," + szState; dlg.AddLocation(szAddress); } dlg.ShowDialog(); }