Exemplo n.º 1
0
        void on_m_SendFileMenuItem_activate(object o, EventArgs e)
        {
            FileSelector dialog = new FileSelector("Select file to send");

            dialog.Show();
            if (dialog.Run() == (int)Gtk.ResponseType.Ok)
            {
                network.SendFile(selectedNode, dialog.Filename);
            }
            dialog.Destroy();
        }
Exemplo n.º 2
0
        private void browseButton_clicked(object o, EventArgs args)
        {
            FileSelector selector = new FileSelector("Select Image");

            selector.Show();
            int result = selector.Run();

            if (result == (int)Gtk.ResponseType.Ok)
            {
                try {
                    AddFile(selector.Filename);
                } catch (Exception ex) {
                    selector.Hide();
                    Gui.ShowMessageDialog(ex.Message);
                    return;
                }
            }
            selector.Hide();
        }
Exemplo n.º 3
0
 void on_m_SendFileMenuItem_activate(object o, EventArgs e)
 {
     FileSelector dialog = new FileSelector ("Select file to send");
     dialog.Show ();
     if (dialog.Run () == (int)Gtk.ResponseType.Ok) {
         network.SendFile (selectedNode, dialog.Filename);
     }
     dialog.Destroy ();
 }
Exemplo n.º 4
0
 private void browseButton_clicked(object o, EventArgs args)
 {
     FileSelector selector = new FileSelector ("Select Image");
     selector.Show ();
     int result = selector.Run ();
     if (result == (int)Gtk.ResponseType.Ok) {
         try {
             AddFile (selector.Filename);
         } catch (Exception ex) {
             selector.Hide ();
             Gui.ShowMessageDialog (ex.Message);
             return;
         }
     }
     selector.Hide ();
 }