소스 검색

替换提示窗口

章政 7 년 전
부모
커밋
8cc985d074
2개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      UAS_DeviceMonitor/CustomerControl/PagingControl/PageControl.cs
  2. 0 2
      UAS_DeviceMonitor/Main.cs

+ 2 - 2
UAS_DeviceMonitor/CustomerControl/PagingControl/PageControl.cs

@@ -58,7 +58,7 @@ namespace UAS_DeviceMonitor.CustomerControl.PagingControl
                 case "GoFormerPage":
                     if (currentpage == 1)
                     {
-                        MessageBox.Show("当前已经是第一页");
+                        XtraMessageBox.Show("当前已经是第一页", "提示");
                         return;
                     }
                     CurrentPage.Text = (currentpage - 1).ToString();
@@ -67,7 +67,7 @@ namespace UAS_DeviceMonitor.CustomerControl.PagingControl
                 case "GoNextPage":
                     if (currentpage.ToString() == PageCount.Text)
                     {
-                        MessageBox.Show("当前已经是最后一页");
+                        XtraMessageBox.Show("当前已经是最后一页", "提示");
                         return;
                     }
                     CurrentPage.Text = (currentpage + 1).ToString();

+ 0 - 2
UAS_DeviceMonitor/Main.cs

@@ -27,8 +27,6 @@ namespace UAS_DeviceMonitor
             GridViewPollSetting.RowCellStyle += GridViewPollSetting_RowCellStyle;
         }
 
-  
-
         private void Main_Load(object sender, EventArgs e)
         {
             //设备列表