From 2dde4574ecc4fb159407772f31a380456811cf91 Mon Sep 17 00:00:00 2001 From: saiganesh-sakthivel Date: Wed, 7 Dec 2022 17:55:07 +0530 Subject: [PATCH 1/3] modified the Readme --- README.md | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3bfa925..a15b03d 100644 --- a/README.md +++ b/README.md @@ -1 +1,38 @@ -**[View document in our Syncfusion Xamarin knowledge base](https://www.syncfusion.com/kb/12228/how-to-change-the-nonworking-days-in-xamarin-forms-schedule-sfschedule)** +# How to change the nonworking days in Xamarin.Forms Schedule (SfSchedule) + + +You can customize the non-working days of a week by using the [NonWorkingDays](https://help.syncfusion.com/cr/xamarin/Syncfusion.SfSchedule.XForms.WorkWeekViewSettings.html#Syncfusion_SfSchedule_XForms_WorkWeekViewSettings_NonWorkingsDays) property of [WorkWeekViewSettings](https://help.syncfusion.com/cr/xamarin/Syncfusion.SfSchedule.XForms.WorkWeekViewSettings.html) in Xamarin.Forms [SfSchedule](https://www.syncfusion.com/xamarin-ui-controls/xamarin-scheduler). + +**C#** + +Declare and define the nonworking days property in ViewModel. +``` +public SchedulerViewModel() +{ +    this.Appointments = new ScheduleAppointmentCollection(); +    this.NonWorkingDays = new ObservableCollection(); +    NonWorkingDays.Add(DayOfWeek.Wednesday); +    NonWorkingDays.Add(DayOfWeek.Thursday); +    this.InitializeDataForBookings(); +    this.BookingAppointments(); +} +``` + +**XAML** +Bind the appointments to a schedule by using the DataSource property. You can bind the nonworking days collection to the `NonWorkingDays` property of `WorkWeekViewSettings`. +``` +    +        +            +        +         +            +        +        +            +        +    + +``` + +KB article - [How to change the nonworking days in Xamarin.Forms Schedule (SfSchedule)](https://www.syncfusion.com/kb/12228/how-to-change-the-nonworking-days-in-xamarin-forms-schedule-sfschedule) \ No newline at end of file From a2701dc010b75b7440c84073a5041a1660fb6d80 Mon Sep 17 00:00:00 2001 From: saiganesh-sakthivel Date: Wed, 7 Dec 2022 18:04:47 +0530 Subject: [PATCH 2/3] modified --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index a15b03d..1e48134 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # How to change the nonworking days in Xamarin.Forms Schedule (SfSchedule) - You can customize the non-working days of a week by using the [NonWorkingDays](https://help.syncfusion.com/cr/xamarin/Syncfusion.SfSchedule.XForms.WorkWeekViewSettings.html#Syncfusion_SfSchedule_XForms_WorkWeekViewSettings_NonWorkingsDays) property of [WorkWeekViewSettings](https://help.syncfusion.com/cr/xamarin/Syncfusion.SfSchedule.XForms.WorkWeekViewSettings.html) in Xamarin.Forms [SfSchedule](https://www.syncfusion.com/xamarin-ui-controls/xamarin-scheduler). **C#** From 2263cbde77ba1d782a1788ddc89a5c546a55bcc6 Mon Sep 17 00:00:00 2001 From: VinothKumar-Ganesan <121218063+VinothKumar-Ganesan@users.noreply.github.com> Date: Mon, 6 Feb 2023 12:57:02 +0530 Subject: [PATCH 3/3] Gitleaks action file added --- .github/workflows/gitleaks.yaml | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/gitleaks.yaml diff --git a/.github/workflows/gitleaks.yaml b/.github/workflows/gitleaks.yaml new file mode 100644 index 0000000..d9a8e36 --- /dev/null +++ b/.github/workflows/gitleaks.yaml @@ -0,0 +1,38 @@ +name: Secret Value found! +on: + push: + public: +jobs: + scan: + name: gitleaks + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install the gitleaks + run: wget https://github.com/zricethezav/gitleaks/releases/download/v8.15.2/gitleaks_8.15.2_linux_x64.tar.gz + shell: pwsh + - name: Extract the tar file + run: tar xzvf gitleaks_8.15.2_linux_x64.tar.gz + - name: Generate the report + id: gitleaks + run: $GITHUB_WORKSPACE/gitleaks detect -s $GITHUB_WORKSPACE -f json -r $GITHUB_WORKSPACE/leaksreport.json + shell: bash + continue-on-error: true + - name: Setup NuGet.exe + if: steps.gitleaks.outcome != 'success' + uses: nuget/setup-nuget@v1 + with: + nuget-version: latest + - name: Install the dotnet + if: steps.gitleaks.outcome != 'success' + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '3.1.x' + - name: Install the report tool packages + if: steps.gitleaks.outcome != 'success' + run: | + nuget install "Syncfusion.Email" -source "https://nexus.syncfusion.com/repository/nuget-hosted/" + dir $GITHUB_WORKSPACE/Syncfusion.Email.1.0.0/lib/netcoreapp3.1 + dotnet $GITHUB_WORKSPACE/Syncfusion.Email.1.0.0/lib/netcoreapp3.1/Email.dll "citeam@syncfusion.com" "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE" + exit 1 \ No newline at end of file