コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MainWindow"/> class.
        /// </summary>
        public MainInterface()
        {
            Op = Option.getInstance();
            Op.getConfig("Fonds", false);
            Op.getConfig("Chapeaux", false);
            Op.getConfig("Vêtements-2D",false);
            Op.getConfig("Vêtements-3D",false);

            VetementSelectionne = new BitmapImage();

            InitializeComponent();
            Loaded += new RoutedEventHandler(this.MainWindow_Loaded);
            Unloaded += new RoutedEventHandler(MainWindow_Unloaded);

            DisplayClothes(i);
            DisplayChapeaux(j);
            //__instance = this;
        }
コード例 #2
0
 /// <summary>
 /// Recupere une instance de la classe d'option (singleton)
 /// </summary>
 /// <returns>instance</returns>
 public static Option getInstance()
 {
     if( __instance==null)
         __instance=new Option();
     return __instance;
 }