private void Add_Click(object sender, EventArgs e) { try { var shareAdd = new ShareAdd(Url,Login); shareAdd.Show(); Log.Info("ShareAddShow start"); } catch (Exception exception) { Log.Fatal(exception.Message); MessageBox.Show(exception.Message); } }
private void addNewSharesToolStripMenuItem_Click(object sender, EventArgs e) { var shareAdd = new ShareAdd(textBoxUrl.Text, NameUser()); Log.Info("ShareAdd start"); shareAdd.Show(); }