public void OnBtnTrClick(BtnTranscript transcript) //from btntranscript { PlayerInfo info = PlayerInfo._instance; if (info.LevelNums > transcript.needLevel) { dialog.ShowDialog(transcript); } else { dialog.ShowWarn(); } }
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(); }