Esempio n. 1
0
	static void Main ()
	{
		Gtk.Application.Init ();
		file = FileFactory.NewForUri (new Uri ("smb://[email protected]/myshare/test"));

		Window w = new Window ("test");
		operation = new Gtk.MountOperation (w);
		Button b = new Button ("Mount");
		b.Clicked += new System.EventHandler (HandleButtonClicked);
		b.Show ();
		w.Add (b);
		w.Show ();
		Gtk.Application.Run ();
	}
Esempio n. 2
0
    static void Main()
    {
        Gtk.Application.Init();
        file = FileFactory.NewForUri(new Uri("smb://[email protected]/myshare/test"));

        Window w = new Window("test");

        operation = new Gtk.MountOperation(w);
        Button b = new Button("Mount");

        b.Clicked += new EventHandler(HandleButtonClicked);
        b.Show();
        w.Add(b);
        w.Show();
        Gtk.Application.Run();
    }