本文整理汇总了C#中Microsoft.ManagementConsole.ReportProgress方法的典型用法代码示例。如果您正苦于以下问题:C# Microsoft.ManagementConsole.ReportProgress方法的具体用法?C# Microsoft.ManagementConsole.ReportProgress怎么用?C# Microsoft.ManagementConsole.ReportProgress使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Microsoft.ManagementConsole
的用法示例。
在下文中一共展示了Microsoft.ManagementConsole.ReportProgress方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnExpandFromLoad
protected override bool OnExpandFromLoad(MMC.SyncStatus status)
{
status.ReportProgress(50, 100, Globalization.MultilanguageResource.GetString("Refreshing_Msg10"));
this.Render();
status.Complete(Globalization.MultilanguageResource.GetString("Done_Msg10"), true);
return base.OnExpandFromLoad(status);
}
示例2: OnInitialize
protected override void OnInitialize(MMC.AsyncStatus status)
{
base.OnInitialize(status);
status.Title = Globalization.MultilanguageResource.GetString("Refreshing_Msg10");
status.ReportProgress(50, 100, Globalization.MultilanguageResource.GetString("Refreshing_Msg10"));
/*Application.DoEvents();*/
base.OnInitialize(status);
this.Columns.Clear();
this.Columns[0].Title = Globalization.MultilanguageResource.GetString("ColumnHeader_Name");
this.Columns[0].SetWidth(250);
this.Columns.AddRange(
new MMC.MmcListViewColumn[] {
new MMC.MmcListViewColumn(Globalization.MultilanguageResource.GetString("ColumnHeader_AuthorizationType"),150),
new MMC.MmcListViewColumn(Globalization.MultilanguageResource.GetString("ColumnHeader_WhereDefined"),100),
new MMC.MmcListViewColumn(Globalization.MultilanguageResource.GetString("ColumnHeader_Owner"),250),
new MMC.MmcListViewColumn(Globalization.MultilanguageResource.GetString("ColumnHeader_ValidFrom"), 180),
new MMC.MmcListViewColumn(Globalization.MultilanguageResource.GetString("ColumnHeader_ValidTo"), 180),
new MMC.MmcListViewColumn("Sid",300)});
this.Mode = MMC.MmcListViewMode.Report;
this.Refresh();
ItemAuthorizationScopeNode itSN = this.ScopeNode as ItemAuthorizationScopeNode;
if (itSN != null)
itSN.ScopeNodeChanged += new ScopeNodeChangedHandler(AuthorizationsListView_ScopeNodeChanged);
status.Complete(Globalization.MultilanguageResource.GetString("RefreshComplete_Msg10"), true);
/*Application.DoEvents();*/
}
示例3: OnExpand
protected override void OnExpand(MMC.AsyncStatus status)
{
status.ReportProgress(50, 100, Globalization.MultilanguageResource.GetString("Expanding_Msg10"));
this.Render();
status.Complete("Done.", true);
base.OnExpand(status);
}
示例4: OnInitialize
protected override void OnInitialize(MMC.AsyncStatus status)
{
base.OnInitialize(status);
status.Title = Globalization.MultilanguageResource.GetString("Refreshing_Msg10");
status.ReportProgress(50, 100, Globalization.MultilanguageResource.GetString("Refreshing_Msg10"));
/*Application.DoEvents();*/
base.OnInitialize(status);
this.Columns.Clear();
if (((StoreGroupScopeNode)this.ScopeNode).StoreGroup.GroupType == GroupType.Basic)
{
this.Columns[0].Title = Globalization.MultilanguageResource.GetString("ColumnHeader_Name");
this.Columns[0].SetWidth(200);
this.Columns.AddRange(
new MMC.MmcListViewColumn[] {
new MMC.MmcListViewColumn(Globalization.MultilanguageResource.GetString("ColumnHeader_WhereDefined"),100),
new MMC.MmcListViewColumn(Globalization.MultilanguageResource.GetString("ColumnHeader_MemberNonMember"), 150),
new MMC.MmcListViewColumn("Sid", 300)});
}
else
{
this.Columns[0].Title = Globalization.MultilanguageResource.GetString("ColumnHeader_Name");
this.Columns[0].SetWidth(200);
this.Columns.AddRange(
new MMC.MmcListViewColumn[] {
new MMC.MmcListViewColumn(Globalization.MultilanguageResource.GetString("ColumnHeader_Description"),250),
new MMC.MmcListViewColumn(Globalization.MultilanguageResource.GetString("ColumnHeader_LDAPQuery"), 400)});
}
this.Mode = MMC.MmcListViewMode.Report;
this.Refresh();
StoreGroupScopeNode sgSN = this.ScopeNode as StoreGroupScopeNode;
if (sgSN != null)
sgSN.ScopeNodeChanged += new ScopeNodeChangedHandler(StoreNodeListView_ScopeNodeChanged);
status.Complete(Globalization.MultilanguageResource.GetString("RefreshComplete_Msg10"), true);
/*Application.DoEvents();*/
}
示例5: OnRefresh
protected override void OnRefresh(MMC.AsyncStatus status)
{
status.ReportProgress(50, 100, Globalization.MultilanguageResource.GetString("Refreshing_Msg10"));
base.OnRefresh(status);
//Children
this.Refresh();
status.Complete(Globalization.MultilanguageResource.GetString("RefreshComplete_Msg10"), true);
/*Application.DoEvents();*/
}
示例6: OnRefresh
protected override void OnRefresh(MMC.AsyncStatus status)
{
try
{
status.ReportProgress(50, 100, "");
this.NotifyChanged();
/*Application.DoEvents();*/
}
catch
{
//ignore ... because viewDescription List can be shutting down.
}
}
示例7: OnInitialize
protected override void OnInitialize(MMC.AsyncStatus status)
{
base.OnInitialize(status);
status.Title = Globalization.MultilanguageResource.GetString("Refreshing_Msg10");
status.ReportProgress(50, 100, Globalization.MultilanguageResource.GetString("Refreshing_Msg10"));
/*Application.DoEvents();*/
base.OnInitialize(status);
this.Columns.Clear();
this.Columns[0].Title = Globalization.MultilanguageResource.GetString("ColumnHeader_ApplicationName");
this.Columns[0].SetWidth(200);
this.Columns.AddRange(
new MMC.MmcListViewColumn[] {
new MMC.MmcListViewColumn(Globalization.MultilanguageResource.GetString("ColumnHeader_Description"),300),
new MMC.MmcListViewColumn(Globalization.MultilanguageResource.GetString("ColumnHeader_ApplicationID"), 100)});
this.Mode = MMC.MmcListViewMode.Report;
status.Complete(Globalization.MultilanguageResource.GetString("RefreshComplete_Msg10"), true);
/*Application.DoEvents();*/
}
示例8: OnInitialize
protected override void OnInitialize(MMC.AsyncStatus status)
{
base.OnInitialize(status);
status.Title = Globalization.MultilanguageResource.GetString("Refreshing_Msg10");
status.ReportProgress(50, 100, Globalization.MultilanguageResource.GetString("Refreshing_Msg10"));
/*Application.DoEvents();*/
base.OnInitialize(status);
this.Columns.Clear();
this.Columns[0].Title = Globalization.MultilanguageResource.GetString("ColumnHeader_MemberName");
this.Columns[0].SetWidth(200);
this.Columns.AddRange(
new MMC.MmcListViewColumn[] {
new MMC.MmcListViewColumn(Globalization.MultilanguageResource.GetString("ColumnHeader_Type"),100),
new MMC.MmcListViewColumn(Globalization.MultilanguageResource.GetString("ColumnHeader_Description"),300),
new MMC.MmcListViewColumn(Globalization.MultilanguageResource.GetString("ColumnHeader_ItemID"), 100)});
this.Mode = MMC.MmcListViewMode.Report;
this.Refresh();
ItemDefinitionScopeNode idSN = this.ScopeNode as ItemDefinitionScopeNode;
if (idSN != null)
idSN.ScopeNodeChanged += new ScopeNodeChangedHandler(ItemMembersListView_ScopeNodeChanged);
status.Complete(Globalization.MultilanguageResource.GetString("RefreshComplete_Msg10"), true);
/*Application.DoEvents();*/
}