Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static string GetPassword() | |
| { | |
| string password = ""; | |
| do | |
| { | |
| ConsoleKeyInfo key = Console.ReadKey(true); | |
| // Backspace Should Not Work | |
| if (key.Key != ConsoleKey.Backspace && key.Key != ConsoleKey.Enter) | |
| { | |
| password += key.KeyChar; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.ComponentModel; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| using System.Windows.Forms; | |
| public class SuggestTextBox : TextBox | |
| { | |
| #region fields and properties |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Add reference to using Microsoft.VisualStudio.Tools.Applications.ServerDocument | |
| using Microsoft.VisualStudio.Tools.Applications; | |
| private static void RemoveCustomiation(string filePath, int attempt) | |
| { | |
| int maxAttempt = 10; | |
| try | |
| { | |
| ServerDocument.RemoveCustomization(filePath); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Deployment.Application; | |
| private void RibbonCapitalGains_Load(object sender, RibbonUIEventArgs e) | |
| { | |
| if (ApplicationDeployment.IsNetworkDeployed) | |
| { | |
| var version = ApplicationDeployment.CurrentDeployment.CurrentVersion; | |
| buttonAbout.Label = $"v{version.ToString(3)}"; | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private bool MouseDown { get; set; } | |
| private System.Drawing.Point LastLocation { get; set; } | |
| private void labelGetId_MouseDown(object sender, MouseEventArgs e) | |
| { | |
| MouseDown = true; | |
| LastLocation = e.Location; | |
| } | |
| private void labelGetId_MouseMove(object sender, MouseEventArgs e) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void ShowExceptionMessage(Exception exception) | |
| { | |
| MessageBox.Show(exception.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); | |
| } |
NewerOlder