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