Fix bugs: Misc_ImportFolder without window title; AddressBook toolbar button not auto selected

This commit is contained in:
Zihan Chen
2020-02-04 21:45:41 -08:00
parent 2318b15b3e
commit 69cb6f49a8
4 changed files with 22 additions and 7 deletions
@@ -177,22 +177,22 @@
</ToolstripCommand>
<ToolstripCommand ref.Name="commandBigIcon" Image-uri="res://Images/BigIcon">
<ev.Executed-eval><![CDATA[listViewContacts.SetView(BigIcon);]]></ev.Executed-eval>
<ev.Executed-eval><![CDATA[{listViewContacts.SetView(BigIcon); self.ClearViewSelection(); commandBigIcon.Selected = true; }]]></ev.Executed-eval>
</ToolstripCommand>
<ToolstripCommand ref.Name="commandSmallIcon" Image-uri="res://Images/SmallIcon">
<ev.Executed-eval><![CDATA[listViewContacts.SetView(SmallIcon);]]></ev.Executed-eval>
<ev.Executed-eval><![CDATA[{listViewContacts.SetView(SmallIcon); self.ClearViewSelection(); commandSmallIcon.Selected = true; }]]></ev.Executed-eval>
</ToolstripCommand>
<ToolstripCommand ref.Name="commandList" Image-uri="res://Images/List">
<ev.Executed-eval><![CDATA[listViewContacts.SetView(ListViewView::List);]]></ev.Executed-eval>
<ev.Executed-eval><![CDATA[{listViewContacts.SetView(ListViewView::List); self.ClearViewSelection(); commandList.Selected = true; }]]></ev.Executed-eval>
</ToolstripCommand>
<ToolstripCommand ref.Name="commandDetail" Image-uri="res://Images/Detail" Selected="true">
<ev.Executed-eval><![CDATA[listViewContacts.SetView(Detail);]]></ev.Executed-eval>
<ev.Executed-eval><![CDATA[{listViewContacts.SetView(Detail); self.ClearViewSelection(); commandDetail.Selected = true; }]]></ev.Executed-eval>
</ToolstripCommand>
<ToolstripCommand ref.Name="commandTile" Image-uri="res://Images/Tile">
<ev.Executed-eval><![CDATA[listViewContacts.SetView(Tile);]]></ev.Executed-eval>
<ev.Executed-eval><![CDATA[{listViewContacts.SetView(Tile); self.ClearViewSelection(); commandTile.Selected = true; }]]></ev.Executed-eval>
</ToolstripCommand>
<ToolstripCommand ref.Name="commandInformation" Image-uri="res://Images/Information">
<ev.Executed-eval><![CDATA[listViewContacts.SetView(Information);]]></ev.Executed-eval>
<ev.Executed-eval><![CDATA[{listViewContacts.SetView(Information); self.ClearViewSelection(); commandInformation.Selected = true; }]]></ev.Executed-eval>
</ToolstripCommand>
<Table CellPadding="5" AlignmentToParent="left:0 top:0 right:0 bottom:0" MinSizeLimitation="LimitToElementAndChildren">
@@ -264,6 +264,8 @@ Closures
void __vwsnf23_Demo_demo_MainWindowConstructor___vwsn_demo_MainWindow_Initialize_::operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const
{
::vl::__vwsn::This(__vwsnthis_0->listViewContacts)->SetView(::vl::presentation::controls::ListViewView::BigIcon);
::vl::__vwsn::This(__vwsnthis_0->self)->ClearViewSelection();
::vl::__vwsn::This(__vwsnthis_0->commandBigIcon)->SetSelected(true);
}
//-------------------------------------------------------------------
@@ -276,6 +278,8 @@ Closures
void __vwsnf24_Demo_demo_MainWindowConstructor___vwsn_demo_MainWindow_Initialize_::operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const
{
::vl::__vwsn::This(__vwsnthis_0->listViewContacts)->SetView(::vl::presentation::controls::ListViewView::SmallIcon);
::vl::__vwsn::This(__vwsnthis_0->self)->ClearViewSelection();
::vl::__vwsn::This(__vwsnthis_0->commandSmallIcon)->SetSelected(true);
}
//-------------------------------------------------------------------
@@ -288,6 +292,8 @@ Closures
void __vwsnf25_Demo_demo_MainWindowConstructor___vwsn_demo_MainWindow_Initialize_::operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const
{
::vl::__vwsn::This(__vwsnthis_0->listViewContacts)->SetView(::vl::presentation::controls::ListViewView::List);
::vl::__vwsn::This(__vwsnthis_0->self)->ClearViewSelection();
::vl::__vwsn::This(__vwsnthis_0->commandList)->SetSelected(true);
}
//-------------------------------------------------------------------
@@ -300,6 +306,8 @@ Closures
void __vwsnf26_Demo_demo_MainWindowConstructor___vwsn_demo_MainWindow_Initialize_::operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const
{
::vl::__vwsn::This(__vwsnthis_0->listViewContacts)->SetView(::vl::presentation::controls::ListViewView::Detail);
::vl::__vwsn::This(__vwsnthis_0->self)->ClearViewSelection();
::vl::__vwsn::This(__vwsnthis_0->commandDetail)->SetSelected(true);
}
//-------------------------------------------------------------------
@@ -312,6 +320,8 @@ Closures
void __vwsnf27_Demo_demo_MainWindowConstructor___vwsn_demo_MainWindow_Initialize_::operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const
{
::vl::__vwsn::This(__vwsnthis_0->listViewContacts)->SetView(::vl::presentation::controls::ListViewView::Tile);
::vl::__vwsn::This(__vwsnthis_0->self)->ClearViewSelection();
::vl::__vwsn::This(__vwsnthis_0->commandTile)->SetSelected(true);
}
//-------------------------------------------------------------------
@@ -324,6 +334,8 @@ Closures
void __vwsnf28_Demo_demo_MainWindowConstructor___vwsn_demo_MainWindow_Initialize_::operator()(::vl::presentation::compositions::GuiGraphicsComposition* sender, ::vl::presentation::compositions::GuiEventArgs* arguments) const
{
::vl::__vwsn::This(__vwsnthis_0->listViewContacts)->SetView(::vl::presentation::controls::ListViewView::Information);
::vl::__vwsn::This(__vwsnthis_0->self)->ClearViewSelection();
::vl::__vwsn::This(__vwsnthis_0->commandInformation)->SetSelected(true);
}
//-------------------------------------------------------------------