/// <summary> /// Sets the panel's layout properties to the specified values. /// </summary> public void SetPanelProperties(DockTypes dockType, AutosizeTypes autosizeType, FillStyles fillStyle, Size size) { windowDockType = dockType; autoSize = autosizeType; windowFillStyle = fillStyle; originalSize = size; SetupContextMenu(); }
public MyToolStripButton(FillStyles fillStyle) { thisButtonIndex = (int)fillStyle; type = typeof(FillStyles); CheckOnClick = true; Click += GenerateClickEvent; this.Width = 100; this.DisplayStyle = ToolStripItemDisplayStyle.Text; }
public override string GetStepParameters() { var parameters = new List <string>(); parameters.Add(Name != null ? Name.ToStepValue() : "$"); parameters.Add(FillStyles != null ? FillStyles.ToStepValue() : "$"); parameters.Add(ModelorDraughting != null ? ModelorDraughting.ToStepValue() : "$"); return(string.Join(", ", parameters.ToArray())); }
internal override void parseJObject(JObject obj) { base.parseJObject(obj); JToken token = obj.GetValue("ModelorDraughting", StringComparison.InvariantCultureIgnoreCase); if (token != null) { bool.TryParse(token.Value <string>(), out mModelorDraughting); } FillStyles.AddRange(mDatabase.extractJArray <IfcFillStyleSelect>(obj.GetValue("FillStyles", StringComparison.InvariantCultureIgnoreCase) as JArray)); }
private static CellFormat CreateCellStyle(CellFormats format, bool applyNumberFormat = true , FontStyles fontStyle = FontStyles.StandardCalibri , BorderStyles borderStyle = BorderStyles.NoBorder , FillStyles fillStyle = FillStyles.Empty) { var cellFormat = new CellFormat(); cellFormat.NumberFormatId = (uint)format; cellFormat.FontId = (uint)fontStyle; cellFormat.FillId = (uint)fillStyle; cellFormat.BorderId = (uint)borderStyle; cellFormat.FormatId = 0; cellFormat.ApplyNumberFormat = BooleanValue.FromBoolean(applyNumberFormat); return cellFormat; }
public MyToolbar(WindowFlowPanel parent, PanelControlEvents events) { SetupToolbar(); windowFillStyle = FillStyles.FullWidth; autoSize = AutosizeTypes.Constant; windowDockType = DockTypes.TopLeft; this.parent = parent; removed = true; type = typeof(MyToolbar); originalSize = this.Size; events.ShowToolStrip += OnToolStripAdded; events.RemoveToolStrip += OnToolStripRemoved; }
public MyToolbar(WindowFlowPanel parent) { SetupToolbar(); windowFillStyle = FillStyles.FullWidth; autoSize = AutosizeTypes.Constant; windowDockType = DockTypes.TopLeft; _parent = parent; form = _parent._parent; removed = true; type = typeof(MyToolbar); originalSize = this.Size; form.PanelAdded += OnPanelAdded; FlowLayoutEvents.MainPanelLayoutChanged += GetShownHiddenPanels; MyEvents.ShowToolStrip += OnToolStripAdded; MyEvents.RemoveToolStrip += OnToolStripRemoved; MyEvents.FinishedLoadingParameters += OnPaceParametersFinishedLoading; MyEvents.FinishedLoadingStrategies += OnStrategiesFinishedLoading; }
internal override void parse(string str, ref int pos, ReleaseVersion release, int len, ConcurrentDictionary <int, BaseClassIfc> dictionary) { base.parse(str, ref pos, release, len, dictionary); FillStyles.AddRange(ParserSTEP.StripListLink(str, ref pos, len).ConvertAll(x => dictionary[x] as IfcFillStyleSelect)); }
internal IfcFillAreaStyle(DatabaseIfc db, IfcFillAreaStyle fillAreaStyle) : base(db, fillAreaStyle) { FillStyles.AddRange(fillAreaStyle.FillStyles.Select(x => db.Factory.Duplicate(x) as IfcFillStyleSelect)); }