/// <summary>
        /// Annuler les modifications sur la grille de données.
        /// </summary>
        /// <param name="obj"></param>
        private void CancelDelegate(object obj)
        {
            if (IsLoading == Visibility.Visible)
            {
                ShowMessageBox.Show(TYPE_WINDOW_BOX.AVERTISSEMENT, messLoading, "");
            }
            else
            {
                ThreadPool.QueueUserWorkItem(async =>
                {
                    var dispatcher = Application.Current.Dispatcher;
                    dispatcher.Invoke(() =>
                    {
                        IsLoading = Visibility.Visible;
                    });

                    if (BLL != null)
                    {
                        BLL.RollBack();
                        ListSource = new ObservableCollection <IDTO>(BLL.SelectAllBusiness());
                    }

                    dispatcher.Invoke(() =>
                    {
                        IsLoading = Visibility.Hidden;
                    });
                });
            }
        }
Exemplo n.º 2
0
Arquivo: App.cs Projeto: shantiw/mini
        private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
        {
            Exception ex = e.ExceptionObject as Exception;

            Log.Error(ex);
            ShowMessageBox.Show(ex.Message, this.MainWindow);
        }
        private void btn_Print_Click(object sender, EventArgs e)
        {
            string strProcedureName = string.Format("{0}.{1}", className, MethodBase.GetCurrentMethod().Name);

            WriteLog.Instance.WriteBeginSplitter(strProcedureName);
            try
            {
                List <OrderInfo> data = this.grdCtrProductionInfo.DataSource as List <OrderInfo>;
                if (data == null || data.Count == 0)
                {
                    return;
                }
                MemoryStream ms;
                ms = new MemoryStream(Properties.Resources.双环_铸造产品标识卡);
                _report.Load(ms);
                foreach (OrderInfo item in data)
                {
                    if (item.IsPrint)
                    {
                        PrintOrderInfo(item);
                    }
                }
            }
            catch (Exception error)
            {
                WriteLog.Instance.Write(error.Message, strProcedureName);
                ShowMessageBox.Show(error.Message, "系统信息", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            finally
            {
                WriteLog.Instance.WriteEndSplitter(strProcedureName);
            }
        }
Exemplo n.º 4
0
        private void App_DispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e)
        {
            Exception ex = e.Exception;

            ShowMessageBox.Show(ex.Message, this.MainWindow);

            e.Handled = true;
        }
Exemplo n.º 5
0
        private void btnSwitch_Click(object sender, EventArgs e)
        {
            ProductionLineForStationBound prdtLine = null;

            if (cboProductionLines.SelectedItem == null)
            {
                return;
            }
            else
            {
                prdtLine = cboProductionLines.SelectedItem as ProductionLineForStationBound;
            }

            string strProcedureName =
                string.Format(
                    "{0}.{1}",
                    className,
                    MethodBase.GetCurrentMethod().Name);

            WriteLog.Instance.WriteBeginSplitter(strProcedureName);
            try
            {
                WriteLog.Instance.Write("切换选定的生产线", strProcedureName);

                int    errCode = 0;
                string errText = "";

                IRAPMDMClient.Instance.usp_SwitchToProductionLine(
                    IRAPUser.Instance.CommunityID,
                    prdtLine.HostName,
                    prdtLine.T134LeafID,
                    IRAPUser.Instance.SysLogID,
                    out errCode,
                    out errText);
                WriteLog.Instance.Write(string.Format("({0}){1}", errCode, errText), strProcedureName);
                if (errCode == 0)
                {
                    lblCurrentPLineName.Text = prdtLine.ToString();
                    btnSwitch.Enabled        = false;
                    ShowMessageBox.Show(errText, Text, MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
                }
                else
                {
                    ShowMessageBox.Show(errText, Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
            catch (Exception error)
            {
                WriteLog.Instance.Write(error.Message, strProcedureName);
                ShowMessageBox.Show(error.Message, Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            finally
            {
                WriteLog.Instance.WriteEndSplitter(strProcedureName);
            }
        }
Exemplo n.º 6
0
        private void edtUserIDCardNo_Validating(object sender, CancelEventArgs e)
        {
            userInfo = new UserInfo();

            string strProcedureName =
                string.Format(
                    "{0}.{1}",
                    className,
                    MethodBase.GetCurrentMethod().Name);

            WriteLog.Instance.WriteBeginSplitter(strProcedureName);
            try
            {
                if (edtUserIDCardNo.Text.Trim() == "")
                {
                    WriteLog.Instance.Write("没有得到用户卡号。", strProcedureName);
                    return;
                }

                int    errCode = 0;
                string errText = "";

                IRAPUserClient.Instance.sfn_GetInfo_UserFromIDCard(
                    IRAPUser.Instance.CommunityID,
                    edtUserIDCardNo.Text,
                    ref userInfo,
                    out errCode,
                    out errText);
                WriteLog.Instance.Write(string.Format("({0}){1}", errCode, errText), strProcedureName);

                if (errCode != 0)
                {
                    ShowMessageBox.Show(errText, Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
                    edtUserIDCardNo.Text = "";
                    return;
                }
                else
                {
                    rgpSatisfactory.Focus();
                }
            }
            catch (Exception error)
            {
                WriteLog.Instance.Write(error.Message, strProcedureName);
                ShowMessageBox.Show(error.Message, Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
                edtUserIDCardNo.Text = "";
                return;
            }
            finally
            {
                this.Refresh();
                WriteLog.Instance.WriteEndSplitter(strProcedureName);
            }
        }
 /// <summary>
 /// Export CSV de la grille de données. Attention le DTO en question doit implémenter l'interface ISerializableCSV
 /// </summary>
 /// <param name="obj"></param>
 private void ExportCSVDelegate(object obj)
 {
     if (IsLoading == Visibility.Visible)
     {
         ShowMessageBox.Show(TYPE_WINDOW_BOX.AVERTISSEMENT, messLoading, "");
     }
     else
     {
         ParamExportCSV          p = Client.GetParam();
         ReadAndWriteCSV         readAndWriteCSV = new ReadAndWriteCSV(p.Path, p.Separateur);
         List <ISerializableCSV> list            = new List <ISerializableCSV>(ListSource.Cast <ISerializableCSV>());
         readAndWriteCSV.WriteCSV(p.GetHeaderBody(), list);
     }
 }
        /// <summary>
        /// Permet de supprimer un enregistrement de la grille de données.
        /// </summary>
        /// <param name="obj"></param>
        private void FonctionEraseDelegate(object obj)
        {
            if (IsLoading == Visibility.Visible)
            {
                ShowMessageBox.Show(TYPE_WINDOW_BOX.AVERTISSEMENT, messLoading, "");
            }
            else
            {
                this.Mode = MODE_COMPOSANT_REFERENTIIEL.ERASE;

                BLL.Remove(CurrentElement as IDTO);
                ListSource.Remove(CurrentElement as IDTO);

                this.Mode = MODE_COMPOSANT_REFERENTIIEL.CONSULT;
            }
        }
        /// <summary>
        /// Permet d'ajouter un enregistrement à la grille de données.
        /// Dans un premier temps, la grille est vérouillé tant que l'utilisateur ne valide pas la saisie de ce nouvel enregistrement.
        /// </summary>
        /// <param name="obj"></param>
        private void FonctionAddDelegate(object obj)
        {
            if (IsLoading == Visibility.Visible)
            {
                ShowMessageBox.Show(TYPE_WINDOW_BOX.AVERTISSEMENT, messLoading, "");
            }
            else
            {
                bool flag = true;
                if (this.Mode == MODE_COMPOSANT_REFERENTIIEL.CONSULT)
                {
                    IDTO dto = BLL.CreateElement();

                    // L'observer est appelé pour mettre à jour les champs que le développeur souhaite
                    // Ex : Champs de traca (Date heure creation, modif, ...)
                    if (Client != null)
                    {
                        Client.AfterCreate(ref dto);
                    }

                    ListSource.Add(dto);
                    CurrentElement = dto;
                }
                else
                {
                    if (this.Mode == MODE_COMPOSANT_REFERENTIIEL.ADD)
                    {
                        foreach (ChampGenerique current in this.ControlChamps.CollectionChamps)
                        {
                            if (!current.IsValid)
                            {
                                flag = false;
                                break;
                            }
                        }
                        if (!flag)
                        {
                            ShowMessageBox.Show(TYPE_WINDOW_BOX.AVERTISSEMENT, "", "La validation a échoué. Certains champs sont invalides par rapport aux contraintes définies dans la configuration.");
                        }
                    }
                }
                this.Mode = (flag ? ((this.Mode == MODE_COMPOSANT_REFERENTIIEL.CONSULT) ? MODE_COMPOSANT_REFERENTIIEL.ADD : MODE_COMPOSANT_REFERENTIIEL.CONSULT) : this.Mode);
            }
        }
        /// <summary>
        /// Import CSV de données. Attention le DTO en question doit implémenter l'interface ISerializableCSV
        /// </summary>
        /// <param name="obj"></param>
        private void ImportCSVDelegate(object obj)
        {
            List <ISerializableCSV> list;

            if (IsLoading == Visibility.Visible)
            {
                ShowMessageBox.Show(TYPE_WINDOW_BOX.AVERTISSEMENT, messLoading, "");
            }
            else
            {
                ThreadPool.QueueUserWorkItem(async =>
                {
                    var dispatcher = Application.Current.Dispatcher;
                    dispatcher.Invoke(() =>
                    {
                        IsLoading = Visibility.Visible;
                    });

                    OpenFileDialog openFileDialog  = new OpenFileDialog();
                    openFileDialog.Filter          = "CSV files (*.csv)|*.csv";
                    openFileDialog.CheckFileExists = true;
                    openFileDialog.CheckPathExists = true;
                    openFileDialog.Multiselect     = false;
                    openFileDialog.Title           = String.Format("{0}", "Import CSV File");

                    if (openFileDialog.ShowDialog() == true)
                    {
                        ReadAndWriteCSV readAndWriteCSV = new ReadAndWriteCSV(openFileDialog.FileName, ";");
                        ReadAndWriteCSV.encoding        = System.Text.Encoding.Default;
                        Type type = BLL.CreateElement().GetType();

                        list       = readAndWriteCSV.ReadCSV(type);
                        ListSource = new ObservableCollection <IDTO>(ListSource.Concat <ISerializableCSV>(list).Cast <IDTO>());
                    }

                    dispatcher.Invoke(() =>
                    {
                        IsLoading = Visibility.Hidden;
                    });
                });
            }
        }
 /// <summary>
 /// Permet de femer le composant référentiel.
 /// </summary>
 /// <param name="obj"></param>
 private void CloseDelegate(object obj)
 {
     if (IsLoading == Visibility.Visible)
     {
         ShowMessageBox.Show(TYPE_WINDOW_BOX.AVERTISSEMENT, messLoading, "");
     }
     else
     {
         if (ShowMessageBox.Show(
                 TYPE_WINDOW_BOX.CONFIRM,
                 @"Vous allez fermer cet écran référentiel. Toutes les modifications non enregistrées seront perdues.",
                 @"") == TYPE_RESULT_BOX.OK)
         {
             ReferentielControl _ref = obj as ReferentielControl;
             if (_ref != null)
             {
                 _ref.Observer.CloseReferentielComposant(_ref);
             }
         }
     }
 }
Exemplo n.º 12
0
        /// <summary>
        /// 当前站点所绑定的产线
        /// </summary>
        /// <returns></returns>
        protected ProductionLineForStationBound GetBoundAndonHost()
        {
            string strProcedureName =
                string.Format(
                    "{0}.{1}",
                    className,
                    MethodBase.GetCurrentMethod().Name);

            WriteLog.Instance.WriteBeginSplitter(strProcedureName);
            try
            {
                int    errCode = 0;
                string errText = "";
                List <ProductionLineForStationBound> lines = new List <ProductionLineForStationBound>();

                IRAPMDMClient.Instance.ufn_GetList_StationBoundProductionLines(
                    IRAPUser.Instance.CommunityID,
                    IRAPUser.Instance.SysLogID,
                    ref lines,
                    out errCode,
                    out errText);
                WriteLog.Instance.Write(
                    string.Format("({0}){1}", errCode, errText),
                    strProcedureName);
                if (errCode == 0)
                {
                    foreach (ProductionLineForStationBound line in lines)
                    {
                        if (line.BoundToAndonHost)
                        {
                            WriteLog.Instance.Write(
                                string.Format(
                                    "当前站点绑定产线:({0}){1}",
                                    line.T134LeafID,
                                    line.T134NodeName),
                                strProcedureName);
                            return(line);
                        }
                    }

                    WriteLog.Instance.Write("当前站点没有绑定任何产线!", strProcedureName);
                    return(null);
                }
                else
                {
                    ShowMessageBox.Show(
                        errText,
                        this.Text,
                        MessageBoxButtons.OK,
                        MessageBoxIcon.Error);
                    return(null);
                }
            }
            catch (Exception error)
            {
                WriteLog.Instance.Write(error.Message, strProcedureName);
                ShowMessageBox.Show(error.Message, Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
                return(null);
            }
            finally
            {
                WriteLog.Instance.WriteEndSplitter(strProcedureName);
            }
        }
Exemplo n.º 13
0
 protected void ShowException(Exception exception)
 {
     ShowMessageBox.Show(exception, View);
 }
        /// <summary>
        /// Valider les modifications sur la grille de données.
        /// Peut générer un rapport d'erreur s'il y a des problèmes d'insertion en base de données.
        /// FK , PK, ou autres contraintes.
        /// </summary>
        /// <param name="obj"></param>
        private void ValidDelegate(object obj)
        {
            if (IsLoading == Visibility.Visible)
            {
                ShowMessageBox.Show(TYPE_WINDOW_BOX.AVERTISSEMENT, messLoading, "");
            }
            else
            {
                ThreadPool.QueueUserWorkItem(async =>
                {
                    // Activation de la progress bar
                    var dispatcher = Application.Current.Dispatcher;
                    dispatcher.Invoke(() =>
                    {
                        IsLoading = Visibility.Visible;
                    });

                    // Validation
                    IBuilder builder          = null;
                    RapportErreurView rapport = null;
                    try
                    {
                        BLL.SaveChanges(ListSource.ToList <IDTO>());
                    }
                    catch (DbEntityValidationException)
                    {
                        List <DbEntityValidationResult> list = BLL.GetValidationErrors().ToList <DbEntityValidationResult>();
                        if (list.Count != 0)
                        {
                            // Construction du builder pour le rapport
                            builder = new BuilderRapportValidation();
                            builder.BuildPart(list);
                        }
                    }
                    catch (DbUpdateException ex)
                    {
                        // Construction du builder pour le rapport
                        builder = new BuilderRapportOracleException();
                        builder.BuildPart(ex);
                    }

                    // Affichage du rapport
                    dispatcher.Invoke(() =>
                    {
                        if (builder != null)
                        {
                            rapport = new RapportErreurView(builder.GetResult().ConvertAll <Rapport>((IBuilt input) => input as Rapport))
                            {
                                BasPage = "Voulez-vous annuler les modifications ?"
                            };
                            rapport.ShowDialog();
                        }
                    });

                    // Si l'utilisateur veut rafraichir.
                    if (rapport != null && rapport.Refresh)
                    {
                        BLL.RollBack();
                        // Lancer le refresh des données + alimenter la liste listSource.
                        ListSource = new ObservableCollection <IDTO>(BLL.SelectAllBusiness());
                    }

                    // Désactivation de la progress bar
                    dispatcher.Invoke(() =>
                    {
                        IsLoading = Visibility.Hidden;
                    });
                });
            }
        }
Exemplo n.º 15
0
        private void edtIDCardNo_KeyDown(object sender, KeyEventArgs e)
        {
            string strProcedureName =
                string.Format(
                    "{0}.{1}",
                    className,
                    MethodBase.GetCurrentMethod().Name);

            if (e.KeyCode == Keys.Return)
            {
                if (edtIDCardNo.Text.Trim() != "")
                {
                    WriteLog.Instance.WriteBeginSplitter(strProcedureName);
                    try
                    {
                        int    errCode = 0;
                        string errText = "";

                        IRAPUserClient.Instance.sfn_GetInfo_UserFromIDCard(
                            IRAPUser.Instance.CommunityID,
                            edtIDCardNo.Text.Trim(),
                            ref staffInfo,
                            out errCode,
                            out errText);
                        WriteLog.Instance.Write(string.Format("({0}){1}", errCode, errText), strProcedureName);

                        if (errCode != 0)
                        {
                            ShowMessageBox.Show(errText, Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
                            edtIDCardNo.Text = "";
                            edtIDCardNo.Focus();
                            return;
                        }
                        else
                        {
                            // 获取呼叫该用户的安灯事件列表
                            andonEvents.Clear();
                            try
                            {
                                IRAPFVSClient.Instance.ufn_GetList_AndonEventsToForward(
                                    IRAPUser.Instance.CommunityID,
                                    staffInfo.UserCode,
                                    IRAPUser.Instance.SysLogID,
                                    ref andonEvents,
                                    out errCode,
                                    out errText);
                                WriteLog.Instance.Write(string.Format("({0}){1}", errCode, errText), strProcedureName);

                                if (errCode == 0)
                                {
                                    if (andonEvents.Count > 0)
                                    {
                                        cboAndonEvents.Properties.Items.Clear();
                                        foreach (AndonEventInfo andonEvent in andonEvents)
                                        {
                                            cboAndonEvents.Properties.Items.Add(andonEvent);
                                            Application.DoEvents();
                                        }
                                        cboAndonEvents.SelectedIndex = -1;
                                        grdStaffs.DataSource         = null;

                                        gpcAndonEvents.Text    = string.Format("呼叫{0}的安灯事件", staffInfo.UserName);
                                        tcMain.SelectedTabPage = tpAndonEvents;
                                    }
                                    else
                                    {
                                        MessageBox.Show("您没有已经响应的安灯事件!", Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                                        edtIDCardNo.Text = "";
                                        edtIDCardNo.Focus();
                                    }
                                }
                                else
                                {
                                    MessageBox.Show(errText, Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
                                    edtIDCardNo.Text = "";
                                    edtIDCardNo.Focus();
                                    return;
                                }
                            }
                            catch (Exception error)
                            {
                                WriteLog.Instance.Write(error.Message, strProcedureName);
                                MessageBox.Show(error.Message, Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
                                grdStaffs.DataSource = null;

                                edtIDCardNo.Text = "";
                                edtIDCardNo.Focus();
                            }
                        }
                    }
                    finally
                    {
                        WriteLog.Instance.WriteEndSplitter(strProcedureName);
                    }
                }
            }
        }
Exemplo n.º 16
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            if (edtPartNumber.Text.Trim() == "")
            {
                edtPartNumber.Focus();
            }
            if (cboCustomers.SelectedItem == null)
            {
                cboCustomers.Focus();
            }
            if (cboAddresses.SelectedItem == null)
            {
                cboAddresses.Focus();
            }
            if (edtTransferQuantity.Text == "")
            {
                edtTransferQuantity.Focus();
            }
            if (edtProductDate.EditValue == null)
            {
                edtProductDate.Focus();
            }

            string strProcedureName =
                string.Format(
                    "{0}.{1}",
                    className,
                    MethodBase.GetCurrentMethod().Name);

            WriteLog.Instance.WriteBeginSplitter(strProcedureName);
            try
            {
                #region 数据校验
                int    errCode = 0;
                string errText = "";
                object tag     = null;
                IRAPSCESClient.Instance.usp_PokaYoke_PallPrint(
                    IRAPUser.Instance.CommunityID,
                    edtPartNumber.Text.Trim(),
                    ((CustomerOfAProduction)cboCustomers.SelectedItem).T105Code,
                    ((AvailableSite)cboAddresses.SelectedItem).T172Code,
                    edtTransferQuantity.Text.Trim(),
                    edtProductDate.DateTime.ToString("yyyy-MM-dd HH:mm:ss"),
                    IRAPUser.Instance.SysLogID,
                    out errCode,
                    out errText);
                WriteLog.Instance.Write(
                    string.Format("({0}){1}", errCode, errText),
                    strProcedureName);

                if (errCode != 0)
                {
                    if (
                        ShowMessageBox.Show(
                            errText,
                            "数据校验时发现问题",
                            MessageBoxButtons.OKCancel,
                            MessageBoxIcon.Question,
                            MessageBoxDefaultButton.Button2) == DialogResult.Cancel)
                    {
                        edtTransferQuantity.Focus();
                        return;
                    }
                }

                #endregion

                #region 保存
                busUDFForm.SetStrParameterValue(edtPartNumber.Text, 1);
                busUDFForm.SetStrParameterValue(((CustomerOfAProduction)cboCustomers.SelectedItem).T105Code, 2);
                busUDFForm.SetStrParameterValue(((AvailableSite)cboAddresses.SelectedItem).T172Code, 3);
                busUDFForm.SetStrParameterValue(edtTransferQuantity.Text, 4);
                busUDFForm.SetStrParameterValue(edtProductDate.DateTime.ToString("yyyy-MM-dd HH:mm:ss"), 5);
                busUDFForm.SetStrParameterValue(edtCopies.Value.ToString(), 6);
                busUDFForm.SetStrParameterValue(edtTempPKGQuantity.Text, 7);

                busUDFForm.SaveOLTPUDFFormDataWithoutFactIDAndTransactNo(0, 0, null, null);
                WriteLog.Instance.Write(
                    string.Format("({0}){1}", busUDFForm.ErrorCode, busUDFForm.ErrorMessage),
                    strProcedureName);
                xucIRAPListView.WriteLog(
                    busUDFForm.ErrorCode,
                    busUDFForm.ErrorMessage,
                    DateTime.Now);

                if (busUDFForm.ErrorCode == 0)
                {
                    edtPartNumber.Text = "";
                    cboCustomers.Properties.Items.Clear();
                    cboCustomers.SelectedItem = null;
                    cboAddresses.Properties.Items.Clear();
                    cboAddresses.SelectedItem = null;
                    edtTransferQuantity.Text  = "";
                    edtProductDate.EditValue  = null;
                    edtTempPKGQuantity.Text   = "";

                    WriteLog.Instance.Write(
                        string.Format("Output={0}", busUDFForm.OutputStr),
                        strProcedureName);
                    if (busUDFForm.OutputStr != "")
                    {
                        try
                        {
                            Actions.UDFActions.DoActions(
                                busUDFForm.OutputStr,
                                null,
                                ref tag);
                        }
                        catch (Exception error)
                        {
                            WriteLog.Instance.Write(
                                string.Format("错误信息:{0}。跟踪堆栈:{1}。",
                                              error.Message,
                                              error.StackTrace),
                                strProcedureName);
                            xucIRAPListView.WriteLog(
                                -1,
                                string.Format(
                                    "执行输出指令时发生错误:[{0}]",
                                    error.Message),
                                DateTime.Now);
                        }
                    }

                    edtPartNumber.Focus();
                }
                else
                {
                    edtTransferQuantity.Text = "";
                    edtProductDate.EditValue = null;
                    edtTempPKGQuantity.Text  = "";

                    edtTransferQuantity.Focus();
                }
                #endregion
            }
            catch (Exception error)
            {
                WriteLog.Instance.Write(error.Message, strProcedureName);
                WriteLog.Instance.Write(error.StackTrace, strProcedureName);
                xucIRAPListView.WriteLog(-1, error.Message, DateTime.Now);

                edtTransferQuantity.Text = "";
                edtProductDate.EditValue = null;
                edtTempPKGQuantity.Text  = "";

                edtTransferQuantity.Focus();
            }
            finally
            {
                WriteLog.Instance.WriteEndSplitter(strProcedureName);
            }
        }
Exemplo n.º 17
0
 protected MessageBoxResult ShowMessage(string messageBoxText)
 {
     return(ShowMessageBox.Show(messageBoxText, View));
 }
Exemplo n.º 18
0
 protected MessageBoxResult ShowMessage(string messageBoxText, MessageBoxButton button, MessageBoxImage icon)
 {
     return(ShowMessageBox.Show(messageBoxText, button, icon, View));
 }
Exemplo n.º 19
0
 protected MessageBoxResult ShowMessage(string messageBoxText, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult, MessageBoxOptions options)
 {
     return(ShowMessageBox.Show(messageBoxText, button, icon, defaultResult, options, View));
 }
Exemplo n.º 20
0
 protected void ShowMessage(string message)
 {
     ShowMessageBox.Show(message, View);
 }