// ============================================ // PUBLIC Constructors // ============================================ public ProgressDialog(string password) : base(MyInfo.Name + " Login", null, DialogFlags.Modal) { // Initialize Dialog Options WindowPosition = Gtk.WindowPosition.Center; // Initialize Dialog Events Response += new ResponseHandler(OnResponse); // Initialize Dialog Components AddButton(Gtk.Stock.Close, ResponseType.Close); Gtk.HBox hbox = new Gtk.HBox(false, 2); Gtk.VBox vbox = new Gtk.VBox(false, 2); VBox.PackStart(hbox, true, true, 2); hbox.PackStart(StockIcons.GetImage("Channel"), false, false, 2); hbox.PackStart(vbox, true, true, 2); // Initialize Label labelMessage = new Gtk.Label("<b>Waiting for " + MyInfo.Name + " Login...</b>"); labelMessage.UseMarkup = true; vbox.PackStart(labelMessage, false, false, 2); // Initialize ProgressBar progressBar = new Gtk.ProgressBar(); vbox.PackStart(progressBar, false, false, 2); // Initialize Timer timer = GLib.Timeout.Add(100, new GLib.TimeoutHandler(ProgressTimeout)); // Initialize UserInfo MyInfo.LoginChecked += new LoginEventHandler(OnLoginChecked); MyInfo.Login(password); this.ShowAll(); }