void DWMYClick(string ButtonCap, string ButtonCD)
        {
            //MessageBox.Show(ButtonCap + "    " + ButtonCD);
            switch (ButtonCD)
            {
            case "C":
                Smart_FTY.ComVar._frm_home_dmp_dmc.Show();
                this.Hide();
                break;

            case "D":
                this.Hide();
                Form fc = Application.OpenForms["FRM_SMT_DMP_TOPO_DAILY"];
                if (fc != null)
                {
                    fc.Show();
                }
                else
                {
                    FRM_SMT_DMP_TOPO_DAILY f = new FRM_SMT_DMP_TOPO_DAILY();
                    f.Show();
                }
                break;

            case "W":
                this.Hide();
                Form fc1 = Application.OpenForms["FRM_SMT_DMP_TOPO_WEEKLY"];
                if (fc1 != null)
                {
                    fc1.Show();
                }
                else
                {
                    FRM_SMT_DMP_TOPO_WEEKLY f1 = new FRM_SMT_DMP_TOPO_WEEKLY();
                    f1.Show();
                }
                break;

            case "M":

                break;

            case "Y":

                break;
            }
        }
        private void gvwView_DoubleClick(object sender, EventArgs e)
        {
            BandedGridView view = (BandedGridView)sender;

            if (view != null)
            {
                Point             pt   = view.GridControl.PointToClient(Control.MousePosition);
                BandedGridHitInfo info = view.CalcHitInfo(pt);
                DevExpress.XtraGrid.Views.BandedGrid.BandedGridView sndr = sender as DevExpress.XtraGrid.Views.BandedGrid.BandedGridView;
                DevExpress.Utils.DXMouseEventArgs dxMouseEventArgs       = e as DevExpress.Utils.DXMouseEventArgs;
                DevExpress.XtraGrid.Views.BandedGrid.ViewInfo.BandedGridHitInfo hitInfo = sndr.CalcHitInfo(dxMouseEventArgs.Location);
                if (hitInfo.RowHandle < 0)
                {
                    if (hitInfo.Band.Caption.Contains("Chart"))
                    {
                        FRM_SMT_DMP_TOPO_DAILY f1 = new FRM_SMT_DMP_TOPO_DAILY("FORM");
                        f1.Show();
                    }
                }
            }
        }