Ejemplo n.º 1
0
 protected override void OnClick(EventArgs e)
 {
     foreach (Control c in this.FindForm().Controls)
     {
         if (c is Panel || c is SplitterPanel || c is SplitContainer)
         {
             if (FindNavigator(c) == false)
             {
                 return;
             }
         }
     }
     //add multiSelect by luciferling 20080730
     //当multiSelect 为 true autoPanel为 false 时,使user 设计的infodatagridview 设定成整行选择,方便复选行
     if (multiSelect & !autoPanel)
     {
         ((InfoDataGridView)this.panel.Controls[0]).SelectionMode = DataGridViewSelectionMode.FullRowSelect;
     }
     //end add
     innerPanel = new InfoRefPanel(this);//add multiSelect by luciferling 20080730
     innerPanel.AfterOK += new EventHandler<AfterOKEventArgs>(irp_AfterOK);
     innerPanel.Width = FormWidth;
     innerPanel.Height = FormHeight;
     if (this.WindowTop != 0 || this.WindowLeft != 0)
     {
         innerPanel.StartPosition = FormStartPosition.Manual;
         innerPanel.Location = new System.Drawing.Point(this.WindowTop, this.WindowLeft);
     }
     innerPanel.ControlBox = !this.RemoveTitleBar;
     innerPanel.ShowDialog();
     base.OnClick(e);
 }
 protected override void OnClick(DataGridViewCellEventArgs e)
 {
     base.OnClick(e);
     InfoDataGridViewRefButtonColumn refButtonColumn = this.OwningColumn as InfoDataGridViewRefButtonColumn;
     InfoRefButton refButton = new InfoRefButton();
     refButton.panel = this.Panel;
     refButton.infoTranslate = this.InfoTranslate;
     refButton.autoPanel = this.AutoPanel;
     refButton.multiSelect = this.MultiSelect;
     innerPanel = new InfoRefPanel(refButton);
     innerPanel.AfterOK += new EventHandler<AfterOKEventArgs>(innerPanel_AfterOK);
     innerPanel.ShowDialog();
 }