/** * Constructor */ public SelectionRecord(PaneType pt, int col, int r) : base(Type.SELECTION) { column = col; row = r; pane = pt; }
public MainPane(PaneType paneType) { InitializeComponent(); this.DataContext = new MainPaneViewModel(); switch (paneType) { case PaneType.UserSpecificPane: mainFrame.Navigate(new UserSpecificView()); btnNavigateToSubmit.Visibility = Visibility.Hidden; break; case PaneType.FeaturesPane: mainFrame.Navigate(myListControl); myListControl.FeatureListSelectedValueChanged += MyListControl_FeatureListSelectedValueChanged; btnNavigateToSubmit.Visibility = Visibility.Visible; break; case PaneType.CasesPane: mainFrame.Navigate(new OpenCaseControl()); btnNavigateToSubmit.Visibility = Visibility.Hidden; break; case PaneType.ReplyPane: break; default: break; } }
public Selection(IStreamReader reader, RecordType id, UInt16 length) : base(reader, id, length) { // assert that the correct record type is instantiated Debug.Assert(this.Id == ID); // initialize class members from stream this.pnn = (PaneType)reader.ReadByte(); this.rwAct = reader.ReadUInt16(); this.colAct = reader.ReadUInt16(); this.irefAct = reader.ReadInt16(); this.cref = reader.ReadUInt16(); if (this.cref > 0) { this.rgref = new RefU[this.cref]; for (int i = 0; i < this.cref; i++) { this.rgref[i] = new RefU(reader); } } // assert that the correct number of bytes has been read from the stream Debug.Assert(this.Offset + this.Length == this.Reader.BaseStream.Position); }
public void SetSelection(short sheet, PaneType paneType, int rowActive, int columnActive, int refCount, List <int> rowFirst, List <int> rowLast, List <int> colFirst, List <int> colLast) { int num = rowFirst.Count; IExcelWorksheet worksheet = this._workbook.Worksheets[sheet]; for (int i = 0; i < num; i++) { int row = rowFirst[i]; int num4 = rowLast[i]; int column = colFirst[i]; int num6 = colLast[i]; SelectionRange range = new SelectionRange(row, column, (row == -1) ? 0 : ((num4 - row) + 1), (column == -1) ? 0 : ((num6 - column) + 1)) { activePaneType = paneType }; if ((worksheet.Selections.Count != 1) || (worksheet.Selections[0] != range)) { worksheet.Selections.Add(range); } } int num7 = Math.Max(0, Math.Min(rowActive, worksheet.RowCount - 1)); int num8 = Math.Max(0, Math.Min(columnActive, worksheet.ColumnCount - 1)); worksheet.ActiveRowIndex = (worksheet.RowCount > 0) ? num7 : -1; worksheet.ActiveColumnIndex = (worksheet.ColumnCount > 0) ? num8 : -1; }
public PaneSettings(PaneType type, int size, int minSize, int splitterWidth) { this.Type = type; this.Size = size; this.DockSize = minSize; this.SplitterWidth = splitterWidth; }
public void ShowPane(PaneType type) { switch (type) { default: ; break; } }
/// <summary> /// Determines if the specific Pane's Top, Bottom, Left and Right compasses should be shown for the Dragged Pane /// </summary> private bool CanDockIn(RadPane paneToDock, RadPane paneInTargetGroup, DockPosition position) { PaneType paneToDockType = GetPaneType(paneToDock); PaneType paneInTargetGroupType = GetPaneType(paneInTargetGroup); switch (paneToDockType) { case PaneType.Green: switch (paneInTargetGroupType) { case PaneType.Green: return(true); case PaneType.Blue: return(false); case PaneType.Default: return(false); } break; case PaneType.Blue: switch (paneInTargetGroupType) { case PaneType.Green: return(false); case PaneType.Blue: return(true); case PaneType.Default: return(false); } break; case PaneType.Default: switch (paneInTargetGroupType) { case PaneType.Green: return(false); case PaneType.Blue: return(false); case PaneType.Default: return(true); } break; } return(false); }
/// <summary> /// Determines if the Docking's Top, Bottom, Left and Right compasses should be shown for the Dragged Pane /// </summary> private bool CanDock(RadPane paneToDock, DockPosition position) { PaneType paneToDockType = GetPaneType(paneToDock); switch (paneToDockType) { case PaneType.Green: return(true); case PaneType.Purple: return(false); } return(false); }
public Pane(IStreamReader reader, RecordType id, UInt16 length) : base(reader, id, length) { // assert that the correct record type is instantiated Debug.Assert(this.Id == ID); // initialize class members from stream this.x = reader.ReadUInt16(); this.y = reader.ReadUInt16(); this.rwTop = reader.ReadUInt16(); this.colLeft = reader.ReadUInt16(); this.pnnAcct = (PaneType)reader.ReadByte(); reader.ReadByte(); // assert that the correct number of bytes has been read from the stream Debug.Assert(this.Offset + this.Length == this.Reader.BaseStream.Position); }
public override void OnInitialize() { if (externalPrice == null) { externalPrice = Bars.Close; } PaneType original = Drawing.PaneType; top = new IndicatorCommon(); top.Drawing.PaneType = original; AddIndicator(top); bottom = new IndicatorCommon(); bottom.Drawing.PaneType = original; AddIndicator(bottom); center = new IndicatorCommon(); center.Drawing.PaneType = original; AddIndicator(center); Drawing.IsVisible = false; }
protected virtual void WaitForView(Pane pane, PaneType type, string title = null) { var selector = CssSelectorFor(pane) + " ." + type.ToString().ToLower() + " .header .title"; if (title != null) { wait.Until(dr => dr.FindElement(By.CssSelector(selector)).Text == title); } else { WaitForCss(selector); } if (pane == Pane.Single) { WaitUntilElementDoesNotExist(".split"); } else { WaitUntilElementDoesNotExist(".single"); } AssertFooterExists(); }
/// <summary> /// Determines if the specific Pane's Top, Bottom, Left and Right compasses should be shown for the Dragged Pane /// </summary> private bool CanDockIn(RadPane paneToDock, RadPane paneInTargetGroup, DockPosition position) { PaneType paneToDockType = GetPaneType(paneToDock); PaneType paneInTargetGroupType = GetPaneType(paneInTargetGroup); switch (paneToDockType) { case PaneType.Green: switch (paneInTargetGroupType) { case PaneType.Green: // The Top, Bottom, Left, Right and Center compasses will be shown when dragging a Green Pane over a Green Pane //return true; // The Center compass only will be shown when dragging a Green Pane over a Green Pane return(position != DockPosition.Top && position != DockPosition.Bottom && position != DockPosition.Left && position != DockPosition.Right); case PaneType.Purple: return(false); } break; case PaneType.Purple: switch (paneInTargetGroupType) { case PaneType.Green: return(false); case PaneType.Purple: return(true); } break; } return(false); }
public bool GetSelectionList(short sheet, List <GcRect> selectionList, ref GcPoint activeCell, ref PaneType paneIndex) { IExcelWorksheet worksheet = this._workbook.Worksheets[sheet]; int frozenRowCount = worksheet.FrozenRowCount; int frozenColumnCount = worksheet.FrozenColumnCount; activeCell.X = worksheet.ActiveColumnIndex; activeCell.Y = worksheet.ActiveRowIndex; ExcelWorksheet.ExcelViewportInfo defaultViewport = worksheet.DefaultViewport; if (defaultViewport != null) { int rowPaneCount = defaultViewport.RowPaneCount; int columnPaneCount = defaultViewport.ColumnPaneCount; if ((paneIndex != PaneType.TopLeft) && ((rowPaneCount > 2) || (columnPaneCount > 2))) { return(false); } if (paneIndex == PaneType.BottomRight) { if (((rowPaneCount <= 1) || (columnPaneCount <= 1)) && ((frozenRowCount <= 0) || (frozenColumnCount <= 0))) { return(false); } } else if (paneIndex == PaneType.TopRight) { if ((columnPaneCount <= 1) && (frozenColumnCount <= 0)) { return(false); } } else if (paneIndex == PaneType.BottomLeft) { if ((rowPaneCount <= 1) && (frozenRowCount <= 0)) { return(false); } } else { int num1 = (int)paneIndex; } if (selectionList != null) { if ((worksheet.Selections != null) && (worksheet.Selections.Count > 0)) { foreach (ISelectionRange range in worksheet.Selections) { if (range.activePaneType == paneIndex) { GcRect rect = new GcRect((range.Column > 0) ? ((double)range.Column) : ((double)0), (range.Row > 0) ? ((double)range.Row) : ((double)0), (range.ColumnSpan > 0) ? ((double)range.ColumnSpan) : ((double)0x4000), (range.RowSpan > 0) ? ((double)range.RowSpan) : ((double)0x100000)); selectionList.Add(rect); } } } else { selectionList.Add(new GcRect(activeCell.X, activeCell.Y, 1.0, 1.0)); } } } return(true); }
public MailTangyContainer(PaneType paneType) { InitializeComponent(); this.mainPane1 = new MailTangy.MainPane(paneType); this.elementHost2.Child = this.mainPane1; }
public void split2(int x, int y, int rowTop, int colLeft, bool frozen, PaneType paneType) { xlSheetSplit2(handle, x, y, rowTop, colLeft, frozen ? 1 : 0, (int)paneType); }
public static void SetPaneType(DependencyObject obj, PaneType value) { obj.SetValue(PaneTypeProperty, value); }
public PaneState(PaneType type, string path) { this.Type = type; this.Path = path; }