necrosisbyte
necrosisbyte
CC#
Created by necrosisbyte on 4/4/2023 in #help
❔ Damn buttons.
@Ryada *ngIf="exists" Thank you that worked. I needed to rebuild the display class to update the values to equal the new TimeSelector values.
29 replies
CC#
Created by necrosisbyte on 4/4/2023 in #help
❔ Damn buttons.
I think I got it. I have to call the Displays with the button click and not rely on the timer refresh.
29 replies
CC#
Created by necrosisbyte on 4/4/2023 in #help
❔ Damn buttons.
So when I click apply the text up top should change to whatever the combo boxes are set to, and they do, but I have to click apply twice for it to happen.
29 replies
CC#
Created by necrosisbyte on 4/4/2023 in #help
❔ Damn buttons.
That's the project in whole, it's pretty small.
29 replies
CC#
Created by necrosisbyte on 4/4/2023 in #help
❔ Damn buttons.
29 replies
CC#
Created by necrosisbyte on 4/4/2023 in #help
❔ Damn buttons.
Sure one sec.
29 replies
CC#
Created by necrosisbyte on 4/4/2023 in #help
❔ Damn buttons.
private void btn_Apply_Click(object sender, EventArgs e)
{
new TimeSelector(cb_sdHour.SelectedItem.ToString(), cb_sdMinute.SelectedItem.ToString(), cb_sdAmPm.SelectedItem.ToString());
lbl_shutdownHour.Text = (Displays.HDisplay + ":" + Displays.MDisplay + Displays.DAmPm);
}
private void btn_Apply_Click(object sender, EventArgs e)
{
new TimeSelector(cb_sdHour.SelectedItem.ToString(), cb_sdMinute.SelectedItem.ToString(), cb_sdAmPm.SelectedItem.ToString());
lbl_shutdownHour.Text = (Displays.HDisplay + ":" + Displays.MDisplay + Displays.DAmPm);
}
29 replies
CC#
Created by necrosisbyte on 4/4/2023 in #help
❔ Damn buttons.
Okay so I got that to work, my problem has changed. So I now have to click the button twice for the change to take effect. In debug when I step through it happens on the first click, but when I just ctrl f5 it, it takes two clicks.
29 replies
CC#
Created by necrosisbyte on 4/4/2023 in #help
❔ Damn buttons.
Every other part of the code has been tested and works as it should.
29 replies
CC#
Created by necrosisbyte on 4/4/2023 in #help
btn_Apply_Click not changing variables.
So when you click the apply button it is supposed to change the variable of the time selector to whatever the current selected item is in the three combo boxes. And in turn change the display numbers as well to reflect the change. However, when I click apply, neither of them change.
7 replies
CC#
Created by necrosisbyte on 4/4/2023 in #help
btn_Apply_Click not changing variables.
https://paste.mod.gg/xogaamxzabyp/3 The specific part I am having trouble with is in Form1.cs.
private void btn_Apply_Click(object sender, EventArgs e)
{

TimeSelector.HourSelector = cb_sdHour.Items[cb_sdHour.SelectedIndex].ToString();
TimeSelector.MinuteSelector = cb_sdMinute.Items[cb_sdMinute.SelectedIndex].ToString();
TimeSelector.AmPmBuffer = cb_sdAmPm.Items[cb_sdAmPm.SelectedIndex].ToString();

lbl_shutdownHour.Refresh();
}
private void btn_Apply_Click(object sender, EventArgs e)
{

TimeSelector.HourSelector = cb_sdHour.Items[cb_sdHour.SelectedIndex].ToString();
TimeSelector.MinuteSelector = cb_sdMinute.Items[cb_sdMinute.SelectedIndex].ToString();
TimeSelector.AmPmBuffer = cb_sdAmPm.Items[cb_sdAmPm.SelectedIndex].ToString();

lbl_shutdownHour.Refresh();
}
7 replies
CC#
Created by necrosisbyte on 4/4/2023 in #help
btn_Apply_Click not changing variables.
$code
7 replies