Exemple #1
0
        public MainWindow()
            : base(Gtk.WindowType.Toplevel)
        {
            Build ();
            Gtk.Drag.SourceSet (filepane, Gdk.ModifierType.Button1Mask, targetEntry, Gdk.DragAction.Ask);

            HGDLogin win2 = new HGDLogin("test", this, DialogFlags.Modal);
            win2.Run();
            if (win2.ok == true) {
                this.Show();
                c = new Connection(win2.hostname, win2.username, win2.password);
                c.Changed += delegate(object sender, EventArgs e) {
                    SendChangedArgs ee = (SendChangedArgs) e;
                    Console.WriteLine(ee.filename + ee.percentage);
                };
                c.connect();
            } else {
                this.Hide();
                Console.WriteLine("Should close there");
            }
        }
Exemple #2
0
        public MainWindow() : base(Gtk.WindowType.Toplevel)
        {
            Build();
            Gtk.Drag.SourceSet(filepane, Gdk.ModifierType.Button1Mask, targetEntry, Gdk.DragAction.Ask);

            HGDLogin win2 = new HGDLogin("test", this, DialogFlags.Modal);

            win2.Run();
            if (win2.ok == true)
            {
                this.Show();
                c          = new Connection(win2.hostname, win2.username, win2.password);
                c.Changed += delegate(object sender, EventArgs e) {
                    SendChangedArgs ee = (SendChangedArgs)e;
                    Console.WriteLine(ee.filename + ee.percentage);
                };
                c.connect();
            }
            else
            {
                this.Hide();
                Console.WriteLine("Should close there");
            }
        }