Skip to content

Commit 7c2e91e

Browse files
author
Manivannan
committed
Rebase the master.
1 parent 6d9f0cb commit 7c2e91e

File tree

2 files changed

+61
-15
lines changed

2 files changed

+61
-15
lines changed

.github/workflows/gitleaks.yaml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Secret Value found!
1+
name: Secret Value found!!
22
on:
33
push:
44
public:
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v3
11+
uses: actions/checkout@v4.2.2
1212
- name: Install the gitleaks
1313
run: wget https://github.com/zricethezav/gitleaks/releases/download/v8.15.2/gitleaks_8.15.2_linux_x64.tar.gz
1414
shell: pwsh
@@ -21,18 +21,24 @@ jobs:
2121
continue-on-error: true
2222
- name: Setup NuGet.exe
2323
if: steps.gitleaks.outcome != 'success'
24-
uses: nuget/setup-nuget@v1
24+
uses: nuget/setup-nuget@v2
2525
with:
2626
nuget-version: latest
27-
- name: Install the dotnet
27+
- name: Install Mono
2828
if: steps.gitleaks.outcome != 'success'
29-
uses: actions/setup-dotnet@v3
30-
with:
31-
dotnet-version: '3.1.x'
29+
run: |
30+
sudo apt update
31+
sudo apt install -y mono-complete
32+
- name: Install the dotnet SDK to a custom directory
33+
if: steps.gitleaks.outcome != 'success'
34+
run: |
35+
mkdir -p $GITHUB_WORKSPACE/dotnet
36+
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --install-dir $GITHUB_WORKSPACE/dotnet --channel 6.0
3237
- name: Install the report tool packages
3338
if: steps.gitleaks.outcome != 'success'
3439
run: |
35-
nuget install "Syncfusion.Email" -source "https://nexus.syncfusion.com/repository/nuget-hosted/"
36-
dir $GITHUB_WORKSPACE/Syncfusion.Email.1.0.0/lib/netcoreapp3.1
37-
dotnet $GITHUB_WORKSPACE/Syncfusion.Email.1.0.0/lib/netcoreapp3.1/Email.dll "[email protected]" "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE"
40+
export PATH=$GITHUB_WORKSPACE/dotnet:$PATH
41+
nuget install "Syncfusion.Email" -source ${{ secrets.NexusFeedLink }} -ExcludeVersion
42+
dir $GITHUB_WORKSPACE/Syncfusion.Email/lib/net6.0
43+
dotnet $GITHUB_WORKSPACE/Syncfusion.Email/lib/net6.0/GitleaksReportMail.dll ${{ secrets.CITEAMCREDENTIALS }} "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE" ${{ secrets.ORGANIZATIONNAME }}
3844
exit 1

README.md

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,51 @@
1-
# How-to-customize-the-range-intervals-in-Winforms-RangeSlider
2-
RangeSlider provides an option to customize the range of the slider. We can customize the radial slider by setting the Minimum value, Maximum value, Tick frequency and StartPosition of the slider. For more details please refer [How to customize the range intervals in RadialSlider](https://www.syncfusion.com/kb/11982/how-to-customize-the-range-intervals-in-winforms-rangeslider).
1+
# How to Customize the Range Intervals in WinForms RangeSlider
2+
The Syncfusion WinForms RangeSlider control provides options to customize the slider range to meet specific application requirements. By adjusting properties such as Minimum, Maximum, TickFrequency, and handling the DrawLabel event, you can create a slider that fits your desired range and display format.
33

4-
## C#
5-
//To Customize the Range
4+
## Why Customize the Range?
5+
Customizing the range intervals allows you to:
6+
- Define the minimum and maximum values for the slider.
7+
- Control the tick frequency for precise value selection.
8+
- Display custom labels (e.g., time intervals) for better user experience.
9+
10+
## Key Properties
11+
12+
- **Minimum**: Sets the lowest value of the slider.
13+
- **Maximum**: Defines the highest value of the slider.
14+
- **TickFrequency**: Determines the interval between ticks.
15+
- **ShowLabels**: Enables label display on the slider.
16+
- **StartPosition**: Specifies the initial position of the form.
17+
18+
## Example Code
19+
```C#
20+
public Form1()
21+
{
22+
InitializeComponent();
23+
24+
// Configure RangeSlider properties
25+
this.rangeSlider1.DrawLabel += RangeSlider1_DrawLabel;
26+
this.rangeSlider1.ShowLabels = true;
627
this.rangeSlider1.Minimum = 1;
728
this.rangeSlider1.Maximum = 10;
829
this.rangeSlider1.TickFrequency = 1;
30+
31+
// Center the form on the screen
932
this.StartPosition = FormStartPosition.CenterScreen;
33+
}
34+
35+
private void RangeSlider1_DrawLabel(object sender, DrawLabelEventArgs e)
36+
{
37+
// Convert slider value to time intervals
38+
TimeSpan timeSpan = new TimeSpan(0, 30, 0);
39+
for (int i = 0; i < e.Value; i++)
40+
{
41+
timeSpan = timeSpan.Add(new TimeSpan(0, 30, 0));
42+
}
43+
44+
DateTime time = DateTime.Today.Add(timeSpan);
45+
e.Text = time.ToString("hh:mm tt");
46+
e.Handled = true;
47+
}
48+
```
1049

11-
![Custom RangeSlider](RangeSlider_CustomRangeintervals/Image/Custom%20RangeSlider.png)
50+
## Reference
51+
For more details, refer to the official Syncfusion Knowledge Base: https://www.syncfusion.com/kb/11982/how-to-customize-the-range-intervals-in-winforms-rangeslider

0 commit comments

Comments
 (0)