Beispiel #1
0
        internal void FromPane(Pane p)
        {
            this.SetAllNull();

            if (p.HorizontalSplit != null)
            {
                this.HorizontalSplit = p.HorizontalSplit.Value;
            }
            if (p.VerticalSplit != null)
            {
                this.VerticalSplit = p.VerticalSplit.Value;
            }
            if (p.TopLeftCell != null)
            {
                this.TopLeftCell = p.TopLeftCell.Value;
            }
            if (p.ActivePane != null)
            {
                this.ActivePane = p.ActivePane.Value;
            }
            if (p.State != null)
            {
                this.State = p.State.Value;
            }
        }
Beispiel #2
0
 private void SetAllNull()
 {
     this.HorizontalSplit = 0;
     this.VerticalSplit = 0;
     this.TopLeftCell = null;
     this.ActivePane = PaneValues.TopLeft;
     this.State = PaneStateValues.Split;
 }
Beispiel #3
0
 private void SetAllNull()
 {
     HorizontalSplit = 0;
     VerticalSplit   = 0;
     TopLeftCell     = null;
     ActivePane      = PaneValues.TopLeft;
     State           = PaneStateValues.Split;
 }
Beispiel #4
0
 internal SLPane()
 {
     this.HorizontalSplit = 0;
     this.VerticalSplit = 0;
     this.TopLeftCell = null;
     this.ActivePane = PaneValues.TopLeft;
     this.State = PaneStateValues.Split;
 }
Beispiel #5
0
        internal static string GetPaneStateValuesAttribute(PaneStateValues psv)
        {
            string result = "split";
            switch (psv)
            {
                case PaneStateValues.Frozen:
                    result = "frozen";
                    break;
                case PaneStateValues.FrozenSplit:
                    result = "frozenSplit";
                    break;
                case PaneStateValues.Split:
                    result = "split";
                    break;
            }

            return result;
        }
Beispiel #6
0
        internal static string GetPaneStateValuesAttribute(PaneStateValues psv)
        {
            string result = "split";
            switch (psv)
            {
                case PaneStateValues.Frozen:
                    result = "frozen";
                    break;
                case PaneStateValues.FrozenSplit:
                    result = "frozenSplit";
                    break;
                case PaneStateValues.Split:
                    result = "split";
                    break;
            }

            return result;
        }