Exemplo n.º 1
0
        private void OuvrirCodePointage(TicketItem ticketItem, string commentaire)
        {
            #region Extraction de l'url

            string[] tabMostLien = ticketItem.Lien.Split('/');
            if (tabMostLien.Length < 5) return;

            string nbHeure = "&time_entry[hours]=" + "8";
            string comment = (commentaire == "" ? "" : "&time_entry[comments]=" + commentaire);

            Uri urlBase = new Uri(
                "http://"
                + tabMostLien[2]
                + "/timelog/edit?"
                + "issue_id="
                + ticketItem.Number
                + nbHeure
                + comment);

            System.Diagnostics.Process.Start(Uri.EscapeUriString(urlBase.ToString()));

            #endregion
        }
Exemplo n.º 2
0
 private void OuvrirTacheRedmine(TicketItem ticketItem)
 {
     System.Diagnostics.Process.Start(ticketItem.Lien);
 }