InformationBox de SaumonAgile
Bonjour,
Je viens d'installer InformationBox et j'essaye les divers comportements.
Je code comme suit:
Code:
1 2 3 4 5 6 7 8
|
if (InformationBox.Show("Voulez-vous réellement supprimer la tâche en cours d'exécution ?",
"Question",
InformationBoxButtons.YesNo,
InformationBoxIcon.Question,
InformationBoxDefaultButton.Button2,
InformationBoxStyle.Modern) == InformationBoxResult.Yes)
{ |
J'ai bien une interface moderne.
Mais si j'enlève " InformationBoxStyle.Modern " et que je recompile, j'ai toujours le style moderne dans mon appli, contrairement à l'utilitaire de génération de code qui lui modifie bien l'interface en fonction du choix effectué.
C'est normal ou j'ai buggé un truc ?
J-L
1 pièce(s) jointe(s)
autre test sous VS 2005 express
Je viens de faie un autre test dont voilà le code:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using InfoBox;
using DreamShield;
using DreamShield.Windows.Themes.Gui;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
InformationBox.Show("ancien", "Test", InformationBoxTitleIconStyle.None);
}
private void button2_Click(object sender, EventArgs e)
{
InformationBox.Show("moderne", "Test", InformationBoxStyle.Modern, InformationBoxTitleIconStyle.None);
}
}
} |
Les lignes de code sont un copier-coller de l'outil Infobox designer .
Dans les 2 cas, j'ai exactement la même fenètre de dialogue.
D'ailleurs, même à partir du designer, je n'ai pas la même fenètre de dial quand je clique sur Show