Пример #1
0
        private void FlyoutPanel1_ButtonClick(object sender, FlyoutPanelButtonClickEventArgs e)
        {
            try
            {
                string caption = e.Button.Caption.ToString();
                switch (caption)
                {
                case "작업이동":
                    if (FlyoutDialog.Show(this.FindForm(), MyDevExpressFunctions.CreateCloseAction()) == System.Windows.Forms.DialogResult.Yes)
                    {
                        List <DashboardDTO>  gridList   = this.gridControl2.DataSource as List <DashboardDTO>;
                        IList <DashboardDTO> resultList = new List <DashboardDTO>();
                        for (int x = 0; x < gridList.Count; x++)
                        {
                            // https://stackoverflow.com/questions/12762617/how-to-get-the-selected-row-values-of-devexpress-xtragrid
                            if (gridList[x].CHK2.ToString() == "True")
                            {
                                DashboardDTO vo = gridList[x];
                                vo.EQP_ID      = gridList[checkedGridView1].EQP_ID;
                                vo.ORDER_COUNT = gridList[checkedGridView1].ORDER_COUNT;
                                resultList.Add(vo);
                            }
                        }
                        this.gridControl3.DataSource = resultList;
                    }
                    ;

                    break;

                case "적용":
                    //(sender as FlyoutPanel).HidePopup();
                    //this.panelComparence.Visible = false; this.flyoutPanel1.OptionsButtonPanel.ShowButtonPanel = false;
                    (sender as FlyoutPanel).HidePopup();
                    this.panelComparence.Visible = false; this.flyoutPanel1.OptionsButtonPanel.ShowButtonPanel = false; this.gridControl3.Visible = false; this.gridControl3.DataSource = null;
                    break;

                case "취소":
                    // . . .
                    (sender as FlyoutPanel).HidePopup();
                    this.panelComparence.Visible = false; this.flyoutPanel1.OptionsButtonPanel.ShowButtonPanel = false; this.gridControl3.Visible = false; this.gridControl3.DataSource = null;
                    break;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Пример #2
0
 void OnButtonClick(object sender, FlyoutPanelButtonClickEventArgs e)
 {
     XtraMessageBox.Show(e.Button.Caption);
 }
Пример #3
0
 private void flyoutPanel1_ButtonClick(object sender, FlyoutPanelButtonClickEventArgs e)
 {
     if (e.Button.Caption == "Close")
     {
         flyoutPanelNotifications.HidePopup();
     }
 }