/// <summary> /// 檢視通知 /// </summary> private void ViewNotified() { if (this.DataGridView_Notified.SelectedRows.Count == 0) { return; } DataRowView rowView = (DataRowView)this.DataGridView_Notified.SelectedRows[0].DataBoundItem; NotifiedBox form = new NotifiedBox((MiniTipsDataSet.TipsNotifiedRow)rowView.Row); form.ShowDialog(); this.DataGridView_Notified.Refresh(); }
/// <summary> /// 當使用者按下 BalloonTip , 開啟檢視通知 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void NotifyIcon_Tip_BalloonTipClicked(object sender, EventArgs e) { MiniTipsDataSet.TipsNotifiedRow[] row = (MiniTipsDataSet.TipsNotifiedRow[])_ds.TipsNotified.Select("Viewed=False", "NotifiedDate DESC"); if (row.Length > 0) { NotifiedBox form = new NotifiedBox(row[0]); form.ShowDialog(); this.DataGridView_Notified.Refresh(); } }