setup linux: simplify a few lines

This commit is contained in:
Hylke Bons 2012-09-13 10:23:36 +01:00
parent cb61b20c25
commit fef748e5f1

View file

@ -110,10 +110,7 @@ namespace SparkleShare {
}; };
continue_button.Clicked += delegate (object o, EventArgs args) { continue_button.Clicked += delegate (object o, EventArgs args) {
string full_name = name_entry.Text; Controller.SetupPageCompleted (name_entry.Text, email_entry.Text);
string email = email_entry.Text;
Controller.SetupPageCompleted (full_name, email);
}; };
AddButton (cancel_button); AddButton (cancel_button);
@ -312,10 +309,7 @@ namespace SparkleShare {
}; };
add_button.Clicked += delegate { add_button.Clicked += delegate {
string server = address_entry.Text; Controller.AddPageCompleted (address_entry.Text, path_entry.Text);
string folder_name = path_entry.Text;
Controller.AddPageCompleted (server, folder_name);
}; };
Controller.UpdateAddProjectButtonEvent += delegate (bool button_enabled) { Controller.UpdateAddProjectButtonEvent += delegate (bool button_enabled) {