Example #1
0
        public Main_DataAnasis()
        {
            InitializeComponent();
            if (m_Instance == null)
            {
                m_Instance = this;
            }

            //GV_PageData1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
            rite.ReadOnly = true;

            riteNum_n1.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric;
            riteNum_n1.Mask.EditMask = "n1";

            riteNum_n2.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric;
            riteNum_n2.Mask.EditMask = "n2";


            GV_ReflowHot.OptionsBehavior.ReadOnly        = false;
            GV_ReflowCool.OptionsBehavior.ReadOnly       = false;
            GV_ReflowHot.OptionsBehavior.EditorShowMode  = EditorShowMode.MouseUp;
            GV_ReflowCool.OptionsBehavior.EditorShowMode = EditorShowMode.MouseUp;

            GV_PageAnaly.OptionsView.ColumnHeaderAutoHeight = DefaultBoolean.True;
        }
Example #2
0
        private void Init()
        {
            dockManager1.BeginUpdate();
            CETCManagerApp.Instance.m_pETETCStage.ReadConditions();

            if (m_Instance == null)
            {
                m_Instance          = this;
                main_DataManagement = new Main_DataManagement();
                main_TempChart      = new Main_TempChart();
                main_DataAnasis     = new Main_DataAnasis();
            }


            main_TempChart.TopLevel = false;
            main_TempChart.Parent   = this;
            main_TempChart.Show();
            main_TempChart.Dock = DockStyle.Fill;

            main_DataAnasis.TopLevel   = false;
            main_DataAnasis.ControlBox = false;
            main_DataAnasis.Dock       = DockStyle.Fill;
            dockPanelDataAnasis.Controls.Add(main_DataAnasis);


            main_DataManagement.TopLevel   = false;
            main_DataManagement.ControlBox = false;
            dockPanelManagement.Controls.Add(main_DataManagement);
            //main_DataManagement.Dock = DockStyle.Left;


            main_TempChart.Visible      = true;
            main_DataAnasis.Visible     = true;
            main_DataManagement.Visible = true;

            InitChannelBarButton();
            AutoSearchETCDevice();
            //SelectETCDevice();
            // 注册设备事件
            RegisterDeviceCommport();
            InitStatusBar();
            timer1.Enabled = true;

            barTool1.Offset = 0;
            barTool2.Offset = 0;
            barTool3.Offset = 0;


            dockManager1.EndUpdate();
        }
Example #3
0
        ///#region 为了保证在关闭某一浮动窗体之后,再打开时能够在原位置显示,要对浮动窗体处理,处理窗体的DockstateChanged事件,标签窗体dock位置改变,记录到公共类

        /*public void Main_DataAnasis_DockStateChanged(object sender, EventArgs e)
         * {
         *  //关闭时(dockstate为unknown) 不把dockstate保存
         *  if (Instance != null)
         *  {
         *      if (this.DockState == DockState.Unknown || this.DockState == DockState.Hidden)
         *      {
         *          return;
         *      }
         *      AppConfig.dockState = this.DockState;
         *  }
         * }*/
        private void Main_DataAnasis_FormClosing(object sender, FormClosingEventArgs e)
        {
            e.Cancel   = true;
            m_Instance = null;
        }