Example #1
0
 private void objRecord_OmaePostUpdateClicked(Object sender)
 {
     OmaeRecord objRecord = (OmaeRecord)sender;
     if (_objMode == OmaeMode.Character)
     {
         frmOmaeUpload frmUpload = new frmOmaeUpload(txtUserName.Text, _lstCharacterTypes, objRecord.CharacterType, objRecord.CharacterID, objRecord.Description);
         frmUpload.ShowDialog(this);
     }
     if (_objMode == OmaeMode.Data)
     {
         frmOmaeUploadData frmUpload = new frmOmaeUploadData(txtUserName.Text, objRecord.CharacterID, objRecord.Description, objRecord.CharacterName);
         frmUpload.ShowDialog(this);
     }
     if (_objMode == OmaeMode.Sheets)
     {
         frmOmaeUploadSheet frmUpload = new frmOmaeUploadSheet(txtUserName.Text, objRecord.CharacterID, objRecord.Description, objRecord.CharacterName);
         frmUpload.ShowDialog(this);
     }
 }
Example #2
0
        private void cmdUpload_Click(object sender, EventArgs e)
        {
            if (!_blnLoggedIn)
            {
                MessageBox.Show(LanguageManager.Instance.GetString("Message_Omae_MustLogin"), LanguageManager.Instance.GetString("MessageTitle_Omae_OmaeLogin"), MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            OmaeMode objMode = OmaeMode.Character;

            switch (cboCharacterTypes.SelectedValue.ToString())
            {
            case "data":
                objMode = OmaeMode.Data;
                break;

            case "sheets":
                objMode = OmaeMode.Sheets;
                break;

            default:
                objMode = OmaeMode.Character;
                break;
            }

            if (objMode == OmaeMode.Character)
            {
                frmOmaeUpload frmUpload = new frmOmaeUpload(txtUserName.Text, _lstCharacterTypes, Convert.ToInt32(cboCharacterTypes.SelectedValue));
                frmUpload.ShowDialog(this);
            }
            else if (objMode == OmaeMode.Data)
            {
                frmOmaeUploadData frmUpload = new frmOmaeUploadData(txtUserName.Text);
                frmUpload.ShowDialog(this);
            }
            else if (objMode == OmaeMode.Sheets)
            {
                frmOmaeUploadSheet frmUpload = new frmOmaeUploadSheet(txtUserName.Text);
                frmUpload.ShowDialog(this);
            }
            return;
        }
Example #3
0
 private void objRecord_OmaePostUpdateClicked(Object sender)
 {
     OmaeRecord objRecord = (OmaeRecord)sender;
     if (_objMode == OmaeMode.Character)
     {
         frmOmaeUpload frmUpload = new frmOmaeUpload(txtUserName.Text, _lstCharacterTypes, objRecord.CharacterType, objRecord.CharacterID, objRecord.Description);
         frmUpload.ShowDialog(this);
     }
     if (_objMode == OmaeMode.Data)
     {
         frmOmaeUploadData frmUpload = new frmOmaeUploadData(txtUserName.Text, objRecord.CharacterID, objRecord.Description, objRecord.CharacterName);
         frmUpload.ShowDialog(this);
     }
     if (_objMode == OmaeMode.Sheets)
     {
         frmOmaeUploadSheet frmUpload = new frmOmaeUploadSheet(txtUserName.Text, objRecord.CharacterID, objRecord.Description, objRecord.CharacterName);
         frmUpload.ShowDialog(this);
     }
 }
Example #4
0
        private void cmdUpload_Click(object sender, EventArgs e)
        {
            if (!_blnLoggedIn)
            {
                MessageBox.Show(LanguageManager.Instance.GetString("Message_Omae_MustLogin"), LanguageManager.Instance.GetString("MessageTitle_Omae_OmaeLogin"), MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            OmaeMode objMode = OmaeMode.Character;
            switch (cboCharacterTypes.SelectedValue.ToString())
            {
                case "data":
                    objMode = OmaeMode.Data;
                    break;
                case "sheets":
                    objMode = OmaeMode.Sheets;
                    break;
                default:
                    objMode = OmaeMode.Character;
                    break;
            }

            if (objMode == OmaeMode.Character)
            {
                frmOmaeUpload frmUpload = new frmOmaeUpload(txtUserName.Text, _lstCharacterTypes, Convert.ToInt32(cboCharacterTypes.SelectedValue));
                frmUpload.ShowDialog(this);
            }
            else if (objMode == OmaeMode.Data)
            {
                frmOmaeUploadData frmUpload = new frmOmaeUploadData(txtUserName.Text);
                frmUpload.ShowDialog(this);
            }
            else if (objMode == OmaeMode.Sheets)
            {
                frmOmaeUploadSheet frmUpload = new frmOmaeUploadSheet(txtUserName.Text);
                frmUpload.ShowDialog(this);
            }
            return;
        }