* Shop + Plugin is now functionnal, sample Plugin provided to connect to the default...
[circ.git] / Circ.Frontend.GtkSharp / ConnectionDialog.cs
blobe3fe9d956cc9c631ab15e51cd61aed301a77836b
1 #region License
2 /* Circ.Frontend.GtkSharp : GTK# frontend for Circ
3 * Copyright (C) 2007 LAVAL Jérémie
5 * This file is licensed under the terms of the LGPL.
7 * For the complete licence see the file COPYING.
8 */
9 #endregion
10 using System;
11 using System.Collections.Generic;
12 using Gtk;
13 using Circ.Controller;
15 namespace Circ.Frontend.GtkSharp
17 public partial class ConnectionDialog : Gtk.Dialog
19 IMainControl ctrl;
20 IList<string> selectedServers = new List<string>();
22 public ConnectionDialog(IMainControl ctrl, string[] servers)
24 this.ctrl = ctrl;
26 this.Build();
27 ListStore list = new ListStore(typeof(string));
28 this.serverList.HeadersVisible = false;
29 this.serverList.Model = list;
30 this.serverList.AppendColumn("Servers", new CellRendererText(), "text", 0);
31 foreach(string s in servers)
32 list.AppendValues(s);
33 this.Modal = false;
34 this.ShowAll();
37 public void OnProcessConnections(object sender, EventArgs e)
39 // TODO : connect to each selected server