Example #1
0
        private void Them()
        {
            if (!tlbAdd.IsEnabled)
            {
                return;
            }
            Cursor = System.Windows.Input.Cursors.Wait;
            ucThietBiCT objThietBiCt = new ucThietBiCT();
            string      tittle       = DatabaseConstant.layNgonNguTieuDeForm(DatabaseConstant.Function.SMS_QUAN_LY_KET_NOI);
            Window      window       = new Window();

            window.Title = tittle;
            window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            window.Content = objThietBiCt;
            window.ShowDialog();
            Cursor = System.Windows.Input.Cursors.Arrow;
        }
Example #2
0
 private void Xem()
 {
     if (!tlbView.IsEnabled)
     {
         return;
     }
     Cursor = System.Windows.Input.Cursors.Wait;
     if (grdTinNhanDenDS.SelectedItems.Count == 1)
     {
         MODEM       modem        = grdTinNhanDenDS.SelectedItem as MODEM;
         ucThietBiCT objThietBiCt = new ucThietBiCT(modem);
         string      tittle       = DatabaseConstant.layNgonNguTieuDeForm(DatabaseConstant.Function.SMS_QUAN_LY_KET_NOI);
         Window      window       = new Window();
         window.Title = tittle;
         window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
         window.Content = objThietBiCt;
         window.ShowDialog();
     }
     else if (grdTinNhanDenDS.SelectedItems.Count > 1)
     {
         LMessage.ShowMessage("M.DungChung.KhongDuocChonNhieu", LMessage.MessageBoxType.Warning);
     }
     Cursor = System.Windows.Input.Cursors.Arrow;
 }