示例#1
0
 public ThemeImageDeleteForm(ThemeForm tf)
 {
     this.tf = tf;
     InitializeComponent();
     // Combobox with themes get filled
     FillThemeBox();
 }
示例#2
0
 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;
            }
        }
示例#5
0
        private void trayMenuTheme_Click(object sender, EventArgs e)
        {
            if (themeForm == null)
            {
                themeForm = new ThemeForm();
            }

            themeForm.ShowDialog(this);
        }
示例#6
0
        // 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();
            }
        }
示例#7
0
 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();
 }
示例#8
0
 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);
            }
        }
示例#10
0
 public void Apply(ThemeForm form)
 {
     form.BackColor = Back;
     Apply(form.Controls);
 }
示例#11
0
 internal static void Remove(ThemeForm form)
 {
     list.Remove(form);
 }
示例#12
0
 public static ThemeForm Add(ThemeForm form)
 {
     Current.Apply(form);
     list.Add(form);
     return(form);
 }