Esempio n. 1
0
 protected virtual void OnSizeSelected(TableSizeSelectedEventArgs args)
 {
     this.ShowOriginalSelection();
     if (this.SizeSelected == null)
     {
         return;
     }
     this.SizeSelected((object)this, args);
 }
 private void sizePicker_SizeSelected(object sender, TableSizeSelectedEventArgs e)
 {
     this.sizePickerMenu.SizeSelected    -= new EventHandler <TableSizeSelectedEventArgs>(this.sizePicker_SizeSelected);
     this.sizePickerToolbar.SizeSelected -= new EventHandler <TableSizeSelectedEventArgs>(this.sizePicker_SizeSelected);
     this.dropDownButtonLayout.DropDownMenu.ClosePopup(RadPopupCloseReason.CloseCalled);
     this.printPreviewControl.Rows        = e.Rows;
     this.printPreviewControl.Columns     = e.Columns;
     this.dropDownZoom.SelectedValue      = (object)(this.zoomFactors[this.zoomFactors.Length - 1] / 100.0);
     this.sizePickerMenu.SelectedColumns  = this.sizePickerToolbar.SelectedColumns = e.Columns;
     this.sizePickerMenu.SelectedRows     = this.sizePickerToolbar.SelectedRows = e.Rows;
     this.sizePickerMenu.SizeSelected    += new EventHandler <TableSizeSelectedEventArgs>(this.sizePicker_SizeSelected);
     this.sizePickerToolbar.SizeSelected += new EventHandler <TableSizeSelectedEventArgs>(this.sizePicker_SizeSelected);
     this.textBoxCurrentPage.Text         = (this.printPreviewControl.StartPage + 1).ToString();
 }