如何从本地数据库加载数据? [英] How load data from a local database ?

查看:73
本文介绍了如何从本地数据库加载数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我提出申请,使您可以将信息存储在日期数据库中.

hello,
i make an apply that give you the possibility to store info in a datebase.

使用此信息,我需要做一个math.atan(x/y)

with this info i need to do a math.atan(x/y)

我的问题是以下问题:

我已经存储了我的数据,我看到了它们进入数据列表(我使用xaml文件加载了数据)

i have store my data i see them into the datalist (i load the data with the xaml file)

我到达要删除数据,但我无法利用这些数据.

i arrive to delete the data, i have trouble to exploit this data.

我有一个按钮"GO",我想当我坚持使用存储为此选定数据的数据时.我想将它们存储在:

i have a button "GO" and i want when i clic on it that use the data stored for this selected data. i want store them in a :

公共双A;

公共双B;

为使我能申请,我使用了教程"todolistbox"

for make my apply i have use the tutorial "todolistbox"

<phone:PhoneApplicationPage.Resources>
        <DataTemplate x:Key="ToDoListBoxItemTemplate">

            <Grid HorizontalAlignment="Stretch" Width="420">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />

                </Grid.ColumnDefinitions>

                <TextBlock 
                    Text="{Binding ItemName}" 
                    FontSize="{StaticResource PhoneFontSizeLarge}" 
                    VerticalAlignment="Top" Margin="101,24,0,0" Width="236" HorizontalAlignment="Left" Height="49"/>

                <TextBlock 
                    Text="{Binding ItemDesc}" 
                    FontSize="{StaticResource PhoneFontSizeNormal}" 
                    VerticalAlignment="Top" Margin="101,73,0,0" HorizontalAlignment="Left" Height="59" Width="236"/>


                <Button
                    x:Name="deleteTaskButton"
                    BorderThickness="0"                                                                  
                    Margin="337,0,103,30"
                    Click="deleteTaskButton_Click">

                    <Image 
                    Source="/Images/appbar.delete.rest.png"
                    Height="57"
                    Width="57"/>

                </Button>
                <Button
                    x:Name="GOTaskButton"
                    BorderThickness="0"                                                                  
                    Margin="0,0,449,30"
                    Click="GOTaskButton_Click">

                    <Image 
                    Source="/Images/viseur.png"
                    Height="57"
                    Width="57"/>

                </Button>

            </Grid>
        </DataTemplate>
    </phone:PhoneApplicationPage.Resources>


当我按一下GO按钮时,如何在CS文件中将ItemName,ItemDesc转换为String或Double?


how do i get the ItemName , ItemDesc into String or Double in my CS files when i clic the GO button ?

推荐答案


这篇关于如何从本地数据库加载数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆