コード例 #1
0
        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("בחר דייר");
            }
        }
コード例 #2
0
        private void add_tenant_Click(object sender, RoutedEventArgs e)
        {
            new_tenant tenant = new new_tenant();

            tenant.Show();
        }