我安装了VS2012,然后我更新到VS2012 Update 2,所以我的Visual Studio版本将是11.0.60315.01 Update 2.
但现在我想恢复到11.0.50727.1 RTMREL.如何卸载更新?
我正在使用VS 2012.
我添加了对我的WPF项目的服务引用,但是当我更改了我的服务和更新的服务引用时,我的Reference.svcmap - > Reference.CS文件将是空白的,我不能再使用引用了.我可以在项目中看到它,但我无法使用.
我的服务参考设置是: -

Reference.cs文件
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.17929
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
Run Code Online (Sandbox Code Playgroud) 我已经用NAnt成功构建了这个项目.
现在,如果我使用以下命令编译项目:
nant -D:build.defines=FAKE_AD_AUTH build
Run Code Online (Sandbox Code Playgroud)
我想运行应用程序,因为我知道我编译了项目FAKE_AD_AUTH.
那么我怎么知道这个项目是建造nant -D:build.defines=FAKE_AD_AUTH build还是仅建造nant build?
以下是视图:
<div class="editor-label">
Select Currency :
</div>
<div class="editor-field">
@Html.DropDownList("CurrencyId", new SelectList(ViewBag.CurrencyId, "Value", "Text"))
</div><div class="editor-label">
Select GameType :
</div>
<div class="editor-field">
@Html.DropDownList("GameTypeId", new SelectList(ViewBag.GameTypeId, "Value", "Text"), new { style = "width:100px" })
@Html.ValidationMessageFor(model => model.GameTypeId)
</div>
<div class="editor-label">
Select Category :
</div>
<div class="editor-field">
@Html.DropDownList("CategoryByGameType", Enumerable.Empty<SelectListItem>(), "Select Category")
@Html.ValidationMessageFor(model => model.CategoryId)
</div>
Run Code Online (Sandbox Code Playgroud)
以下是控制器: -
public ActionResult Create()
{
List<Currency> objCurrency = new List<Currency>();
objCurrency = db.Currencies.ToList();
List<SelectListItem> listItems = new List<SelectListItem>();
listItems.Add(new SelectListItem()
{
Value = "0",
Text = …Run Code Online (Sandbox Code Playgroud) 我绑定行与类.
在每个绑定行上我想要在单元格值的基础上更改单元格背面颜色.
<DataGrid x:Name="dtstandardview" BorderThickness="0" Height="429" Width="688" BorderBrush="Aqua" MouseLeftButtonDown="dtstandardview_MouseRightButtonUp_1"
GridLinesVisibility="None" MouseRightButtonUp="dtstandardview_MouseRightButtonUp_1"
VerticalScrollBarVisibility="Visible" AutoGenerateColumns="False" IsReadOnly="True"
CanUserDeleteRows="False" AlternationCount="2" CanUserResizeRows="False" Sorting="dtstandardview_Sorting_1"
Background="#DCDCDC" HeadersVisibility="Column" CanUserResizeColumns="False"
RowHeight="27" SelectionUnit="FullRow" CanUserAddRows="False" MinRowHeight="27" LoadingRow="dtstandardview_LoadingRow" LoadingRowDetails="dtstandardview_LoadingRowDetails" Loaded="dtstandardview_Loaded" Initialized="dtstandardview_Initialized" CellEditEnding="dtstandardview_CellEditEnding" AutoGeneratingColumn="dtstandardview_AutoGeneratingColumn" UnloadingRow="dtstandardview_UnloadingRow" UnloadingRowDetails="dtstandardview_UnloadingRowDetails" SelectionChanged="dtstandardview_SelectionChanged" >
<DataGrid.ItemContainerStyle>
<Style TargetType="DataGridRow">
<EventSetter Event="Selected" Handler="dataGridRowSelected"/>
</Style>
</DataGrid.ItemContainerStyle>
<DataGrid.Resources>
<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="#FF0000"/>
</DataGrid.Resources>
<DataGrid.CellStyle>
<Style TargetType="DataGridCell">
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="BorderBrush" Value="#cde0e5" />
<Setter Property="Background" Value="#cde0e5" />
</Trigger>
</Style.Triggers>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="FontSize" Value="12"/>
<Setter Property="FontFamily" Value="Arial"/>
<Setter Property="Foreground" Value="#404040"/>
<Setter Property="FontWeight" …Run Code Online (Sandbox Code Playgroud) 这是我获取数据的代码.
var list = (from u in _dbContext.Users
where u.IsActive
&& u.IsVisible
&& u.IsPuller.HasValue
&& u.IsPuller.Value
select new PartsPullerUsers
{
AvatarCroppedAbsolutePath = u.AvatarCroppedAbsolutePath,
Bio = u.Bio,
CreateDateTime = u.CreationDate,
Id = u.Id,
ModifieDateTime = u.LastModificationDate,
ReviewCount = u.ReviewsReceived.Count(review => review.IsActive && review.IsVisible),
UserName = u.UserName,
Locations = (from ul in _dbContext.UserLocationRelationships
join l in _dbContext.Locations on ul.LocationId equals l.Id
where ul.IsActive && ul.UserId == u.Id
select new PartsPullerLocation
{
LocationId = ul.LocationId,
Name = ul.Location.Name
}),
Rating = u.GetPullerRating()
}); …Run Code Online (Sandbox Code Playgroud) 我有一个Page Call Page 1,第一页有1个Controls - label - Button
点击按钮我将打开新的Wpf窗口并且在那里有一个按钮,在该按钮的点击我想要更改第一个窗口标签文本.
LobbyStandardPopupView objLobbyStandardPopupView = new LobbyStandardPopupView();
objLobbyStandardPopupView.Show();
LobbyStandardView objLobbyStandardView = new LobbyStandardView();
objLobbyStandardView.Ring_Game.Text = "Hello";
Run Code Online (Sandbox Code Playgroud)
我尝试创建对象并更改控件值但不受影响.
c# ×4
wpf ×3
.net ×1
asp.net-mvc ×1
jquery ×1
linq ×1
nant ×1
razor ×1
wcf ×1
web-services ×1
wpf-controls ×1
wpfdatagrid ×1
xml ×1