nox
nox
CC#
Created by nox on 2/26/2023 in #help
✅ Can't use external font in resourcedictionary?
i figured it out, nvm
2 replies
CC#
Created by nox on 12/22/2022 in #help
persistent changes to variables across files
coming back to say that i did not in fact figure out a solution and that there is no good documentation to help me figure out how to implement caching and editing variable temp states that i could find, is there anything you’d recommend i look at
32 replies
CC#
Created by nox on 12/22/2022 in #help
persistent changes to variables across files
thank you, i believe i’ve figured out my solution and if i have any more problems with this i’ll update this
32 replies
CC#
Created by nox on 12/22/2022 in #help
persistent changes to variables across files
ah i see
32 replies
CC#
Created by nox on 12/22/2022 in #help
persistent changes to variables across files
yes
32 replies
CC#
Created by nox on 12/22/2022 in #help
persistent changes to variables across files
well in the main form, theres a function that runs whenever a user presses a button that closes the current form and opens up the new one. heres the code for that
private Form activeForm = null;
private void openSubForm(Form subForm)
{
if (activeForm != null)
{
activeForm.Close();
}
activeForm = subForm;
subForm.TopLevel = false;
subForm.FormBorderStyle = FormBorderStyle.None;
subForm.Dock = DockStyle.Fill;
subFormPanel.Controls.Add(subForm);
subFormPanel.Tag = subForm;
subForm.Show();
}
private Form activeForm = null;
private void openSubForm(Form subForm)
{
if (activeForm != null)
{
activeForm.Close();
}
activeForm = subForm;
subForm.TopLevel = false;
subForm.FormBorderStyle = FormBorderStyle.None;
subForm.Dock = DockStyle.Fill;
subFormPanel.Controls.Add(subForm);
subFormPanel.Tag = subForm;
subForm.Show();
}
32 replies
CC#
Created by nox on 12/22/2022 in #help
persistent changes to variables across files
well the main form acts as a sort of hub(?) for all the other forms. theres a menu on the side that has buttons, and the buttons open up the subforms inside a panel on the main form.
32 replies
CC#
Created by nox on 12/22/2022 in #help
persistent changes to variables across files
i think i just may be going about caching the temp state wrong
32 replies
CC#
Created by nox on 12/22/2022 in #help
persistent changes to variables across files
although, if im not mistaken, that is what my code is right now (i have the original state and the edited state stored inside variables initiated in the main form, the edited state is what is passed around and changed and then gets saved to a proper persisted location when the time comes for that)
32 replies