Accéder au contenu principal

Solution Application 2 :Gestion d Un Cyber

  1. Creer une application windows Form
  2. Creer la class Reglement suivante :
class Reglement {
 private int numero_reglement;
 private String client;
 private String typeClient;
 private int numeroposte;
 private String typeService;
 private int nombreHeure;
 private DateTime dateReglement;
 private double Montant;
 //Constructeur par defaut
 public Reglement() { numero_reglement = -1; client = ""; typeClient = ""; numeroposte = 0; typeService = ""; nombreHeure = 0; dateReglement = DateTime.Now; Montant = 0; }

 //Constructeur d initialisation
 public Reglement( int n,String cl,String tCl,int np,String tS,int nH,DateTime dr,double m) { numero_reglement=n; client = cl; typeClient = tCl; numeroposte = np; typeService = tS; nombreHeure = nH; dateReglement = dr; Montant = m; }
 //Constructeur d 'objet
 public Reglement(Reglement a) { numero_reglement = a.numero_reglement; client = a.client; typeClient = a.typeClient; numeroposte = a.numeroposte; typeService = a.typeService; nombreHeure = a.nombreHeure; dateReglement = a.dateReglement; Montant = a.Montant; }
 //les properietes
 public int pNumero_reglement { get { return numero_reglement; } set { numero_reglement = value; } }
 public String pClient { get { return client; } set { client = value; } }
 public String pTypeClient { get { return typeClient; } set { typeClient = value; } } public int pNumeroposte { get { return numeroposte; } set { numeroposte = value; } }
 public String pTypeService { get { return typeService; } set { typeService = value; } }
 public int pNombreHeure { get { return nombreHeure; } set { nombreHeure = value; } }
 public DateTime DateReglement { get { return dateReglement; } set { dateReglement = value; } }  public double pMontant { get { return Montant; } set { Montant = value; } }
 //Methode Tostring()
 public override string ToString() { return numero_reglement+"/" +client+"/"+typeClient +"/"+numeroposte +"/"+typeService +"/"+nombreHeure +"/"+dateReglement +"/"+Montant ; } }

  • 3. Créer une Collection static dans la class Program 
  • static class Program { public static List T = new List(); 
  •  static void Main() { 
  •  Application.EnableVisualStyles(); 
  •  Application.SetCompatibleTextRenderingDefault(false); 
  •  Application.Run(new Form1()); }

Posts les plus consultés de ce blog

video sur une application simple native en android .

Best Website Builders Sorted by Popularity

46 Best Website Builders Sorted by Popularity If you're looking for a tip on how to create a website with minimum effort, you can try using tools like a free website builder. It’s crazy how many websites exist on the web at present times. The variety and versatility of websites are always changing and growing. We can’t imagine a person without having a personal website or a website for his businesses and activities. But there are still individuals who don’t have one. There are lots of on- and offline solutions for novices and those who want to showcase something new - website builders. What is a website builder? Website builders are the right choice for people with no programming experience and limited time and budget. But sometimes even professionals can gain access to these tools, because the majority of them gives a visual over a website and let their users create websites as fast as they can. Modern top website builders have a plenty of modern functionaliti...

easy drag-and-drop website builder

WINDOWS MAC LINUX WEB IPHONE ANDROID PRODUCTIVITY DEVELOPMENT GAMES SOCIAL BUSINESS Lists Sign up Login Crowdsourced software recommendations Which app do you want to replace? Find apps 32 Like Mobirise Create cutting-edge, beautiful websites that look amazing on any devices and browsers.  Created by Mobirise Website Builder Free   Open Source   Mac OS X   Windows   Android     Mobirise - is a super easy drag-and-drop website builder. Drop the blocks you like into your page, edit content inline and publish - no technical skills required. Develop bootstrap-based, fully responsive sites that look amazing on any devices and browsers. Preview how your website will appear on smartphones, tablets and desktops directly in the visual editor. Free for commercial and personal use. Download for Windows, Mac, Android. Boost your ranking - Sites made with Mobirise ar...