当前位置: 首页>>代码示例>>C#>>正文


C# Microsoft.ManagementConsole.ReportProgress方法代码示例

本文整理汇总了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);
 }
开发者ID:JamesTryand,项目名称:NetSqlAzMan,代码行数:7,代码来源:StoreGroupsScopeNode.cs

示例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();*/
 }
开发者ID:JamesTryand,项目名称:NetSqlAzMan,代码行数:26,代码来源:AuthorizationsListView.cs

示例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);
 }
开发者ID:JamesTryand,项目名称:NetSqlAzMan,代码行数:7,代码来源:ApplicationScopeNode.cs

示例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();*/
 }
开发者ID:JamesTryand,项目名称:NetSqlAzMan,代码行数:35,代码来源:StoreGroupListView.cs

示例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();*/
 }
开发者ID:JamesTryand,项目名称:NetSqlAzMan,代码行数:9,代码来源:AuthorizationsListView.cs

示例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.
     }
 }
开发者ID:JamesTryand,项目名称:NetSqlAzMan,代码行数:13,代码来源:ScopeNodeBase.cs

示例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();*/
 }
开发者ID:JamesTryand,项目名称:NetSqlAzMan,代码行数:18,代码来源:StoreGroupsAndApplicationsListView.cs

示例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();*/
 }
开发者ID:JamesTryand,项目名称:NetSqlAzMan,代码行数:23,代码来源:ItemMembersListView.cs


注:本文中的Microsoft.ManagementConsole.ReportProgress方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。