Ejemplo n.º 1
0
 /// <summary>
 /// "Convert SteamID format" button click event handler.
 /// </summary>
 /// <param name="sender">Sender object.</param>
 /// <param name="e">Event arguments.</param>
 private void MM_Convert_Click(object sender, EventArgs e)
 {
     try
     {
         foreach (DataGridViewCell Cell in MM_Table.SelectedCells)
         {
             string CellText = Cell.Value.ToString();
             if (Cell.Selected && Regex.IsMatch(CellText, Properties.Resources.MM_SteamID32Regex))
             {
                 Cell.Value = SteamConv.ConvSid32Sidv3(CellText);
             }
             else
             {
                 if (MM_Table.SelectedCells.Count == 1)
                 {
                     MessageBox.Show(AppStrings.MM_ConvRest, Properties.Resources.AppName, MessageBoxButtons.OK, MessageBoxIcon.Warning);
                 }
             }
         }
     }
     catch (Exception Ex)
     {
         Logger.Warn(Ex);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// "Show profile page" button click event handler.
 /// </summary>
 /// <param name="sender">Sender object.</param>
 /// <param name="e">Event arguments.</param>
 private void MM_Steam_Click(object sender, EventArgs e)
 {
     try
     {
         if (MM_Table.Rows[MM_Table.CurrentRow.Index].Cells[MM_Table.CurrentCell.ColumnIndex].Value != null)
         {
             string Value = MM_Table.Rows[MM_Table.CurrentRow.Index].Cells[MM_Table.CurrentCell.ColumnIndex].Value.ToString();
             Platform.OpenWebPage(String.Format(Properties.Resources.MM_CommunityURL, Regex.IsMatch(Value, Properties.Resources.MM_SteamID32Regex) ? SteamConv.ConvSid32Sid64(Value) : SteamConv.ConvSidv3Sid64(Value)));
         }
     }
     catch (Exception Ex)
     {
         Logger.Warn(Ex);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// "Show profile page" button click event handler.
 /// </summary>
 /// <param name="sender">Sender object.</param>
 /// <param name="e">Event arguments.</param>
 private void SD_Follow_Click(object sender, EventArgs e)
 {
     try
     {
         Platform.OpenWebPage(String.Format(Properties.Resources.MM_CommunityURL, SteamConv.ConvSidv3Sid64(SD_IDSel.Text)));
     }
     catch (Exception Ex)
     {
         Logger.Warn(Ex, DebugStrings.AppDbgExUrlStmSel);
     }
 }