update 20241217
This commit is contained in:
@@ -18,15 +18,29 @@ namespace OnDoc.Diverses
|
||||
public string partnernr { get; set; } = "";
|
||||
public string datenherkunft { get; set; } = "";
|
||||
|
||||
public string selected_value { get; set; }
|
||||
public string selected_value { get; set; }
|
||||
|
||||
public DateTime selected_datetime { get; set; } = DateTime.Now;
|
||||
public valueselector()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.panel1.Visible = false;
|
||||
this.GridData.Visible = true;
|
||||
|
||||
}
|
||||
|
||||
public valueselector(Boolean Showcalendar)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.panel1.Visible = true;
|
||||
this.GridData.Visible = false;
|
||||
label2.Text = DateTime.Now.ToString("dd.MM.yyyy");
|
||||
}
|
||||
|
||||
private void valueselector_Load(object sender, EventArgs e)
|
||||
{
|
||||
this.SetDesktopLocation(Cursor.Position.X, Cursor.Position.Y);
|
||||
this.sfCalendar1.SelectedDate = DateTime.Now;
|
||||
}
|
||||
|
||||
public void load_data()
|
||||
@@ -68,5 +82,29 @@ namespace OnDoc.Diverses
|
||||
DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void sfCalendar1_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.selected_datetime = (DateTime)sfCalendar1.SelectedDate;
|
||||
}
|
||||
|
||||
private void sfCalendar1_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
sfCalendar1_Click(sender, e);
|
||||
DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
|
||||
}
|
||||
|
||||
private void panel2_Click(object sender, EventArgs e)
|
||||
{
|
||||
sfCalendar1.SelectedDate = DateTime.Now;
|
||||
sfCalendar1_DoubleClick(sender, e);
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
sfCalendar1_DoubleClick(sender, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user