Beispiel #1
0
 private void LimpiarDatos()
 {
     TxtPath.Clear();
     TxtPin.Clear();
     TxtInfoLlaveCriptografica.Clear();
     LblDragAndDrop.Visible     = true;
     LblTiempoTranscurrido.Text = "";
     TxtValorInicial.Clear();
     TxtValorFinal.Clear();
 }
Beispiel #2
0
        private bool ValidateInput()
        {
            if (string.Equals(SelectMediaType.SelectedValue, MediaType.Game))
            {
                if (string.IsNullOrEmpty(SelectGameSystem.SelectedValue))
                {
                    _presentation.ShowMessage(new MessageBoxInfo
                    {
                        Button  = MessageBoxButton.OK,
                        Caption = "Error",
                        Icon    = MessageBoxIcon.Error,
                        Text    = "Please select a game system."
                    });
                }
            }

            if (PanelPlayerPath.Visibility == Visibility.Visible)
            {
                if (string.IsNullOrEmpty(TxtPath.Text) || !File.Exists(TxtPath.Text))
                {
                    _presentation.ShowMessage(new MessageBoxInfo
                    {
                        Button  = MessageBoxButton.OK,
                        Caption = "Error",
                        Icon    = MessageBoxIcon.Error,
                        Text    = "Please enter a valid player path."
                    });

                    TxtPath.Focus();

                    return(false);
                }
            }

            if (PanelPlayerArgs.Visibility == Visibility.Visible)
            {
                if (string.IsNullOrEmpty(TxtArgs.Text))
                {
                    _presentation.ShowMessage(new MessageBoxInfo
                    {
                        Button  = MessageBoxButton.OK,
                        Caption = "Error",
                        Icon    = MessageBoxIcon.Error,
                        Text    = "Please enter command line arguments."
                    });

                    TxtArgs.Focus();

                    return(false);
                }
            }

            return(true);
        }
Beispiel #3
0
        private void Display(string[,] m, int rows, int cols)
        {
            TxtPath.Clear();
            TxtPath.Text  = "Original Grid" + Environment.NewLine;
            TxtPath.Text += Environment.NewLine;


            for (int r = 1; r <= rows; r++)
            {
                for (int c = 1; c <= cols; c++)
                {
                    TxtPath.Text += Convert.ToString(m[r, c]);
                }
                TxtPath.Text += Environment.NewLine;
            }

            TxtPath.Text += Environment.NewLine;
        }
        void ReleaseDesignerOutlets()
        {
            if (ChkEnabled != null)
            {
                ChkEnabled.Dispose();
                ChkEnabled = null;
            }

            if (CmdCancel != null)
            {
                CmdCancel.Dispose();
                CmdCancel = null;
            }

            if (CmdOk != null)
            {
                CmdOk.Dispose();
                CmdOk = null;
            }

            if (CmdPathBrowse != null)
            {
                CmdPathBrowse.Dispose();
                CmdPathBrowse = null;
            }

            if (LblSubtitle != null)
            {
                LblSubtitle.Dispose();
                LblSubtitle = null;
            }

            if (LblTitle != null)
            {
                LblTitle.Dispose();
                LblTitle = null;
            }

            if (TxtAuthPassPassword != null)
            {
                TxtAuthPassPassword.Dispose();
                TxtAuthPassPassword = null;
            }

            if (TxtAuthPassUsername != null)
            {
                TxtAuthPassUsername.Dispose();
                TxtAuthPassUsername = null;
            }

            if (TxtPath != null)
            {
                TxtPath.Dispose();
                TxtPath = null;
            }

            if (ChkSupportIPv6 != null)
            {
                ChkSupportIPv6.Dispose();
                ChkSupportIPv6 = null;
            }

            if (TxtTitle != null)
            {
                TxtTitle.Dispose();
                TxtTitle = null;
            }
        }