public StackGrid(MainModel Model) { model = Model; //get images from the global resource. glassImg = Properties.Resources.glass; glassDisabledImg = Properties.Resources.lupedisabled; behaviorEdit = new BehaviorEdit(model); ColumnsCount = 4; RowsCount = 1; this[0, 0] = new SourceGrid2.Cells.Real.ColumnHeader(""); ((SourceGrid2.Cells.Real.ColumnHeader) this[0, 0]).EnableSort = false; this[0, 1] = new SourceGrid2.Cells.Real.ColumnHeader(Properties.Resources.Item); ((SourceGrid2.Cells.Real.ColumnHeader) this[0, 1]).EnableSort = false; this[0, 2] = new SourceGrid2.Cells.Real.ColumnHeader(Properties.Resources.Line); ((SourceGrid2.Cells.Real.ColumnHeader) this[0, 2]).EnableSort = false; this[0, 3] = new SourceGrid2.Cells.Real.ColumnHeader(Properties.Resources.Method); ((SourceGrid2.Cells.Real.ColumnHeader) this[0, 3]).EnableSort = false; this.Columns[0].AutoSizeMode = SourceGrid2.AutoSizeMode.MinimumSize; this.Columns[0].Width = 20; this.Columns[1].AutoSizeMode = SourceGrid2.AutoSizeMode.MinimumSize; this.Columns[1].Width = 120; this.Columns[2].AutoSizeMode = SourceGrid2.AutoSizeMode.MinimumSize; this.Columns[2].Width = 35; this.Columns[3].AutoSizeMode = SourceGrid2.AutoSizeMode.EnableAutoSize | SourceGrid2.AutoSizeMode.EnableStretch; this.Columns[3].Width = 50; this.AutoSize(); this.AutoStretchColumnsToFitWidth = true; this.StretchColumnsToFitWidth(); this.CustomSort = false; }
public ImportsGrid() { //get images from the global resource. glassImg = Resources.glass; deleteImg = Resources.delete; behaviorDelete = new BehaviorDelete(); behaviorEdit = new BehaviorEdit(); ColumnsCount = 6; RowsCount = 2; this[0, 0] = new SourceGrid2.Cells.Real.ColumnHeader(""); ((SourceGrid2.Cells.Real.ColumnHeader) this[0, 0]).EnableSort = false; this[0, 1] = new SourceGrid2.Cells.Real.ColumnHeader(""); ((SourceGrid2.Cells.Real.ColumnHeader) this[0, 1]).EnableSort = false; this[0, 2] = new SourceGrid2.Cells.Real.ColumnHeader(""); ((SourceGrid2.Cells.Real.ColumnHeader) this[0, 2]).EnableSort = false; this[0, 3] = new SourceGrid2.Cells.Real.ColumnHeader("Dll"); ((SourceGrid2.Cells.Real.ColumnHeader) this[0, 3]).EnableSort = false; this[0, 4] = new SourceGrid2.Cells.Real.ColumnHeader("Path"); ((SourceGrid2.Cells.Real.ColumnHeader) this[0, 4]).EnableSort = false; this[0] = ""; this.Columns[0].AutoSizeMode = SourceGrid2.AutoSizeMode.MinimumSize; this.Columns[0].Width = 20; this.Columns[1].AutoSizeMode = SourceGrid2.AutoSizeMode.MinimumSize; this.Columns[1].Width = 20; this.Columns[2].AutoSizeMode = SourceGrid2.AutoSizeMode.MinimumSize; this.Columns[2].Width = 20; this.Columns[3].AutoSizeMode = SourceGrid2.AutoSizeMode.MinimumSize; this.Columns[3].Width = 150; this.Columns[4].AutoSizeMode = SourceGrid2.AutoSizeMode.EnableStretch; this.AutoSize(); this.AutoStretchColumnsToFitWidth = true; this.StretchColumnsToFitWidth(); this.CustomSort = false; Reset(); fileDialog = new OpenFileDialog(); fileDialog.AddExtension = true; fileDialog.CheckFileExists = fileDialog.CheckPathExists = false; fileDialog.DefaultExt = "dll"; fileDialog.Filter = "dll's & exe (*.dll, *.exe)|*.dll;*.exe"; fileDialog.Multiselect = false; fileDialog.Title = "Select dll library"; }
public ItemsGrid() { //get images from the global resource. glassImg = Resources.glass; deleteImg = Resources.delete; parImg = Resources.par; parDisabledImg = Resources.pardisabled; upDownImg = Resources.updown; behaviorDelete = new BehaviorDelete(); behaviorEdit = new BehaviorEdit(); ColumnsCount = 7; RowsCount = 1; this[0, 0] = new SourceGrid2.Cells.Real.ColumnHeader(""); ((SourceGrid2.Cells.Real.ColumnHeader) this[0, 0]).EnableSort = false; this[0, 1] = new SourceGrid2.Cells.Real.ColumnHeader(""); ((SourceGrid2.Cells.Real.ColumnHeader) this[0, 1]).EnableSort = false; this[0, 2] = new SourceGrid2.Cells.Real.ColumnHeader(""); ((SourceGrid2.Cells.Real.ColumnHeader) this[0, 2]).EnableSort = false; this[0, 3] = new SourceGrid2.Cells.Real.ColumnHeader(""); ((SourceGrid2.Cells.Real.ColumnHeader) this[0, 3]).EnableSort = false; this[0, 4] = new SourceGrid2.Cells.Real.ColumnHeader(""); ((SourceGrid2.Cells.Real.ColumnHeader) this[0, 4]).EnableSort = false; this[0, 5] = new SourceGrid2.Cells.Real.ColumnHeader(Resources.Name); ((SourceGrid2.Cells.Real.ColumnHeader) this[0, 5]).EnableSort = false; this[0, 6] = new SourceGrid2.Cells.Real.ColumnHeader(Resources.Type); ((SourceGrid2.Cells.Real.ColumnHeader) this[0, 6]).EnableSort = false; this.Columns[0].AutoSizeMode = SourceGrid2.AutoSizeMode.MinimumSize; this.Columns[0].Width = 20; this.Columns[1].AutoSizeMode = SourceGrid2.AutoSizeMode.MinimumSize; this.Columns[1].Width = 20; this.Columns[2].AutoSizeMode = SourceGrid2.AutoSizeMode.MinimumSize; this.Columns[2].Width = 20; this.Columns[3].AutoSizeMode = SourceGrid2.AutoSizeMode.MinimumSize; this.Columns[3].Width = 20; this.Columns[4].AutoSizeMode = SourceGrid2.AutoSizeMode.MinimumSize; this.Columns[4].Width = 20; this.Columns[5].AutoSizeMode = SourceGrid2.AutoSizeMode.EnableAutoSize | SourceGrid2.AutoSizeMode.EnableStretch; this.Columns[6].AutoSizeMode = SourceGrid2.AutoSizeMode.None; this.Columns[6].Width = 80; this.AutoSize(); this.AutoStretchColumnsToFitWidth = true; this.StretchColumnsToFitWidth(); this.CustomSort = false; }