public void UpdateOptionLabels() { slider_coplanar_angle.ValueText = m_coplanar_tol.ToString(); slider_extrude_length.ValueText = Utility.ConvertFloatTo1Thru3Dec(m_extrude_length); slider_inset_bevel.ValueText = m_inset_pct.ToString(); slider_inset_length.ValueText = Utility.ConvertFloatTo1Thru3Dec(m_inset_length); slider_bevel_width.ValueText = Utility.ConvertFloatTo1Thru3Dec(m_bevel_width); slider_sizex.ValueText = Utility.ConvertFloatTo1Thru3Dec(m_size_x); slider_sizey.ValueText = Utility.ConvertFloatTo1Thru3Dec(m_size_y); slider_sizeheight.ValueText = Utility.ConvertFloatTo1Thru3Dec(m_size_height); slider_sizesegments.ValueText = m_size_segments.ToString(); label_editmode.Text = "Mode: " + m_edit_mode.ToString(); label_pivotmode.Text = "Pivot: " + m_pivot_mode.ToString(); label_scalemode.Text = "Scale: " + m_scale_mode.ToString(); slider_grid_spacing.ValueText = Utility.ConvertFloatTo1Thru3Dec(m_grid_spacing); slider_grid_snap.ValueText = Utility.ConvertFloatTo1Thru3Dec(m_grid_snap); slider_grid_width.ValueText = m_grid_width.ToString(); label_grid_display.Text = "Display: " + m_grid_display.ToString(); label_view_layout.Text = "Layout: " + m_view_layout.ToString(); label_view_persp.Text = "Persp: " + m_view_mode_persp.ToString(); label_view_ortho.Text = "Ortho: " + m_view_mode_ortho.ToString(); label_view_dark.Text = "Background: " + m_bg_color.ToString(); label_gimbal.Text = "Gimbal: " + m_gimbal_display.ToString(); label_lighting.Text = "Lighting: " + m_lighting_type.ToString(); label_vert_display.Text = "Vert Normals: " + m_vert_display.ToString(); label_poly_filter.Text = "PolyFilter: " + m_vis_type.ToString(); slider_smooth_angle_diff.ValueText = m_dmesh.smooth_angle_diff.ToString(); slider_smooth_angle_same.ValueText = m_dmesh.smooth_angle_same.ToString(); }
public static void SetVisibility(this Operation operation, VisibilityType visibility) { if (visibility == VisibilityType.Default) return; operation.EnsureVendorExtensions(); if (!operation.vendorExtensions.ContainsKey(Constants.X_MS_VISIBILITY)) operation.vendorExtensions.Add(Constants.X_MS_VISIBILITY, visibility.ToString().ToLowerInvariant()); }
public static void SetVisibility(this Parameter parameter, VisibilityType visibility) { if (visibility == VisibilityType.Default) return; parameter.EnsureVendorExtensions(); if (!parameter.vendorExtensions.ContainsKey(Constants.X_MS_VISIBILITY)) { parameter.vendorExtensions.Add(Constants.X_MS_VISIBILITY, visibility.ToString().ToLowerInvariant()); } }
/// <summary> /// Create new note (require auth) /// </summary> /// <param name="text">Text</param> /// <param name="mediaIDs">Media IDs (Optional)</param> /// <param name="cw">Warning message (Optional)</param> /// <param name="visibility">Visibility</param> /// <param name="replyId">ReplyId (Optional)</param> /// <param name="pollChpoices">Poll choices (1~49chars x 2~10)</param> /// <returns>Created note</returns> public async Task <CreateResponse> CreateAsync(string text, string[] mediaIDs = null, string cw = null, VisibilityType visibility = VisibilityType.Public, string replyId = null, string[] pollChpoices = null) { return(await CreateAsync(new CreateSpec { Text = text, MediaIds = mediaIDs, Cw = cw, Visibility = visibility.ToString().ToLower(), ReplyId = replyId, })); }
public static void SetVisibility(this Operation operation, VisibilityType visibility) { if (visibility == VisibilityType.Default) { return; } operation.EnsureVendorExtensions(); if (!operation.vendorExtensions.ContainsKey(Constants.X_MS_VISIBILITY)) { operation.vendorExtensions.Add(Constants.X_MS_VISIBILITY, visibility.ToString().ToLowerInvariant()); } }