我正在尝试编写.NET程序,因此我可以执行Dts pacakge,但是我找不到Microsoft.SqlServer.ManagedDTS.dll引用,因此我可以使用命名空间Microsoft.SqlServer.Dts.Runtime.
但是我在我的开发机器上安装了SQL Server 2008 Developer Edition以及Visual Studio 2008和2010.因此它应该在那里,我错过了什么?
非常感谢
麦克风
我来自一个非常熟练的Windows .NET背景,我正在使用Monotouch,我对如何回应事件感到非常困惑.我喜欢保持简单,我已经阅读了Montouch教程并查看了示例.我对此感到困惑的是如何回应事件.
假设我有一个带有UIButton和UILabel的ViewController.当我按下按钮时,我想将标签改为"点击按钮".
因此我可以做以下事情:
public override void ViewDidLoad () {
base.ViewDidLoad ();
this.btnClickMe.TouchUpInside += (sender, e) => {
this.lblOutput.Text = "Clicked @ " + DateTime.Now.ToShortTimeString ();
}
Run Code Online (Sandbox Code Playgroud)
或者,我可以使用这种方法,我认为在响应按下NavigationBars等按钮时,我会更好地服务于我.在IB中我按Ctrl-拖动来创建动作.然后我将[Action]方法移动到我的.cs文件并执行以下操作.
[Action ("btnClickMe_TouchUpInside:")]
public void btnClickMe_TouchUpInside (NSObject sender)
{
this.lblOutput.Text = "Clicked @ " + DateTime.Now.ToShortTimeString ();
}
Run Code Online (Sandbox Code Playgroud)
是什么让我更困惑的是一些UI组件有一个.delegate成员.我可以添加一个事件.
什么是最好的方法,还是我完全糊涂了?如果是这样,有一个链接,你可以指导我到哪里,我可以学习最佳实践,正确的方法等.
非常感谢
麦克风
我在使用NSArray填充UITableView时遇到问题.我确定我做的事情很糟糕,但我无法理解.当我尝试做一个简单的计数时,我得到了EXC_BAD_ACCESS,我知道这是因为我试图从一个不存在的内存位置读取.
我的.h文件有这个:
@interface AnalysisViewController : UITableViewController
{
StatsData *statsData;
NSArray *SectionCellLabels;
}
Run Code Online (Sandbox Code Playgroud)
我的.m有这个:
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
NSLog(@"AnalysisViewController:viewWillAppear");
// Step 1 - Create the labels array
SectionCellLabels = [NSArray arrayWithObjects:@"analysis 1",
@"analysis 2",
@"analysis 3", nil];
}
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
NSLog(@"AnalysisViewController:cellForRowAtIndexPath");
// Check for reusable cell first, use that if it exists
UITableViewCell *cell = [tableView
dequeueReusableCellWithIdentifier:@"UITableViewCell"];
// If there is no reusable cell of this type, create a new one
if (!cell) {
cell …
Run Code Online (Sandbox Code Playgroud) 我的Monotouch iPhone应用程序中有一个UIViewController,我想在UITableViewStyle.Grouped中设置背景.但是,当我使用下面的代码时,它返回黑屏.
this.View.BackgroundColor = UIColor.GroupTableViewBackgroundColor; // Black screen
this.View.BackgroundColor = UIColor.Red; // Works
Run Code Online (Sandbox Code Playgroud)
我在ViewWillAppear方法中调用它们.如果我注释掉GroupTable,那么背景将设置为红色.当我注释掉第二行时,我得到的只是黑屏.
有人知道为什么吗?如果你不在UITableViewController中,你能不能调用UIColor.GroupTableViewBackgroundColor吗?
谢谢
麦克风
我的任务是在一位同事离开后查看Oracle数据库,我想知道他是否将索引创建为B-Tree或Bitmap.不幸的是我找不到会告诉我这个的SQL.
我希望这是我的愚蠢 - 任何人都可以帮忙吗?