示例#1
0
    public void OnBtnTrClick(BtnTranscript transcript)  //from btntranscript
    {
        PlayerInfo info = PlayerInfo._instance;

        if (info.LevelNums > transcript.needLevel)
        {
            dialog.ShowDialog(transcript);
        }
        else
        {
            dialog.ShowWarn();
        }
    }
示例#2
0
        private void OpenMap()
        {
            Stream stream;

            MapDialog.ShowDialog();
            try
            {
                stream = MapDialog.OpenFile();
            }
            catch (Exception f)
            {
                MessageBox.Show(f.Message);
                throw f;
            }
            Apply_Map(stream);
        }
示例#3
0
        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();
        }