public frm20kvJackPanelSearch02(frm20kvJackPanel02 JackPanel)
        {
            Editor ed = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor;

            ed.WriteMessage("\nchecking.....\n");
            if (!Atend.Global.Acad.DrawEquips.Dicision.IsHere())
            {
                if (!Atend.Global.Acad.DrawEquips.Dicision.IsThere())
                {
                    //System.Diagnostics.Process[] prs = System.Diagnostics.Process.GetProcesses();
                    //foreach (System.Diagnostics.Process pr in prs)
                    //{
                    //    if (pr.ProcessName == "acad")
                    //    {
                    //        pr.CloseMainWindow();
                    //    }
                    //}
                    Atend.Global.Acad.Notification notification = new Atend.Global.Acad.Notification();
                    notification.Title = "شناسایی قفل";
                    notification.Msg   = "لطفا وضعیت قفل را بررسی نمایید ";
                    notification.infoCenterBalloon();

                    ForceToClose = true;
                }
            }

            InitializeComponent();
            frmJackPanel = new frm20kvJackPanel02();
            frmJackPanel = JackPanel;
        }
        public frm20KvProductSelect02(frm20kvJackPanel02 JackPanel)
        {
            Editor ed = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.Editor;

            ed.WriteMessage("\nchecking.....\n");
            if (!Atend.Global.Acad.DrawEquips.Dicision.IsHere())
            {
                if (!Atend.Global.Acad.DrawEquips.Dicision.IsThere())
                {
                    //System.Diagnostics.Process[] prs = System.Diagnostics.Process.GetProcesses();
                    //foreach (System.Diagnostics.Process pr in prs)
                    //{
                    //    if (pr.ProcessName == "acad")
                    //    {
                    //        pr.CloseMainWindow();
                    //    }
                    //}
                    Atend.Global.Acad.Notification notification = new Atend.Global.Acad.Notification();
                    notification.Title = "شناسایی قفل";
                    notification.Msg   = "لطفا وضعیت قفل را بررسی نمایید ";
                    notification.infoCenterBalloon();

                    ForceToClose = true;
                }
            }

            InitializeComponent();
            //frmjackPanel = new frm20kvJackPanel02();
            frmjackPanel = JackPanel;

            CellTypeTable.Columns.Add(dc1);
            CellTypeTable.Columns.Add(dc2);
            //-----------------
            DataRow dr = CellTypeTable.NewRow();

            dr["CodeT"] = 1;
            dr["Name"]  = "اندازه گیری";
            CellTypeTable.Rows.Add(dr);

            dr          = CellTypeTable.NewRow();
            dr["CodeT"] = 2;
            dr["Name"]  = "رله";
            CellTypeTable.Rows.Add(dr);

            dr          = CellTypeTable.NewRow();
            dr["CodeT"] = 3;
            dr["Name"]  = "کلید سکسیونر";
            CellTypeTable.Rows.Add(dr);

            dr          = CellTypeTable.NewRow();
            dr["CodeT"] = 4;
            dr["Name"]  = "کلید دژنکتور";
            CellTypeTable.Rows.Add(dr);

            dr          = CellTypeTable.NewRow();
            dr["CodeT"] = 5;
            dr["Name"]  = "BusCoupler سکسیونر";
            CellTypeTable.Rows.Add(dr);

            dr          = CellTypeTable.NewRow();
            dr["CodeT"] = 6;
            dr["Name"]  = "BusCoupler دژنکتور";
            CellTypeTable.Rows.Add(dr);

            dr          = CellTypeTable.NewRow();
            dr["CodeT"] = 7;
            dr["Name"]  = "فوزیبل";
            CellTypeTable.Rows.Add(dr);

            //ed.WriteMessage("Finish Initialize\n");
            //-----------------
        }