Exemplo n.º 1
0
        public static MessageBoxResult ShowMsgBox(string strContent, string strCaption = "GPAS")
        {
            UC_MessageBox dlg = new UC_MessageBox();

            dlg.StrCaption            = strCaption;
            dlg.StrContent            = strContent;
            dlg.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            dlg.ShowDialog();
            return(result);
        }
Exemplo n.º 2
0
        private void BtnDelete_Click(object sender, RoutedEventArgs e)
        {
            var vm = DataContext as RoiModelBase;

            if (CurCamID < 0)
            {
                UC_MessageBox.ShowMsgBox("请选择一个相机进行操作");
                return;
            }
            vm.Index = 2;// CurCamID;
            vm.OperateDelete.Execute(vm);
        }