Exemple #1
0
        public dlgCasTreeViewAll(CASTreeViewAll	aTreeView, bool aIsMayEdit)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            mTv = aTreeView;
            mTv.Visible = true;
            mTv.Parent = this;
            mTv.OnDoCommand += new EvH_CasTVCommand(OnTreeItemDoCommand);
            mTv.OnBeforeViewItemProperty += new CasObjectEventHandler(OnBeforeViewProperty);

            CASTools.SetCommandButton(cmdAdd, eCommand.Add);
            CASTools.SetCommandButton(cmdEdit, eCommand.Edit);
            CASTools.SetCommandButton(cmdDelete, eCommand.Delete);
            CASTools.SetCommandButton(cmdSelect, eCommand.Choice);
            CASTools.SetCommandButton(cmdProperty, eCommand.Property);

            //cmdSelect.DialogResult = DialogResult.OK;

            mTv.BringToFront();
            mTv.TabIndex = 0;

            pIsMayEdit	= aIsMayEdit;
            pRefBook		= null;
        }
Exemple #2
0
 public dlgCasTreeViewAll(CASTreeViewAll	aTreeView)
     : this(aTreeView, false)
 {
 }