Esempio n. 1
0
 private void DataGridView_Station_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         DialogStation diglog = new DialogStation(false, Convert.ToInt32(this.DataGridView_Station.Rows[e.RowIndex].Cells["ID"].Value), this.mainform);
         diglog.ShowDialog(this);
     }
 }
Esempio n. 2
0
 private void btn_Update_Click(object sender, EventArgs e)
 {
     if (this.DataGridView_Station.SelectedRows.Count > 0)
     {
         DialogStation diglog = new DialogStation(true, Convert.ToInt32(this.DataGridView_Station.SelectedRows[0].Cells["ID"].Value), this.mainform);
         diglog.ShowDialog(this);
     }
     else
     {
         MessageBox.Show("请先选择一个您要查看的基站。", "详细信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Esempio n. 3
0
        private void btn_New_Click(object sender, EventArgs e)
        {
            //if (Global.IsTempVersion && DB_Service.MainDataSet.Tables["StationTable"].Rows.Count >= 5)
            //{
            //    MessageBox.Show("对不起,您的软件为演示版。基站数目不能超过4个。请购买正式版本。", "新建基站", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            //    return;
            //}
            DialogStation diglog = new DialogStation(this.mainform);

            diglog.ShowDialog(this);
            label_AllStation.Text = "共有基站 " + DB_Service.MainDataSet.Tables["StationTable"].Rows.Count.ToString() + " 个";
        }
Esempio n. 4
0
        /// <summary>
        /// 通过指定的StationID初始化本窗体默认显示的基站
        /// </summary>
        /// <param name="DataGridViewIndex"></param>
        public void ShowStationInfoByID(int stationID)
        {
            DialogStation diglog = new DialogStation(false, stationID, this.mainform);

            diglog.ShowDialog(this);
        }