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

            this.IsFirstLoad = true;

            _srvNameLabel             = new OrderLabel();
            _srvNameLabel.MouseLeave += OrderRenderLeave;
            this._srvNameLabel.TreeNodeKeyDownEvent += new OrderLabel.TreeNodeKeyDownDelegate(TreeNodeKeyDown);
            this._srvNameLabel.TreeNodeKeyDownEvent += new OrderLabel.TreeNodeKeyDownDelegate(TreeNodeKeyDown);
            this.AddRender(_srvNameLabel);

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


            this.NodeCheckBox.ValueTextChanged += TreatmentOrder_ValueChanged;

            this.MouseDoubleClick += LisSecondOrder_MouseClick;

            this.NodeCheckBoxMouseClick += NodeCheckBox_MouseClick;
        }
Exemple #2
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;
        }
Exemple #3
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;
        }