Exemplo n.º 1
0
        void Init()
        {
            this._serverStopRender                       = new OrderServerStopRender();
            this._serverStopRender.MouseLeave           += OrderRenderLeave;
            this._serverStopRender.TreeNodeKeyDownEvent += new OrderLabel.TreeNodeKeyDownDelegate(TreeNodeKeyDown);
            this.AddRender(this._serverStopRender);

            this.IsFirstLoad = true;

            SecondOrderCollections = new List <LisSecondOrder>();
            BrotherOrderCollecions = new List <LisFirstOrdrRender>();

            _serverNameLabel                       = new OrderLabel();
            _serverNameLabel.MouseLeave           += OrderRenderLeave;
            _serverNameLabel.TreeNodeKeyDownEvent += new OrderLabel.TreeNodeKeyDownDelegate(TreeNodeKeyDown);

            this.AddRender(_serverNameLabel);

            _xUnitTextBox             = new OrderTextUnit();
            _xUnitTextBox.MouseLeave += OrderRenderLeave;
            if (Ismuldose != null && Ismuldose.Value)
            {
                _xUnitTextBox.Font                  = OrderConstAssist.OrderFont;
                _xUnitTextBox.ValueTextChanged     += _xUnitTextBox_ValueTextChanged;
                _xUnitTextBox.GotFocus             += new EventHandler(_xUnitTextBox_GotFocus);
                _xUnitTextBox.TreeNodeKeyDownEvent += new OrderLabel.TreeNodeKeyDownDelegate(TreeNodeKeyDown);
                _xUnitTextBox.MouseEnter           += _xUnitTextBox_MouseEnter;
                _xUnitTextBox.MouseLeave           += _xUnitTextBox_MouseLeave;
                this.AddRender(_xUnitTextBox);
            }

            this.IsDrawTreeIcon          = false;
            this.IsExtTreeNode           = true;
            this.IsUserDefinedItemHeight = true;
            this.UserDefinedItemHeight   = OrderConstAssist.UserDefineItemHeight;
            this.Text = "";
            //  this.CanFocus = false;

            this.NodeCheckBox.ValueTextChanged += TreatmentOrder_ValueChanged;
            this.MouseDoubleClick += LisFirstOrdrRender_MouseDoubleClick;

            this.NodeCheckBoxMouseClick += NodeCheckBox_MouseClick;

            this.GotFocus += LisFirstOrdrRender_GotFocus;
        }
Exemplo n.º 2
0
        void Init()
        {
            _serverStopRender = new OrderServerStopRender();
            _serverStopRender.TreeNodeKeyDownEvent += new OrderLabel.TreeNodeKeyDownDelegate(TreeNodeKeyDown);
            _serverStopRender.MouseLeave           += OrderRenderLeave;
            this.AddRender(_serverStopRender);

            IsFirstLoad = true;

            _serverNameLabel                       = new OrderLabel();
            _serverNameLabel.MouseLeave           += OrderRenderLeave;
            _serverNameLabel.TreeNodeKeyDownEvent += new OrderLabel.TreeNodeKeyDownDelegate(TreeNodeKeyDown);

            this.AddRender(_serverNameLabel);

            _xUnitTextBox                       = new OrderTextUnit();
            _xUnitTextBox.MouseLeave           += OrderRenderLeave;
            _xUnitTextBox.IsOnlyNum             = true;
            _xUnitTextBox.ValueTextChanged     += _xUnitTextBox_ValueTextChanged;
            _xUnitTextBox.GotFocus             += new EventHandler(_xUnitTextBox_GotFocus);
            _xUnitTextBox.MouseEnter           += _xUnitTextBox_MouseEnter;
            _xUnitTextBox.MouseLeave           += _xUnitTextBox_MouseEnter;
            _xUnitTextBox.TreeNodeKeyDownEvent += new OrderLabel.TreeNodeKeyDownDelegate(TreeNodeKeyDown);
            this.AddRender(_xUnitTextBox);


            this.IsDrawTreeIcon          = false;
            this.IsExtTreeNode           = true;
            this.IsUserDefinedItemHeight = true;

            this.UserDefinedItemHeight = OrderConstAssist.UserDefineItemHeight;
            this.Text = "";



            this.NodeCheckBox.ValueTextChanged += TreatmentOrder_ValueChanged;
            this.MouseDoubleClick       += ChineseMedicineOrder_MouseDoubleClick;
            this.NodeCheckBoxMouseClick += NodeCheckBox_MouseClick;
        }