parent
e8d6b4f247
commit
90b0c0e0da
|
@ -43,7 +43,8 @@ namespace BandagedBD {
|
|||
//
|
||||
// panelDock
|
||||
//
|
||||
this.panelDock.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
this.panelDock.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.panelDock.BackColor = System.Drawing.Color.Transparent;
|
||||
this.panelDock.Location = new System.Drawing.Point(12, 96);
|
||||
|
@ -152,8 +153,7 @@ namespace BandagedBD {
|
|||
//
|
||||
// FormMain
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
||||
this.BackColor = global::BandagedBD.Properties.Settings.Default.PrimaryBackground;
|
||||
this.ClientSize = new System.Drawing.Size(776, 501);
|
||||
this.Controls.Add(this.linkLabel1);
|
||||
|
|
|
@ -37,6 +37,8 @@
|
|||
//
|
||||
this.cbShouldRestart.Anchor = System.Windows.Forms.AnchorStyles.None;
|
||||
this.cbShouldRestart.AutoSize = true;
|
||||
this.cbShouldRestart.BoxBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(60)))), ((int)(((byte)(60)))));
|
||||
this.cbShouldRestart.BoxForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(62)))), ((int)(((byte)(130)))), ((int)(((byte)(229)))));
|
||||
this.cbShouldRestart.Checked = true;
|
||||
this.cbShouldRestart.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.cbShouldRestart.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
|
|
|
@ -12,16 +12,21 @@ namespace BandagedBD {
|
|||
|
||||
public class Utilities {
|
||||
public static readonly Regex _matcher = new Regex(@"[0-9]+\.[0-9]+\.[0-9]+");
|
||||
public static string StablePath => $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\\Discord";
|
||||
public static bool StableExists() => Directory.Exists(StablePath);
|
||||
public static string CanaryPath => $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\\DiscordCanary";
|
||||
public static bool CanaryExists() => Directory.Exists(CanaryPath);
|
||||
public static string PtbPath => $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\\DiscordPTB";
|
||||
public static bool PtbExists() => Directory.Exists(PtbPath);
|
||||
public static string LADPath(string append) => $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\\{append}";
|
||||
public static string PDPath(string append) => $"{Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)}\\{Environment.UserName}\\{append}";
|
||||
|
||||
public static string CurrentStablePath = StableExists() ? StablePath : null;
|
||||
public static string CurrentCanaryPath = CanaryExists() ? CanaryPath : null;
|
||||
public static string CurrentPtbPath = PtbExists() ? PtbPath : null;
|
||||
public static string StablePath => LADPath("Discord");
|
||||
public static string StablePathPD => PDPath("Discord");
|
||||
|
||||
public static string CanaryPath => LADPath("DiscordCanary");
|
||||
public static string CanaryPathPD => PDPath("DiscordCanary");
|
||||
|
||||
public static string PtbPath => LADPath("DiscordPTB");
|
||||
public static string PtbPathPD => PDPath("DiscordPTB");
|
||||
|
||||
public static string CurrentStablePath = Directory.Exists(StablePathPD) ? StablePathPD : Directory.Exists(StablePath) ? StablePath : null;
|
||||
public static string CurrentCanaryPath = Directory.Exists(CanaryPathPD) ? CanaryPathPD : Directory.Exists(CanaryPath) ? CanaryPath : null;
|
||||
public static string CurrentPtbPath = Directory.Exists(PtbPathPD) ? PtbPathPD : Directory.Exists(PtbPath) ? PtbPath : null;
|
||||
|
||||
public static void OpenProcess(string url) {
|
||||
Process.Start(url);
|
||||
|
|
Loading…
Reference in New Issue