示例#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 ();
	}
示例#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();
    }