Beispiel #1
0
        private void ToolStripMenuItem_add_Click(object sender, EventArgs e)
        {
            StationList        _tmpData = null;
            Add_Modify_Station tmpAdd_Modify_Station = new Add_Modify_Station(_tmpData);

            tmpAdd_Modify_Station.ShowDialog();
            if (tmpAdd_Modify_Station.result == DialogResult.OK)
            {
                GetStationList();
            }
        }
Beispiel #2
0
        private void ToolStripMenuItem_edittype_Click(object sender, EventArgs e)
        {
            StationList _tmpData = new StationList();

            for (int i = 0; i < tmpListStation.Count; i++)
            {
                if (_tmpStationList.StationID == tmpListStation[i].StationID)
                {
                    _tmpData = tmpListStation[i];
                    break;
                }
            }
            Add_Modify_Station tmpAdd_Modify_Station = new Add_Modify_Station(_tmpData);

            tmpAdd_Modify_Station.ShowDialog();
            if (tmpAdd_Modify_Station.result == DialogResult.OK)
            {
                GetStationList();
            }
        }