public ThemeImageDeleteForm(ThemeForm tf) { this.tf = tf; InitializeComponent(); // Combobox with themes get filled FillThemeBox(); }
public ThemeImageForm(ThemeForm tf) { this.tf = tf; InitializeComponent(); //this.BackgroundImageLayout = ImageLayout.Stretch; //this.BackgroundImage = Converter.ByteArrayToImage(DatabaseController.getLastSubTheme().image); }
void pgProperties_Enter(object sender, EventArgs e) { ThemeForm frm = FindForm() as ThemeForm; if (frm != null) { frm.SuppressKeyPress = true; } }
void pgProperties_Leave(object sender, EventArgs e) { ThemeForm frm = FindForm() as ThemeForm; if (frm != null) { frm.SuppressKeyPress = false; } }
private void trayMenuTheme_Click(object sender, EventArgs e) { if (themeForm == null) { themeForm = new ThemeForm(); } themeForm.ShowDialog(this); }
// Opens menu to change the theme or add a new theme. private void ThemeToolStripMenuItem_Click(object sender, EventArgs e) { ThemeForm tf = new ThemeForm(this, mm); tf.ShowDialog(); if (tf.DialogResult == DialogResult.OK) { mm.Hide(); this.Show(); } }
private void trayMenuTheme_Click(object sender, EventArgs e) { if (themeForm == null) { themeForm = new ThemeForm(); } if (themeForm.Visible) { themeForm.BringToFront(); return; } themeForm.Show(this); themeForm.BringToFront(); }
private void btnTheme_Click(object sender, EventArgs e) { if (themeForm == null || themeForm.IsDisposed) { themeForm = new ThemeForm(); } if (themeForm.Visible) { themeForm.BringToFront(); return; } themeForm.Show(this); themeForm.BringToFront(); }
//private List<Theme> themes; public ThemeImageFormSave(ThemeForm tf, ThemeImageForm tif) { this.tf = tf; this.tif = tif; InitializeComponent(); //using (var mc = new MyContext()) //{ // themes = (from s in mc.themes // select s).ToList<Theme>(); //} foreach (Theme t in DatabaseController.themeList) { cb_themes.Items.Add(t.name); } }
public void Apply(ThemeForm form) { form.BackColor = Back; Apply(form.Controls); }
internal static void Remove(ThemeForm form) { list.Remove(form); }
public static ThemeForm Add(ThemeForm form) { Current.Apply(form); list.Add(form); return(form); }