private void open_tenant_Click(object sender, RoutedEventArgs e) { //Add option for save only changes,and not whole tenant all over again with same name ... new_tenant tenant; if (tenantslvDataBinding.SelectedItem != null) { tenant = new new_tenant(tenantslvDataBinding.SelectedItem.ToString()); tenant.Show(); } else { MessageBox.Show("בחר דייר"); } }
private void add_tenant_Click(object sender, RoutedEventArgs e) { new_tenant tenant = new new_tenant(); tenant.Show(); }