Files
OnDoc/Client/DocMgmt/Serienbrief_Sheetselect.cs
Stefan Hutter 53a008972e update 20241231
2024-12-31 13:31:49 +01:00

53 lines
1.6 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using OnDoc.Klassen;
using Syncfusion.Windows.Forms.Tools;
using Syncfusion.WinForms.Controls;
using Syncfusion.WinForms.DataGrid;
using Syncfusion.WinForms.DataGrid.Interactivity;
namespace OnDoc.DocMgmt
{
public partial class Serienbrief_Sheetselect : SfForm
{
List<string> sheets { get; set; }
public Serienbrief_Sheetselect()
{
InitializeComponent();
this.Style.TitleBar.BackColor = Theaming.Titelbar();
this.Style.TitleBar.ForeColor = Theaming.TitelFontColor();
this.Style.ShadowOpacity = Theaming.ShadowOpacity;
this.Style.InactiveShadowOpacity = Theaming.InactivShadowOpacity;
}
public Serienbrief_Sheetselect(List<string> sheets)
{
InitializeComponent();
this.sheets = sheets;
this.Style.TitleBar.BackColor = Theaming.Titelbar();
this.Style.TitleBar.ForeColor = Theaming.TitelFontColor();
this.Style.ShadowOpacity = Theaming.ShadowOpacity;
this.Style.InactiveShadowOpacity = Theaming.InactivShadowOpacity;
}
private void Serienbrief_Sheetselect_Load(object sender, EventArgs e)
{
ListViewSheets.DataSource = sheets;
ListViewSheets.SelectedIndex = 0;
}
public string get_selected_sheet()
{
return ListViewSheets.SelectedItem.ToString();
}
}
}