Ejemplo n.º 1
0
        /// <summary>
        /// 리스트 아이템 더블클릭.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void lvWaitToOrderSWRList_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                AdengListView view = sender as AdengListView;
                if (view == null || view.SelectedItems == null || view.SelectedItems.Count <= 0)
                {
                    return;
                }
                AdengListViewItem item = view.SelectedItems[0];
                if (item == null)
                {
                    return;
                }

                SWRProfile profile = item.Tag as SWRProfile;
                if (profile == null)
                {
                    return;
                }

                SWRWarningItemDetailForm detailForm = new SWRWarningItemDetailForm(profile);
                detailForm.ShowDialog(this);
            }
            catch (Exception ex)
            {
                System.Console.WriteLine("[WaitToOrderForm] lvWaitToOrderSWRList_DoubleClick( Exception: \n" + ex.ToString() + ")");
                FileLogManager.GetInstance().WriteLog("[WaitToOrderForm] lvWaitToOrderSWRList_DoubleClick( Exception=[" + ex.ToString() + "] )");
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 헤드라인 클릭
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void lblHeadline_Click(object sender, EventArgs e)
        {
            if (this.currentOrderInfo.RefType != OrderReferenceType.SWR)
            {
                return;
            }

            if (this.currentOrderInfo.Tag == null)
            {
                return;
            }
            SWRProfile profile = this.currentOrderInfo.Tag as SWRProfile;

            if (profile == null)
            {
                return;
            }

            SWRWarningItemDetailForm swrDetailForm = new SWRWarningItemDetailForm(profile);

            swrDetailForm.Show();
        }