Ejemplo n.º 1
0
        private void    OnComm0_1(object par)
        {
            UInt64[]     ids      = null;
            ViewTypePass typePass = new ViewTypePass();
            ViewItemPass itemPass = null;

            typePass.Id        = 1000;
            typePass.Flags     = 1000;
            typePass.FixedDims = new ulong[0];
            typePass.FixedIds  = new ulong[0];
            typePass.ColDims   = new ulong[0];
            typePass.RowDims   = new ulong[1] {
                1
            };
            typePass.RowHeaderPartWidth = new double[1] {
                60
            };
            _coll = new ViewItemsSource(_model, typePass);
            #region Columns Add
            _coll.ItemPropAdd(new ViewPropPass(3880, typeof(int), new UInt64[] {}, 40, ColumnWidthType.Fixed));
            #endregion
            #region Rows Add
            for (int i = 1; i < 9; ++i)
            {
                ids      = new UInt64[1];
                ids[0]   = (UInt64)i + 100;
                itemPass = new ViewItemPass(Const.NullId, Const.NullFlags, ids);
                _coll.ItemAdd(itemPass);
            }
            #endregion
            NotifyPropertyChanged("ItemsSource");
            SetTopLeftHeaderStyle("0-1");
        }
Ejemplo n.º 2
0
        private void    OnComm2_0(object par)
        {
            UInt64[]     ids      = null;
            ViewTypePass typePass = new ViewTypePass();
            ViewItemPass itemPass = null;

            typePass.Id        = 1000;
            typePass.Flags     = 1000;
            typePass.FixedDims = new ulong[0];
            typePass.FixedIds  = new ulong[0];
            typePass.ColDims   = new ulong[2] {
                1, 2
            };
            typePass.RowDims            = new ulong[0];
            typePass.RowHeaderPartWidth = new double[0];
            _coll = new ViewItemsSource(_model, typePass);
            #region Columns Add
            _coll.ItemPropAdd(new ViewPropPass(3880, typeof(int), new UInt64[] { 101, 202 }, 40, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3881, typeof(double), new UInt64[] { 101, 204 }, 50, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3882, typeof(object), new UInt64[] { 106, 204 }, 60, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3883, typeof(int), new UInt64[] { 106, 205 }, 70, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3885, typeof(double), new UInt64[] { 103, 204 }, 90, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3886, typeof(double), new UInt64[] { 106, 207 }, 100, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3887, typeof(double), new UInt64[] { 106, 208 }, 110, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3888, typeof(double), new UInt64[] { 106, 209 }, 120, ColumnWidthType.Fixed));
            #endregion
            #region Rows Add
            ids      = new UInt64[0];
            itemPass = new ViewItemPass(Const.NullId, Const.NullFlags, ids);
            _coll.ItemAdd(itemPass);
            #endregion
            NotifyPropertyChanged("ItemsSource");
            SetTopLeftHeaderStyle(null);
        }
Ejemplo n.º 3
0
        private void    OnComm1_4(object par)
        {
            UInt64[]     ids = null;
            int          i, j, k, l = 0;
            ViewTypePass typePass = new ViewTypePass();
            ViewItemPass itemPass = null;

            typePass.Id        = 1000;
            typePass.Flags     = 1000;
            typePass.FixedDims = new ulong[0];
            typePass.FixedIds  = new ulong[0];
            typePass.ColDims   = new ulong[1] {
                1
            };
            typePass.RowDims = new ulong[4] {
                2, 3, 4, 5
            };
            typePass.RowHeaderPartWidth = new double[4] {
                60, 60, 60, 50
            };
            _coll = new ViewItemsSource(_model, typePass);
            #region Columns Add
            _coll.ItemPropAdd(new ViewPropPass(3880, typeof(int), new UInt64[] { 101 }, 40, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3881, typeof(double), new UInt64[] { 102 }, 50, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3882, typeof(object), new UInt64[] { 106 }, 60, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3885, typeof(double), new UInt64[] { 103 }, 90, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3886, typeof(double), new UInt64[] { 108 }, 100, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3887, typeof(double), new UInt64[] { 105 }, 110, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3888, typeof(double), new UInt64[] { 107 }, 120, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3889, typeof(double), new UInt64[] { 104 }, 130, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3890, typeof(double), new UInt64[] { 109 }, 140, ColumnWidthType.Fixed));
            #endregion
            #region Rows Add
            for (i = 1; i < 10; ++i)
            {
                for (j = 1; j < 10; ++j)
                {
                    for (k = 1; k < 10; ++k)
                    {
                        for (l = 1; l < 10; ++l)
                        {
                            ids      = new UInt64[4];
                            ids[0]   = (UInt64)i + 200;
                            ids[1]   = (UInt64)j + 300;
                            ids[2]   = (UInt64)k + 400;
                            ids[3]   = (UInt64)l + 500;
                            itemPass = new ViewItemPass(Const.NullId, Const.NullFlags, ids);
                            _coll.ItemAdd(itemPass);
                        }
                    }
                }
            }
            #endregion
            NotifyPropertyChanged("ItemsSource");
            SetTopLeftHeaderStyle("1-4");
        }
Ejemplo n.º 4
0
        private void    OnComm3_2(object par)
        {
            UInt64[]     ids = null;
            int          i, j = 0;
            ViewTypePass typePass = new ViewTypePass();
            ViewItemPass itemPass = null;

            typePass.Id        = 1000;
            typePass.Flags     = 1000;
            typePass.FixedDims = new ulong[0];
            typePass.FixedIds  = new ulong[0];
            typePass.ColDims   = new ulong[3] {
                1, 2, 3
            };
            typePass.RowDims = new ulong[2] {
                4, 5
            };
            typePass.RowHeaderPartWidth = new double[2] {
                60, 60
            };
            _coll = new ViewItemsSource(_model, typePass);
            #region Columns Add
            _coll.ItemPropAdd(new ViewPropPass(3880, typeof(int), new UInt64[] { 101, 202, 303 }, 40, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3881, typeof(double), new UInt64[] { 101, 204, 305 }, 50, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3882, typeof(object), new UInt64[] { 106, 204, 305 }, 60, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3883, typeof(int), new UInt64[] { 106, 205, 305 }, 70, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3884, typeof(double), new UInt64[] { 106, 205, 306 }, 80, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3885, typeof(double), new UInt64[] { 103, 204, 306 }, 90, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3886, typeof(double), new UInt64[] { 106, 206, 307 }, 100, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3887, typeof(double), new UInt64[] { 106, 206, 308 }, 110, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3888, typeof(double), new UInt64[] { 106, 206, 309 }, 120, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3889, typeof(double), new UInt64[] { 106, 207, 310 }, 130, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3890, typeof(double), new UInt64[] { 106, 208, 310 }, 140, ColumnWidthType.Fixed));
            #endregion
            #region Rows Add
            for (i = 1; i < 10; ++i)
            {
                for (j = 1; j < 10; ++j)
                {
                    ids      = new UInt64[2];
                    ids[0]   = (UInt64)i + 400;
                    ids[1]   = (UInt64)j + 500;
                    itemPass = new ViewItemPass(Const.NullId, Const.NullFlags, ids);
                    _coll.ItemAdd(itemPass);
                }
            }
            #endregion
            NotifyPropertyChanged("ItemsSource");
            SetTopLeftHeaderStyle("3-2");
        }
Ejemplo n.º 5
0
        private void    OnComm1_1(object par)
        {
            UInt64[]     ids      = null;
            int          i        = 0;
            ViewTypePass typePass = new ViewTypePass();
            ViewItemPass itemPass = null;

            typePass.Id        = 1000;
            typePass.Flags     = 1000;
            typePass.FixedDims = new ulong[0];
            typePass.FixedIds  = new ulong[0];
            typePass.ColDims   = new ulong[1] {
                1
            };
            typePass.RowDims = new ulong[1] {
                2
            };
            typePass.RowHeaderPartWidth = new double[1] {
                60
            };
            _coll = new ViewItemsSource(_model, typePass);
            #region Columns Add
            _coll.ItemPropAdd(new ViewPropPass(3880, typeof(int), new UInt64[] { 101 }, 40, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3881, typeof(double), new UInt64[] { 102 }, 50, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3882, typeof(object), new UInt64[] { 103 }, 60, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3883, typeof(int), new UInt64[] { 104 }, 70, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3884, typeof(double), new UInt64[] { 105 }, 80, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3885, typeof(double), new UInt64[] { 106 }, 90, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3886, typeof(double), new UInt64[] { 107 }, 100, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3887, typeof(double), new UInt64[] { 108 }, 110, ColumnWidthType.Fixed));
            _coll.ItemPropAdd(new ViewPropPass(3888, typeof(double), new UInt64[] { 109 }, 120, ColumnWidthType.Fixed));
            #endregion
            #region Rows Add
            for (i = 1; i < 10; ++i)
            {
                ids      = new UInt64[1];
                ids[0]   = (UInt64)i + 200;
                itemPass = new ViewItemPass(Const.NullId, Const.NullFlags, ids);
                _coll.ItemAdd(itemPass);
            }
            #endregion
            NotifyPropertyChanged("ItemsSource");
            SetTopLeftHeaderStyle("1-1");
        }
Ejemplo n.º 6
0
 private void    OnCommClear(object par)
 {
     _coll = null;
     NotifyPropertyChanged("ItemsSource");
     SetTopLeftHeaderStyle(null);
 }