You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OnDoc/Client/DocMgmt/Serienbrief_Sheetselect.cs

53 lines
1.6 KiB

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();
}
}
}