Post: Real bored. I'll make you something in PHP
07-25-2012, 08:50 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Got nothing to do, bored and what the hell might as well help a brother out. So what do you need done in PHP?
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked RuffRage for this useful post:

07-25-2012, 09:17 PM #2
Default Avatar
Brad
Guest
make an online text editor that you can download the txt file after :fa:

---------- Post added at 10:17 PM ---------- Previous post was at 10:16 PM ----------

Originally posted by RuffRage View Post
Got nothing to do, bored and what the hell might as well help a brother out. So what do you need done in PHP?

didn't quote
07-25-2012, 09:24 PM #3
Originally posted by Brad View Post
make an online text editor that you can download the txt file after :fa:

---------- Post added at 10:17 PM ---------- Previous post was at 10:16 PM ----------


didn't quote



In what way? wysiwyg?

Also, totally off topic but lol at:

    
// Type: ScreenSnapr.frmMain
// Assembly: ScreenSnapr, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// Assembly location: C:\Program Files (x86)\ScreenSnapr\ScreenSnapr.exe

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.IO;
using System.Media;
using System.Net;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading;
using System.Windows.Forms;

namespace ScreenSnapr
{
public class frmMain : Form
{
private static bool bHasRemoteConnection = true;
public static bool TrayOptionsVisible = false;
private bool bShowIntentError = true;
private int oldIconIndex = -1;
private const int GWL_EXSTYLE = -20;
private const int WS_EX_TOOLWINDOW = 128;
private const int WS_EX_APPWINDOW = 262144;
private SettingsRequest serverSettingsRequest;
private AuthRequest serverAuthRequest;
private Keys currentHotKey;
private Keys currentClipHotKey;
private SystemHotkey snapHotkey;
private SystemHotkey clipBoardHotkey;
private frmCapture captureForm;
private IconHelper iconHelper;
private TrayNotifications notifications;
private bool bAuthCompleted;
private Intent excecutingIntent;
private bool bLoadingComplete;
private bool bShouldShowNag;
private frmDropZone dz;
private IContainer components;
private Panel panelBottom;
private Panel panelTop;
private Panel panelMiddle;
private HiddenTabControl MainTabs;
private TabPage tpConfig;
private GroupBox gbAdvOpts;
public TextBox tbHotkey;
private Label lblHotkey;
public ComboBox cobImageType;
private Label lblImageType;
private GroupBox groupBox1;
public CheckBox cbEnableHUB;
public CheckBox cbPlaySounds;
public CheckBox cbShrinkURL;
public CheckBox cbRunAtLogin;
private TabPage tpServer;
private TabPage tpAccount;
private TabPage tpAbout;
private GroupBox gbUpdate;
private Label lblVersionNum;
private Label lblCurVersion;
public Button btnCheckForUpdates;
private GroupBox gbAbout;
private Button btnGetSupport;
private Label lblSep0;
private LinkLabel llblOpenSite;
private LinkLabel llblTwitter;
private Button btnOK;
private NotifyIcon TrayIcon;
private ContextMenu TrayOptions;
private MenuItem miHistoryActivate;
private MenuItem miOptions;
private MenuItem miClose;
private MenuItem menuItem3;
private ImageList IconList;
private GroupBox gbServerOpts;
private TextBox tbPort;
private Label lblFTPPort;
public Button btnTestFTP;
private Label lblFTPImageDir;
public RadioButton cbUseCustomServers;
public RadioButton cbUseSSServers;
public TextBox tbFTPImgDir;
private Label lblOutputURL;
private Label lblFTPPassword;
private Label lblFTPUsername;
private Label lblFTPHost;
public TextBox tbOutputURL;
public TextBox tbPassword;
public TextBox tbUsername;
public TextBox tbHost;
private HiddenTabControl AccountTabControl;
private TabPage tabPageRegisterAccount;
private GroupBox gbAccount;
private Label label2;
private LinkLabel llCreateAccount;
public Label lblRegister;
private Label lblPass;
private Label lblEmail;
public TextBox tbAccntPassword;
public TextBox tbAccntUsername;
private TabPage tabPageAccountInfo;
public Button btnLogin;
private LinkLabel llBuyPremium;
private LinkLabel llBuyFull;
public TextBox tbCliphotkey;
private Label label1;
private SSToolStrip MainMenuStrip;
private ToolStripButton tabBtnConfigure;
private ToolStripButton tabBtnServer;
private ToolStripButton tabBtnAccnt;
private ToolStripButton tabBtnAbout;
private Label label4;
private ComboBox cbHashPrefix;
private ComboBox cbHashLength;
private Label label3;
private GroupBox gbUpgrade;
public Button btnBuy;
private GroupBox groupBox3;
private Button btnLogout;
private LinkLabel lblAccountEmail;
public Button btnCP;
public CheckBox cbAllowDrag;

public static bool HasRemoteConnection
{
get
{
return frmMain.bHasRemoteConnection;
}
set
{
frmMain.bHasRemoteConnection = value;
}
}

protected override CreateParams CreateParams
{
get
{
CreateParams createParams = base.CreateParams;
if (!this.Visible)
createParams.ExStyle |= 128;
return createParams;
}
}

static frmMain()
{
}

public frmMain()
{
this.InitializeComponent();
this.LoadSettings();
this.notifications = new TrayNotifications(this.TrayIcon);
this.iconHelper = new IconHelper();
this.snapHotkey = new SystemHotkey();
this.snapHotkey.Pressed += new EventHandler(this.SnapHotkey_Pressed);
this.snapHotkey.RegisterHotkey((Keys) AppSettings.CapHotkey);
this.currentHotKey = (Keys) AppSettings.CapHotkey;
this.clipBoardHotkey = new SystemHotkey();
this.clipBoardHotkey.Pressed += new EventHandler(this.ClipDataHotkey_Pressed);
this.clipBoardHotkey.RegisterHotkey((Keys) AppSettings.ClipHotkey);
this.currentClipHotKey = (Keys) AppSettings.ClipHotkey;
this.captureForm = new frmCapture();
this.TrayIcon.ContextMenu = this.TrayOptions;
this.TrayIcon.Icon = this.iconHelper.GetByName("loading");
this.serverAuthRequest = new AuthRequest();
this.serverAuthRequest.RequestComplete += new EventHandler(this.serverAuthRequest_OnRequestComplete);
this.serverSettingsRequest = new SettingsRequest();
this.serverSettingsRequest.RequestComplete += new EventHandler(this.settingsRequest_OnRequestComplete);
int spinUpTime = 0;
string[] commandLineArgs = Environment.GetCommandLineArgs();
if (commandLineArgs.Length > 1 && !string.IsNullOrEmpty(commandLineArgs[1]) && commandLineArgs[1].Equals("/winstart"))
{
this.TrayIcon.Text = "Initializing...";
spinUpTime = 8000;
}
new Thread((ThreadStart) (() =>
{
Thread.Sleep(spinUpTime);
this.serverSettingsRequest.Request();
})).Start();
this.HideForm();
this.lblVersionNum.Text = Application.ProductVersion;
this.dz = new frmDropZone(this.TrayIcon);
this.dz.OnFileDropped += new frmDropZone.FileDropped(this.dz_OnFileDropped);
if (!AppSettings.AllowDragDrop)
return;
((Control) this.dz).Show();
}

private void ShowNag()
{
frmNag frmFirst = new frmNag();
frmFirst.FormClosing += (FormClosingEventHandler) ((ss, ee) =>
{
if (frmFirst.Action == frmNag.FirstRunAction.CREATE)
this.llCreateAccount_LinkClicked((object) null, (LinkLabelLinkClickedEventArgs) null);
else if (frmFirst.Action == frmNag.FirstRunAction.LOGIN)
this.Invoke((Delegate) (() =>
{
this.MainTabs.SelectedIndex = 2;
(this.MainMenuStrip.Items[0] as ToolStripButton).Checked = false;
(this.MainMenuStrip.Items[2] as ToolStripButton).Checked = true;
this.ShowForm();
}));
if (!AppSettings.FirstRun)
return;
this.notifications.ShowNotification("Welcome to ScreenSnapr", "Press Control + 1 to begin");
});
((Control) frmFirst).Show();
}

private void SnapHotkey_Pressed(object sender, EventArgs e)
{
if (!this.bAuthCompleted)
{
this.notifications.ShowNotification("ScreenSnapr", "ScreenSnapr is still loading, please wait...");
}
else
{
this.TrayIcon.Icon = this.iconHelper.GetByName("uploading.loading-0");
this.captureForm.PrepareForCapture();
if (this.captureForm.ShowDialog() == DialogResult.OK)
{
if (!AppSettings.UseHub)
{
this.StartIntent(!AppSettings.UseFTP ? (Intent) new HttpUploadIntent() : (Intent) new FTPUploadIntent(), this.captureForm.CapturedImage);
}
else
{
frmHUB frmHub = new frmHUB(this.captureForm.CapturedImage);
if (frmHub.ShowDialog() == DialogResult.OK)
this.StartIntent(frmHub.ChosenIntent, frmHub.FinalImage);
else
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
}
try
{
this.captureForm.CleanUp();
GC.Collect();
}
catch
{
}
}
else
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
AppSettings.FirstSnap = false;
}
}

private void ClipDataHotkey_Pressed(object sender, EventArgs e)
{
if (!this.bAuthCompleted)
{
this.notifications.ShowNotification("ScreenSnapr", "ScreenSnapr is still loading, please wait...");
}
else
{
this.TrayIcon.Icon = this.iconHelper.GetByName("uploading.loading-0");
Intent intent = !AppSettings.UseFTP ? (Intent) new HttpUploadIntent() : (Intent) new FTPUploadIntent();
if (Clipboard.ContainsImage())
intent.Image = Clipboard.GetImage();
else if (Clipboard.GetFileDropList().Count > 0)
{
if (Clipboard.GetFileDropList().Count > 1)
{
this.notifications.ShowNotification("Error", "ScreenSnapr currently only supports single file uploads, you have " + Clipboard.GetFileDropList().Count.ToString() + " files in your clipboard");
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
return;
}
else
{
string filename = Clipboard.GetFileDropList()[0];
if (!string.IsNullOrEmpty(filename))
{
try
{
intent.Image = Image.FromFile(filename);
}
catch
{
intent.Image = (Image) null;
}
}
}
}
else if (Clipboard.ContainsText())
{
Graphics graphics1 = this.CreateGraphics();
if (graphics1 != null)
{
SizeF sizeF = graphics1.MeasureString(Clipboard.GetText(), new Font("Verdana", 10f, FontStyle.Regular));
Bitmap bitmap = new Bitmap((int) sizeF.Width + 10, (int) sizeF.Height + 10);
Graphics graphics2 = Graphics.FromImage((Image) bitmap);
graphics2.FillRectangle((Brush) new SolidBrush(Color.White), new Rectangle(0, 0, (int) sizeF.Width, (int) sizeF.Height));
graphics2.SmoothingMode = SmoothingMode.AntiAlias;
graphics2.DrawString(Clipboard.GetText(), new Font("Verdana", 10f, FontStyle.Regular), SystemBrushes.WindowText, new PointF(10f, 10f), StringFormat.GenericTypographic);
intent.Image = (Image) bitmap;
}
else
intent.Image = (Image) null;
}
if (intent.Image == null)
{
this.notifications.ShowNotification("ScreenSnapr", "Invalid clipboard data, can not upload");
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
}
else
this.StartIntent(intent, intent.Image);
}
}

private void dz_OnFileDropped(string filePath)
{
if (!ScreenSnapr.Helpers.IsImageFile(filePath))
this.notifications.ShowNotification("ScreenSnapr", "Invalid file type...");
else if (!this.bAuthCompleted)
{
this.notifications.ShowNotification("ScreenSnapr", "ScreenSnapr is still loading, please wait...");
}
else
{
this.TrayIcon.Icon = this.iconHelper.GetByName("uploading.loading-0");
if (!AppSettings.UseHub)
{
Intent intent = !AppSettings.UseFTP ? (Intent) new HttpUploadIntent() : (Intent) new FTPUploadIntent();
(intent as UploadIntent).FileExt = Path.GetExtension(filePath);
this.StartIntent(intent, Image.FromFile(filePath, true));
}
else
{
frmHUB frmHub = new frmHUB(Image.FromFile(filePath, true));
if (frmHub.ShowDialog() == DialogResult.OK)
this.StartIntent(frmHub.ChosenIntent, frmHub.FinalImage);
else
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
}
}
}

private void StartIntent(Intent intent, Image img)
{
intent.Image = img;
this.excecutingIntent = intent;
if (intent.GetType() == typeof (HttpUploadIntent) && !frmMain.HasRemoteConnection)
{
this.notifications.ShowNotification("ScreenSnapr", "Unable to connect to connect to ScreenSnapr servers");
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
}
else
{
if (intent.GetType() == typeof (HttpUploadIntent) || intent.GetType() == typeof (FTPUploadIntent))
{
MenuItem menuItem = new MenuItem("Cancel...");
this.TrayOptions.MenuItems.Add(0, new MenuItem("-"));
this.TrayOptions.MenuItems.Add(0, menuItem);
menuItem.Click += (EventHandler) ((sss, eee) =>
{
this.bShowIntentError = false;
(this.excecutingIntent as UploadIntent).Cancel();
});
(this.excecutingIntent as UploadIntent).OnProgressChanged += (UploadIntent.ProgressChanged) (prog =>
{
this.TrayOptions.MenuItems[0].Text = string.Format("Cancel...{0}%", (object) prog);
int local_0 = (int) ((double) prog / 5.88000011444092);
if (local_0 > 16)
local_0 = 16;
if (local_0 < 0)
local_0 = 0;
if (this.oldIconIndex != -1 && local_0 == this.oldIconIndex)
return;
this.TrayIcon.Icon = this.iconHelper.GetByName(string.Format("uploading.loading-{0}", (object) local_0));
this.oldIconIndex = local_0;
});
}
intent.IntentComplete += (EventHandler) ((send, ev) =>
{
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
if (intent.Error != null)
{
if (this.bShowIntentError)
{
int temp_147 = (int) new frmError(this.TrayIcon)
{
Error = intent.Error
}.ShowDialog();
}
this.bShowIntentError = true;
}
if (intent.Error == null)
this.notifications.ShowNotification("ScreenSnapr", intent.NotificationMessage);
if (AppSettings.UseSounds && intent.AlertWithSound)
new SoundPlayer(Assembly.GetExecutingAssembly().GetManifestResourceStream("ScreenSnapr.blip.wav")).Play();
if (intent.GetType() != typeof (HttpUploadIntent) && intent.GetType() != typeof (FTPUploadIntent))
return;
this.TrayOptions.MenuItems.RemoveAt(0);
this.TrayOptions.MenuItems.RemoveAt(0);
if (intent.GetType() != typeof (HttpUploadIntent))
return;
this.RefreshHistory();
});
intent.Execute();
}
}

private void RefreshHistory()
{
if (this.TrayIcon.ContextMenu.MenuItems[0].Enabled)
this.TrayIcon.ContextMenu.MenuItems[0].MenuItems.Clear();
foreach (string str in HistoryRequest.HistoryItems)
this.TrayIcon.ContextMenu.MenuItems[0].MenuItems.Add((MenuItem) new HistoryMenuItem(Path.GetFileName(str), str));
}

private void serverAuthRequest_OnRequestComplete(object sender, EventArgs e)
{
this.bAuthCompleted = true;
this.LoadPremiumSettings();
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
if (AuthRequest.IsRegistered)
{
this.SetAccountInformationPanel(AppSettings.AppUserEmail, AuthRequest.UserType);
HistoryRequest historyRequest = new HistoryRequest();
historyRequest.RequestComplete += (EventHandler) ((xx, yy) => this.Invoke((Delegate) (() => this.RefreshHistory())));
historyRequest.Request();
}
else
{
if (!AppSettings.AllowedToNag || !this.bShouldShowNag)
return;
this.Invoke((Delegate) (() =>
{
this.bShouldShowNag = false;
this.ShowNag();
}));
}
}

private void settingsRequest_OnRequestComplete(object sender, EventArgs e)
{
this.TrayIcon.Text = "ScreenSnapr";
SettingsRequest settingsRequest = sender as SettingsRequest;
if (settingsRequest.Error != null)
{
this.TrayIcon.Icon = this.iconHelper.GetByName("error");
int num = (int) new frmError(this.TrayIcon)
{
Error = settingsRequest.Error
}.ShowDialog();
frmMain.bHasRemoteConnection = false;
}
if (frmMain.bHasRemoteConnection)
{
this.CheckForUpdate(false);
this.bShouldShowNag = true;
this.serverAuthRequest.SetCreds(AppSettings.AppUserEmail, AppSettings.AppUserPass);
this.serverAuthRequest.Request();
}
else
{
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
this.bAuthCompleted = true;
AuthRequest.IsPremium = true;
this.LoadPremiumSettings();
}
}

private void btnWebApp_Click(object sender, EventArgs e)
{
WebPages.WebApp();
}

private void llblTwitter_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
WebPages.Tweeter();
}

private void llblOpenSite_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
WebPages.MainSite();
}

private void llBuyFull_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
WebPages.BuyFull();
}

private void llBuyPremium_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
WebPages.BuyFull();
}

private void tabBtnConfigure_Click(object sender, EventArgs e)
{
this.MainTabs.SelectedIndex = 0;
}

private void tabBtnServer_Click(object sender, EventArgs e)
{
this.MainTabs.SelectedIndex = 1;
}

private void tabBtnAccnt_Click(object sender, EventArgs e)
{
this.MainTabs.SelectedIndex = 2;
}

private void tabBtnAbout_Click(object sender, EventArgs e)
{
this.MainTabs.SelectedIndex = 3;
}

private void lblAccountEmail_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
WebPages.WebApp();
}

private void cbHashPrefix_SelectedIndexChanged(object sender, EventArgs e)
{
if (this.cbHashPrefix.SelectedIndex != 2 || !this.bLoadingComplete)
return;
frmPrefixSelector frmPrefixSelector = new frmPrefixSelector(AppSettings.FTPPrefix);
if (frmPrefixSelector.ShowDialog() != DialogResult.OK)
return;
AppSettings.FTPPrefix = frmPrefixSelector.Result;
}

private void FTPOption_CheckChanged(object sender, EventArgs e)
{
this.ToggleFTPSettings();
}

private void tbHotKey_KeyDown(object sender, KeyEventArgs e)
{
this.tbHotkey.Text = new KeysConverter().ConvertToString((object) e.KeyData);
this.currentHotKey = e.KeyData;
e.Handled = true;
e.SuppressKeyPress = true;
}

private void ClipHotkey_KeyDown(object sender, KeyEventArgs e)
{
this.tbCliphotkey.Text = new KeysConverter().ConvertToString((object) e.KeyData);
this.currentClipHotKey = e.KeyData;
e.Handled = true;
e.SuppressKeyPress = true;
}

private void TrayIcon_MouseDoubleClick(object sender, MouseEventArgs e)
{
this.ShowForm();
}

private void btnTestFTP_Click(object sender, EventArgs e)
{
if (MessageBox.Show("ScreenSnapr is about to attempt to upload a test image. This make take a few seconds. Do you wish to continue?", "ScreenSnapr", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk) != DialogResult.Yes)
return;
this.SaveFTPSettings();
Intent ftpTestIntent = (Intent) new FTPUploadIntent();
ftpTestIntent.IntentComplete += (EventHandler) ((send, ev) =>
{
if (ftpTestIntent.Error != null)
{
int temp_41 = (int) new frmError(this.TrayIcon)
{
Error = ftpTestIntent.Error
}.ShowDialog();
}
else
{
int temp_31 = (int) MessageBox.Show("The FTP setup appears to be valid");
}
});
MemoryStream memoryStream = new MemoryStream(ScreenSnapr.Helpers.TestImage);
Image image = Image.FromStream((Stream) memoryStream);
memoryStream.Close();
ftpTestIntent.Image = image;
ftpTestIntent.Execute();
}

private void miOptions_Click(object sender, EventArgs e)
{
this.ShowForm();
}

private void miHistoryActivate_Click(object sender, EventArgs e)
{
WebPages.WebApp();
}

private void btnCheckForUpdates_Click(object sender, EventArgs e)
{
this.CheckForUpdate(true);
}

private void CheckForUpdate(bool alertUserToTheNeg = false)
{
if (!Updater.AppVersion.Equals(string.Empty) && !Updater.AppVersion.Equals(Application.ProductVersion))
{
int num1 = (int) new frmUpdate().ShowDialog();
}
else
{
if (!alertUserToTheNeg)
return;
int num2 = (int) MessageBox.Show("ScreenSnapr is up to date", "ScreenSnapr", MessageBoxButtons.OK);
}
}

private void btnGetSupport_Click(object sender, EventArgs e)
{
WebPages.GetSupport();
}

private void btnOK_Click(object sender, EventArgs e)
{
if (this.cbAllowDrag.Checked != AppSettings.AllowDragDrop)
{
if (this.cbAllowDrag.Checked)
((Control) this.dz).Show();
else
this.dz.Hide();
}
this.Close();
}

private void frmMain_FormClosing(object sender, FormClosingEventArgs e)
{
if (e == null || e.CloseReason != CloseReason.UserClosing)
return;
this.SaveSettings();
if (e != null)
e.Cancel = true;
this.HideForm();
}

private void contextMenuClose_Click(object sender, EventArgs e)
{
AppSettings.FirstRun = false;
this.SaveSettings();
Application.Exit();
this.dz.CleanUp();
}

public void SaveSettings()
{
AppSettings.UseFTP = this.cbUseCustomServers.Checked;
AppSettings.ShrinkURL = this.cbShrinkURL.Checked;
AppSettings.UseHub = this.cbEnableHUB.Checked;
AppSettings.UseSounds = this.cbPlaySounds.Checked;
AppSettings.AllowDragDrop = this.cbAllowDrag.Checked;
this.SaveFTPSettings();
try
{
AppSettings.FTPPort = int.Parse(this.tbPort.Text);
}
catch
{
AppSettings.FTPPort = 21;
}
AppSettings.ImageType = this.cobImageType.SelectedItem != null ? this.cobImageType.SelectedItem.ToString() : "JPG";
try
{
AppSettings.RunAtLogin = this.cbRunAtLogin.Checked;
}
catch
{
}
if (this.currentHotKey != (Keys) AppSettings.CapHotkey)
{
if (!this.snapHotkey.RegisterHotkey(this.currentHotKey))
{
int num = (int) MessageBox.Show("The Hotkey you selected failed to register. Please try another.", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
AppSettings.CapHotkey = (int) this.currentHotKey;
}
if (this.currentClipHotKey == (Keys) AppSettings.ClipHotkey)
return;
if (!this.clipBoardHotkey.RegisterHotkey(this.currentClipHotKey))
{
int num1 = (int) MessageBox.Show("The Hotkey you selected failed to register. Please try another.", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
AppSettings.ClipHotkey = (int) this.currentClipHotKey;
}

private void SaveFTPSettings()
{
AppSettings.FTPServer = this.tbHost.Text;
AppSettings.FTPUser = this.tbUsername.Text;
AppSettings.FTPPass = this.tbPassword.Text;
AppSettings.FTPOut = this.tbOutputURL.Text;
AppSettings.FTPDir = this.tbFTPImgDir.Text;
if (!string.IsNullOrEmpty(this.cbHashLength.SelectedItem.ToString()))
AppSettings.HashLength = Convert.ToInt32(this.cbHashLength.SelectedItem);
AppSettings.PrefixType = this.cbHashPrefix.SelectedIndex;
}

public void LoadSettings()
{
this.cbShrinkURL.Checked = AppSettings.ShrinkURL;
this.cbRunAtLogin.Checked = AppSettings.RunAtLogin;
this.cbPlaySounds.Checked = AppSettings.UseSounds;
this.cbEnableHUB.Checked = AppSettings.UseHub;
this.cobImageType.Text = AppSettings.ImageType;
this.cbAllowDrag.Checked = AppSettings.AllowDragDrop;
KeysConverter keysConverter = new KeysConverter();
int capHotkey = AppSettings.CapHotkey;
this.tbHotkey.Text = keysConverter.ConvertToString((object) capHotkey);
int clipHotkey = AppSettings.ClipHotkey;
this.tbCliphotkey.Text = keysConverter.ConvertToString((object) clipHotkey);
this.cbUseCustomServers.Checked = AppSettings.UseFTP;
this.cbUseSSServers.Checked = !AppSettings.UseFTP;
this.tbHost.Text = AppSettings.FTPServer;
this.tbUsername.Text = AppSettings.FTPUser;
this.tbPassword.Text = AppSettings.FTPPass;
this.tbOutputURL.Text = AppSettings.FTPOut;
this.tbFTPImgDir.Text = AppSettings.FTPDir;
this.tbPort.Text = AppSettings.FTPPort.ToString();
this.cbHashLength.SelectedItem = (object) AppSettings.HashLength.ToString();
this.cbHashPrefix.SelectedIndex = AppSettings.PrefixType;
this.tbAccntUsername.Text = AppSettings.AppUserEmail;
this.tbAccntPassword.Text = AppSettings.AppUserPass;
this.ToggleFTPSettings();
this.bLoadingComplete = true;
}

private void LoadPremiumSettings()
{
this.Invoke((Delegate) (() => this.cbEnableHUB.Enabled = AuthRequest.IsPremium));
}

public void ToggleFTPSettings()
{
this.btnTestFTP.Enabled = this.cbUseCustomServers.Checked;
this.tbUsername.Enabled = this.cbUseCustomServers.Checked;
this.tbHost.Enabled = this.cbUseCustomServers.Checked;
this.tbPassword.Enabled = this.cbUseCustomServers.Checked;
this.tbOutputURL.Enabled = this.cbUseCustomServers.Checked;
this.tbFTPImgDir.Enabled = this.cbUseCustomServers.Checked;
this.tbPort.Enabled = this.cbUseCustomServers.Checked;
this.cbHashLength.Enabled = this.cbUseCustomServers.Checked;
this.cbHashPrefix.Enabled = this.cbUseCustomServers.Checked;
if (this.cbUseCustomServers.Checked)
{
this.cbUseCustomServers.ForeColor = Color.Black;
this.cbUseSSServers.ForeColor = Color.Silver;
}
if (!this.cbUseSSServers.Checked)
return;
this.cbUseSSServers.ForeColor = Color.Black;
this.cbUseCustomServers.ForeColor = Color.Silver;
}

[DllImport("user32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
private static bool SetForegroundWindow(IntPtr hWnd);

[DllImport("user32.dll")]
public static int SetWindowLong(IntPtr window, int index, int value);

[DllImport("user32.dll")]
public static int GetWindowLong(IntPtr window, int index);

[DllImport("user32")]
public static long SetWindowPos(IntPtr hwnd, int hWndInsertAfter, int X, int y, int cx, int cy, int wFlagslong);

[DllImport("use32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
public static bool GetCursorPos(out Point lpPoint);

private void HideForm()
{
this.Opacity = 0.0;
this.WindowState = FormWindowState.Minimized;
this.Visible = false;
this.ShowInTaskbar = false;
frmMain.SetWindowLong(this.Handle, -20, frmMain.GetWindowLong(this.Handle, -20));
this.SendToBack();
}

private void ShowForm()
{
this.Visible = true;
this.WindowState = FormWindowState.Normal;
frmMain.SetWindowLong(this.Handle, -20, frmMain.GetWindowLong(this.Handle, -20) | 12Cool Man (aka Tustin);
this.ShowInTaskbar = true;
this.BringToFront();
this.Focus();
this.Opacity = 100.0;
}

private void llCreateAccount_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
if (!frmMain.HasRemoteConnection)
{
this.notifications.ShowNotification("ScreenSnapr", "Unable to connect to connect to ScreenSnapr servers, can't create account at this moment.");
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
}
else
{
frmCreateAccount frmCreateAccount = new frmCreateAccount();
if (frmCreateAccount.ShowDialog() != DialogResult.OK)
return;
Dictionary<string, string> fields = new Dictionary<string, string>()
{
{
"email",
frmCreateAccount.Username
},
{
"pass",
frmCreateAccount.Password
}
};
PostFormBuilder postFormBuilder = new PostFormBuilder();
postFormBuilder.AddFields(fields);
postFormBuilder.End();
Server.UploadDataAsync(new Uri(SettingsRequest.CreatePath), postFormBuilder.ContentType, postFormBuilder.GetBytes(), 10000, new Server.RequestCompletedEventHandler(this.CreateAccountRequestComplete), (Server.RequestProgressEventHandler) null);
}
}

private void CreateAccountRequestComplete(HttpWebRequest request, HttpWebResponse response, Dictionary<string, string> json, Exception error)
{
if (error != null)
{
int num1 = (int) new frmError(this.TrayIcon)
{
Error = error
}.ShowDialog();
}
else
{
if (json == null)
return;
string str1 = string.Empty;
json.TryGetValue("status", out str1);
string str2 = string.Empty;
json.TryGetValue("name", out str2);
if (!str2.Equals("create"))
{
int num2 = (int) MessageBox.Show("Error registering your account", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
else if (str1.Equals("complete"))
{
int num3 = (int) MessageBox.Show("Your account has been registered", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
string str3;
json.TryGetValue("username", out str3);
string stri;
json.TryGetValue("password", out stri);
AppSettings.AppUserEmail = str3;
AppSettings.AppUserPass = ScreenSnapr.Helpers.HashString(stri);
AuthRequest.IsRegistered = true;
this.Invoke((Delegate) (() =>
{
this.AccountTabControl.SelectedIndex = 1;
this.lblAccountEmail.Text = string.Format("{0}", (object) AppSettings.AppUserEmail);
}));
}
else
{
if (!str1.Equals("error"))
return;
string str3 = string.Empty;
json.TryGetValue("error", out str3);
if (str3.Equals(string.Empty))
return;
int num3 = (int) MessageBox.Show("Error registering your account", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
}
}

private void btnLogin_Click(object sender, EventArgs e)
{
if (!frmMain.HasRemoteConnection)
{
this.notifications.ShowNotification("ScreenSnapr", "Unable to connect to connect to ScreenSnapr servers, can't authorize at this moment.");
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
}
else
{
AuthRequest authRequest = new AuthRequest();
authRequest.SetCreds(this.tbAccntUsername.Text, ScreenSnapr.Helpers.HashString(this.tbAccntPassword.Text));
authRequest.RequestComplete += (EventHandler) ((req_sender, req_e) =>
{
if (AuthRequest.IsPremium || AuthRequest.IsRegistered)
{
AppSettings.AppUserEmail = this.tbAccntUsername.Text;
AppSettings.AppUserPass = ScreenSnapr.Helpers.HashString(this.tbAccntPassword.Text);
int temp_37 = (int) MessageBox.Show("You have successfully logged in", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
else
{
int temp_48 = (int) MessageBox.Show("Unable to login. Check your login credentials", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
this.bShouldShowNag = false;
this.serverAuthRequest_OnRequestComplete(req_sender, req_e);
});
authRequest.Request();
}
}

private void SetAccountInformationPanel(string email, string userType)
{
this.Invoke((Delegate) (() =>
{
this.AccountTabControl.SelectedIndex = 1;
this.lblAccountEmail.Text = string.Format("{0}", (object) email);
if (!(userType == "paid_user") && !(userType == "admin"))
return;
this.btnBuy.Enabled = false;
}));
}

private void btnLogout_Click(object sender, EventArgs e)
{
AppSettings.AppUserPass = AppSettings.AppUserEmail = string.Empty;
AuthRequest.IsPremium = false;
this.cbEnableHUB.Enabled = false;
this.AccountTabControl.SelectedIndex = 0;
}

private void btnBuy_Click(object sender, EventArgs e)
{
WebPages.BuyFull();
}

private void btnCP_Click(object sender, EventArgs e)
{
WebPages.WebApp();
}

private void tbAccntPassword_KeyPress(object sender, KeyPressEventArgs e)
{
if ((int) e.KeyChar != 13)
return;
this.btnLogin_Click((object) null, (EventArgs) null);
}

protected override void Dispose(bool disposing)
{
if (disposing && this.components != null)
this.components.Dispose();
base.Dispose(disposing);
}

private void InitializeComponent()
{
this.components = (IContainer) new Container();
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (frmMain));
this.panelBottom = new Panel();
this.btnOK = new Button();
this.panelTop = new Panel();
this.panelMiddle = new Panel();
this.TrayIcon = new NotifyIcon(this.components);
this.TrayOptions = new ContextMenu();
this.miHistoryActivate = new MenuItem();
this.miOptions = new MenuItem();
this.menuItem3 = new MenuItem();
this.miClose = new MenuItem();
this.IconList = new ImageList(this.components);
this.MainTabs = new HiddenTabControl();
this.tpConfig = new TabPage();
this.gbAdvOpts = new GroupBox();
this.tbCliphotkey = new TextBox();
this.label1 = new Label();
this.tbHotkey = new TextBox();
this.lblHotkey = new Label();
this.cobImageType = new ComboBox();
this.lblImageType = new Label();
this.groupBox1 = new GroupBox();
this.cbAllowDrag = new CheckBox();
this.llBuyPremium = new LinkLabel();
this.cbEnableHUB = new CheckBox();
this.cbPlaySounds = new CheckBox();
this.cbShrinkURL = new CheckBox();
this.cbRunAtLogin = new CheckBox();
this.tpServer = new TabPage();
this.gbServerOpts = new GroupBox();
this.label4 = new Label();
this.cbHashPrefix = new ComboBox();
this.cbHashLength = new ComboBox();
this.label3 = new Label();
this.tbPort = new TextBox();
this.lblFTPPort = new Label();
this.btnTestFTP = new Button();
this.lblFTPImageDir = new Label();
this.cbUseCustomServers = new RadioButton();
this.cbUseSSServers = new RadioButton();
this.tbFTPImgDir = new TextBox();
this.lblOutputURL = new Label();
this.lblFTPPassword = new Label();
this.lblFTPUsername = new Label();
this.lblFTPHost = new Label();
this.tbOutputURL = new TextBox();
this.tbPassword = new TextBox();
this.tbUsername = new TextBox();
this.tbHost = new TextBox();
this.tpAccount = new TabPage();
this.AccountTabControl = new HiddenTabControl();
this.tabPageRegisterAccount = new TabPage();
this.gbAccount = new GroupBox();
this.llBuyFull = new LinkLabel();
this.label2 = new Label();
this.llCreateAccount = new LinkLabel();
this.lblRegister = new Label();
this.btnLogin = new Button();
this.lblPass = new Label();
this.lblEmail = new Label();
this.tbAccntPassword = new TextBox();
this.tbAccntUsername = new TextBox();
this.tabPageAccountInfo = new TabPage();
this.gbUpgrade = new GroupBox();
this.btnCP = new Button();
this.btnBuy = new Button();
this.groupBox3 = new GroupBox();
this.btnLogout = new Button();
this.lblAccountEmail = new LinkLabel();
this.tpAbout = new TabPage();
this.gbUpdate = new GroupBox();
this.lblVersionNum = new Label();
this.lblCurVersion = new Label();
this.btnCheckForUpdates = new Button();
this.gbAbout = new GroupBox();
this.btnGetSupport = new Button();
this.lblSep0 = new Label();
this.llblOpenSite = new LinkLabel();
this.llblTwitter = new LinkLabel();
this.MainMenuStrip = new SSToolStrip();
this.tabBtnConfigure = new ToolStripButton();
this.tabBtnServer = new ToolStripButton();
this.tabBtnAccnt = new ToolStripButton();
this.tabBtnAbout = new ToolStripButton();
this.panelBottom.SuspendLayout();
this.panelTop.SuspendLayout();
this.panelMiddle.SuspendLayout();
this.MainTabs.SuspendLayout();
this.tpConfig.SuspendLayout();
this.gbAdvOpts.SuspendLayout();
this.groupBox1.SuspendLayout();
this.tpServer.SuspendLayout();
this.gbServerOpts.SuspendLayout();
this.tpAccount.SuspendLayout();
this.AccountTabControl.SuspendLayout();
this.tabPageRegisterAccount.SuspendLayout();
this.gbAccount.SuspendLayout();
this.tabPageAccountInfo.SuspendLayout();
this.gbUpgrade.SuspendLayout();
this.groupBox3.SuspendLayout();
this.tpAbout.SuspendLayout();
this.gbUpdate.SuspendLayout();
this.gbAbout.SuspendLayout();
this.MainMenuStrip.SuspendLayout();
this.SuspendLayout();
this.panelBottom.Controls.Add((Control) this.btnOK);
this.panelBottom.Dock = DockStyle.Bottom;
this.panelBottom.Location = new Point(0, 336);
this.panelBottom.Name = "panelBottom";
this.panelBottom.Size = new Size(365, 43);
this.panelBottom.TabIndex = 4;
this.btnOK.ForeColor = Color.Black;
this.btnOK.Location = new Point(279, 10);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new Size(75, 23);
this.btnOK.TabIndex = 16;
this.btnOK.Text = "OK";
this.btnOK.UseVisualStyleBackColor = true;
this.btnOK.Click += new EventHandler(this.btnOK_Click);
this.panelTop.Controls.Add((Control) this.MainMenuStrip);
this.panelTop.Dock = DockStyle.Top;
this.panelTop.Location = new Point(0, 0);
this.panelTop.Name = "panelTop";
this.panelTop.Size = new Size(365, 59);
this.panelTop.TabIndex = 5;
this.panelMiddle.Controls.Add((Control) this.MainTabs);
this.panelMiddle.Dock = DockStyle.Fill;
this.panelMiddle.Location = new Point(0, 59);
this.panelMiddle.Name = "panelMiddle";
this.panelMiddle.Size = new Size(365, 277);
this.panelMiddle.TabIndex = 6;
this.TrayIcon.Icon = (Icon) componentResourceManager.GetObject("TrayIcon.Icon");
this.TrayIcon.Text = "ScreenSnapr";
this.TrayIcon.Visible = true;
this.TrayIcon.MouseDoubleClick += new MouseEventHandler(this.TrayIcon_MouseDoubleClick);
this.TrayOptions.MenuItems.AddRange(new MenuItem[4]
{
this.miHistoryActivate,
this.miOptions,
this.menuItem3,
this.miClose
});
this.miHistoryActivate.Index = 0;
this.miHistoryActivate.Text = "Image History";
this.miHistoryActivate.Click += new EventHandler(this.miHistoryActivate_Click);
this.miOptions.Index = 1;
this.miOptions.Text = "Preferences";
this.miOptions.Click += new EventHandler(this.miOptions_Click);
this.menuItem3.Index = 2;
this.menuItem3.Text = "-";
this.miClose.Index = 3;
this.miClose.Text = "Exit";
this.miClose.Click += new EventHandler(this.contextMenuClose_Click);
this.IconList.ImageStream = (ImageListStreamer) componentResourceManager.GetObject("IconList.ImageStream");
this.IconList.TransparentColor = Color.Transparent;
this.IconList.Images.SetKeyName(0, "main.ico");
this.IconList.Images.SetKeyName(1, "loading.ico");
this.IconList.Images.SetKeyName(2, "upload.ico");
this.IconList.Images.SetKeyName(3, "error.ico");
this.MainTabs.Controls.Add((Control) this.tpConfig);
this.MainTabs.Controls.Add((Control) this.tpServer);
this.MainTabs.Controls.Add((Control) this.tpAccount);
this.MainTabs.Controls.Add((Control) this.tpAbout);
this.MainTabs.Dock = DockStyle.Fill;
this.MainTabs.Location = new Point(0, 0);
this.MainTabs.Name = "MainTabs";
this.MainTabs.SelectedIndex = 0;
this.MainTabs.Size = new Size(365, 277);
this.MainTabs.TabIndex = 1;
this.tpConfig.BackColor = SystemColors.Control;
this.tpConfig.Controls.Add((Control) this.gbAdvOpts);
this.tpConfig.Controls.Add((Control) this.groupBox1);
this.tpConfig.Location = new Point(4, 22);
this.tpConfig.Name = "tpConfig";
this.tpConfig.Padding = new Padding(3);
this.tpConfig.Size = new Size(357, 251);
this.tpConfig.TabIndex = 0;
this.tpConfig.Text = "Config";
this.gbAdvOpts.Controls.Add((Control) this.tbCliphotkey);
this.gbAdvOpts.Controls.Add((Control) this.label1);
this.gbAdvOpts.Controls.Add((Control) this.tbHotkey);
this.gbAdvOpts.Controls.Add((Control) this.lblHotkey);
this.gbAdvOpts.Controls.Add((Control) this.cobImageType);
this.gbAdvOpts.Controls.Add((Control) this.lblImageType);
this.gbAdvOpts.ForeColor = Color.Black;
this.gbAdvOpts.Location = new Point(11, 170);
this.gbAdvOpts.Name = "gbAdvOpts";
this.gbAdvOpts.Size = new Size(343, 111);
this.gbAdvOpts.TabIndex = 11;
this.gbAdvOpts.TabStop = false;
this.gbAdvOpts.Text = "Advanced:";
this.tbCliphotkey.Location = new Point(207, 7Cool Man (aka Tustin);
this.tbCliphotkey.Name = "tbCliphotkey";
this.tbCliphotkey.Size = new Size(123, 20);
this.tbCliphotkey.TabIndex = 13;
this.tbCliphotkey.KeyDown += new KeyEventHandler(this.ClipHotkey_KeyDown);
this.label1.AutoSize = true;
this.label1.ForeColor = Color.Black;
this.label1.Location = new Point(10, 81);
this.label1.Name = "label1";
this.label1.Size = new Size(123, 13);
this.label1.TabIndex = 12;
this.label1.Text = "Upload clipbord content:";
this.tbHotkey.Location = new Point(207, 52);
this.tbHotkey.Name = "tbHotkey";
this.tbHotkey.Size = new Size(123, 20);
this.tbHotkey.TabIndex = 11;
this.tbHotkey.KeyDown += new KeyEventHandler(this.tbHotKey_KeyDown);
this.lblHotkey.AutoSize = true;
this.lblHotkey.ForeColor = Color.Black;
this.lblHotkey.Location = new Point(10, 55);
this.lblHotkey.Name = "lblHotkey";
this.lblHotkey.Size = new Size(35, 13);
this.lblHotkey.TabIndex = 10;
this.lblHotkey.Text = "Snap:";
this.cobImageType.DropDownStyle = ComboBoxStyle.DropDownList;
this.cobImageType.FormattingEnabled = true;
this.cobImageType.Items.AddRange(new object[2]
{
(object) "JPG",
(object) "PNG"
});
this.cobImageType.Location = new Point(207, 24);
this.cobImageType.Name = "cobImageType";
this.cobImageType.Size = new Size(123, 21);
this.cobImageType.TabIndex = 9;
this.lblImageType.AutoSize = true;
this.lblImageType.ForeColor = Color.Black;
this.lblImageType.Location = new Point(10, 27);
this.lblImageType.Name = "lblImageType";
this.lblImageType.Size = new Size(66, 13);
this.lblImageType.TabIndex = 8;
this.lblImageType.Text = "Image Type:";
this.groupBox1.Controls.Add((Control) this.cbAllowDrag);
this.groupBox1.Controls.Add((Control) this.llBuyPremium);
this.groupBox1.Controls.Add((Control) this.cbEnableHUB);
this.groupBox1.Controls.Add((Control) this.cbPlaySounds);
this.groupBox1.Controls.Add((Control) this.cbShrinkURL);
this.groupBox1.Controls.Add((Control) this.cbRunAtLogin);
this.groupBox1.Location = new Point(11, 11);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new Size(343, 153);
this.groupBox1.TabIndex = 10;
this.groupBox1.TabStop = false;
this.cbAllowDrag.AutoSize = true;
this.cbAllowDrag.ForeColor = Color.Black;
this.cbAllowDrag.Location = new Point(13, 9Cool Man (aka Tustin);
this.cbAllowDrag.Name = "cbAllowDrag";
this.cbAllowDrag.Size = new Size(171, 17);
this.cbAllowDrag.TabIndex = 13;
this.cbAllowDrag.Text = "Enable Drag n' Drop uploading";
this.cbAllowDrag.UseVisualStyleBackColor = true;
this.llBuyPremium.AutoSize = true;
this.llBuyPremium.LinkBehavior = LinkBehavior.HoverUnderline;
this.llBuyPremium.LinkColor = Color.SteelBlue;
this.llBuyPremium.Location = new Point(130, 125);
this.llBuyPremium.Name = "llBuyPremium";
this.llBuyPremium.Size = new Size(52, 13);
this.llBuyPremium.TabIndex = 12;
this.llBuyPremium.TabStop = true;
this.llBuyPremium.Text = "(premium)";
this.llBuyPremium.LinkClicked += new LinkLabelLinkClickedEventHandler(this.llBuyPremium_LinkClicked);
this.cbEnableHUB.AutoSize = true;
this.cbEnableHUB.ForeColor = Color.Black;
this.cbEnableHUB.Location = new Point(13, 124);
this.cbEnableHUB.Name = "cbEnableHUB";
this.cbEnableHUB.Size = new Size(120, 17);
this.cbEnableHUB.TabIndex = 3;
this.cbEnableHUB.Text = "Enable upload HUB";
this.cbEnableHUB.UseVisualStyleBackColor = true;
this.cbPlaySounds.AutoSize = true;
this.cbPlaySounds.ForeColor = Color.Black;
this.cbPlaySounds.Location = new Point(13, 72);
this.cbPlaySounds.Name = "cbPlaySounds";
this.cbPlaySounds.Size = new Size(182, 17);
this.cbPlaySounds.TabIndex = 2;
this.cbPlaySounds.Text = "Play sound on upload completion";
this.cbPlaySounds.UseVisualStyleBackColor = true;
this.cbShrinkURL.AutoSize = true;
this.cbShrinkURL.ForeColor = Color.Black;
this.cbShrinkURL.Location = new Point(13, 46);
this.cbShrinkURL.Name = "cbShrinkURL";
this.cbShrinkURL.Size = new Size(149, 17);
this.cbShrinkURL.TabIndex = 1;
this.cbShrinkURL.Text = "Automatically shrink URLs";
this.cbShrinkURL.UseVisualStyleBackColor = true;
this.cbRunAtLogin.AutoSize = true;
this.cbRunAtLogin.ForeColor = Color.Black;
this.cbRunAtLogin.Location = new Point(13, 20);
this.cbRunAtLogin.Name = "cbRunAtLogin";
this.cbRunAtLogin.Size = new Size(198, 17);
this.cbRunAtLogin.TabIndex = 0;
this.cbRunAtLogin.Text = "Start ScreenSnapr on system startup";
this.cbRunAtLogin.UseVisualStyleBackColor = true;
this.tpServer.BackColor = SystemColors.Control;
this.tpServer.Controls.Add((Control) this.gbServerOpts);
this.tpServer.Location = new Point(4, 22);
this.tpServer.Name = "tpServer";
this.tpServer.Padding = new Padding(3);
this.tpServer.Size = new Size(357, 251);
this.tpServer.TabIndex = 1;
this.tpServer.Text = "Server";
this.gbServerOpts.Controls.Add((Control) this.label4);
this.gbServerOpts.Controls.Add((Control) this.cbHashPrefix);
this.gbServerOpts.Controls.Add((Control) this.cbHashLength);
this.gbServerOpts.Controls.Add((Control) this.label3);
this.gbServerOpts.Controls.Add((Control) this.tbPort);
this.gbServerOpts.Controls.Add((Control) this.lblFTPPort);
this.gbServerOpts.Controls.Add((Control) this.btnTestFTP);
this.gbServerOpts.Controls.Add((Control) this.lblFTPImageDir);
this.gbServerOpts.Controls.Add((Control) this.cbUseCustomServers);
this.gbServerOpts.Controls.Add((Control) this.cbUseSSServers);
this.gbServerOpts.Controls.Add((Control) this.tbFTPImgDir);
this.gbServerOpts.Controls.Add((Control) this.lblOutputURL);
this.gbServerOpts.Controls.Add((Control) this.lblFTPPassword);
this.gbServerOpts.Controls.Add((Control) this.lblFTPUsername);
this.gbServerOpts.Controls.Add((Control) this.lblFTPHost);
this.gbServerOpts.Controls.Add((Control) this.tbOutputURL);
this.gbServerOpts.Controls.Add((Control) this.tbPassword);
this.gbServerOpts.Controls.Add((Control) this.tbUsername);
this.gbServerOpts.Controls.Add((Control) this.tbHost);
this.gbServerOpts.Location = new Point(11, 11);
this.gbServerOpts.Name = "gbServerOpts";
this.gbServerOpts.Size = new Size(343, 235);
this.gbServerOpts.TabIndex = 1;
this.gbServerOpts.TabStop = false;
this.label4.AutoSize = true;
this.label4.ForeColor = Color.Black;
this.label4.Location = new Point(145, 207);
this.label4.Name = "label4";
this.label4.Size = new Size(36, 13);
this.label4.TabIndex = 21;
this.label4.Text = "Prefix:";
this.cbHashPrefix.DropDownStyle = ComboBoxStyle.DropDownList;
this.cbHashPrefix.FormattingEnabled = true;
this.cbHashPrefix.Items.AddRange(new object[3]
{
(object) "none",
(object) "timestamp",
(object) "custom"
});
this.cbHashPrefix.Location = new Point(185, 202);
this.cbHashPrefix.Name = "cbHashPrefix";
this.cbHashPrefix.Size = new Size(80, 21);
this.cbHashPrefix.TabIndex = 20;
this.cbHashPrefix.SelectedIndexChanged += new EventHandler(this.cbHashPrefix_SelectedIndexChanged);
this.cbHashLength.DropDownStyle = ComboBoxStyle.DropDownList;
this.cbHashLength.FormattingEnabled = true;
this.cbHashLength.Items.AddRange(new object[20]
{
(object) "1",
(object) "2",
(object) "3",
(object) "4",
(object) "5",
(object) "6",
(object) "7",
(object) "8",
(object) "9",
(object) "10",
(object) "11",
(object) "12",
(object) "13",
(object) "14",
(object) "15",
(object) "16",
(object) "17",
(object) "18",
(object) "19",
(object) "20"
});
this.cbHashLength.Location = new Point(99, 202);
this.cbHashLength.Name = "cbHashLength";
this.cbHashLength.Size = new Size(38, 21);
this.cbHashLength.TabIndex = 19;
this.label3.AutoSize = true;
this.label3.ForeColor = Color.Black;
this.label3.Location = new Point(36, 207);
this.label3.Name = "label3";
this.label3.Size = new Size(58, 13);
this.label3.TabIndex = 18;
this.label3.Text = "Hash Size:";
this.tbPort.Enabled = false;
this.tbPort.Location = new Point(285, 66);
this.tbPort.Name = "tbPort";
this.tbPort.Size = new Size(48, 20);
this.tbPort.TabIndex = 17;
this.lblFTPPort.AutoSize = true;
this.lblFTPPort.Location = new Point(271, 69);
this.lblFTPPort.Name = "lblFTPPort";
this.lblFTPPort.Size = new Size(10, 13);
this.lblFTPPort.TabIndex = 16;
this.lblFTPPort.Text = ":";
this.btnTestFTP.ForeColor = Color.Black;
this.btnTestFTP.Location = new Point(274, 201);
this.btnTestFTP.Name = "btnTestFTP";
this.btnTestFTP.Size = new Size(59, 23);
this.btnTestFTP.TabIndex = 7;
this.btnTestFTP.Text = "Test";
this.btnTestFTP.UseVisualStyleBackColor = true;
this.btnTestFTP.Click += new EventHandler(this.btnTestFTP_Click);
this.lblFTPImageDir.AutoSize = true;
this.lblFTPImageDir.ForeColor = Color.Black;
this.lblFTPImageDir.Location = new Point(5, 151);
this.lblFTPImageDir.Name = "lblFTPImageDir";
this.lblFTPImageDir.Size = new Size(89, 13);
this.lblFTPImageDir.TabIndex = 14;
this.lblFTPImageDir.Text = "Upload Directory:";
this.cbUseCustomServers.AutoSize = true;
this.cbUseCustomServers.ForeColor = Color.Black;
this.cbUseCustomServers.Location = new Point(13, 42);
this.cbUseCustomServers.Name = "cbUseCustomServers";
this.cbUseCustomServers.Size = new Size(167, 17);
this.cbUseCustomServers.TabIndex = 11;
this.cbUseCustomServers.Text = "Use my own server for hosting";
this.cbUseCustomServers.UseVisualStyleBackColor = true;
this.cbUseCustomServers.CheckedChanged += new EventHandler(this.FTPOption_CheckChanged);
this.cbUseSSServers.AutoSize = true;
this.cbUseSSServers.ForeColor = Color.Black;
this.cbUseSSServers.Location = new Point(13, 19);
this.cbUseSSServers.Name = "cbUseSSServers";
this.cbUseSSServers.Size = new Size(198, 17);
this.cbUseSSServers.TabIndex = 10;
this.cbUseSSServers.Text = "Use ScreenSnapr servers for hosting";
this.cbUseSSServers.UseVisualStyleBackColor = true;
this.cbUseSSServers.CheckedChanged += new EventHandler(this.FTPOption_CheckChanged);
this.tbFTPImgDir.Enabled = false;
this.tbFTPImgDir.Location = new Point(99, 14Cool Man (aka Tustin);
this.tbFTPImgDir.Name = "tbFTPImgDir";
this.tbFTPImgDir.Size = new Size(234, 20);
this.tbFTPImgDir.TabIndex = 5;
this.lblOutputURL.AutoSize = true;
this.lblOutputURL.ForeColor = Color.Black;
this.lblOutputURL.Location = new Point(30, 17Cool Man (aka Tustin);
this.lblOutputURL.Name = "lblOutputURL";
this.lblOutputURL.Size = new Size(64, 13);
this.lblOutputURL.TabIndex = 9;
this.lblOutputURL.Text = "Ouput URL:";
this.lblFTPPassword.AutoSize = true;
this.lblFTPPassword.ForeColor = Color.Black;
this.lblFTPPassword.Location = new Point(38, 123);
this.lblFTPPassword.Name = "lblFTPPassword";
this.lblFTPPassword.Size = new Size(56, 13);
this.lblFTPPassword.TabIndex = 8;
this.lblFTPPassword.Text = "Password:";
this.lblFTPUsername.AutoSize = true;
this.lblFTPUsername.ForeColor = Color.Black;
this.lblFTPUsername.Location = new Point(36, 95);
this.lblFTPUsername.Name = "lblFTPUsername";
this.lblFTPUsername.Size = new Size(58, 13);
this.lblFTPUsername.TabIndex = 7;
this.lblFTPUsername.Text = "Username:";
this.lblFTPHost.AutoSize = true;
this.lblFTPHost.ForeColor = Color.Black;
this.lblFTPHost.Location = new Point(62, 69);
this.lblFTPHost.Name = "lblFTPHost";
this.lblFTPHost.Size = new Size(32, 13);
this.lblFTPHost.TabIndex = 6;
this.lblFTPHost.Text = "Host:";
this.tbOutputURL.Location = new Point(99, 175);
this.tbOutputURL.Name = "tbOutputURL";
this.tbOutputURL.Size = new Size(234, 20);
this.tbOutputURL.TabIndex = 6;
this.tbPassword.Location = new Point(99, 120);
this.tbPassword.Name = "tbPassword";
this.tbPassword.PasswordChar = '*';
this.tbPassword.Size = new Size(234, 20);
this.tbPassword.TabIndex = 4;
this.tbPassword.UseSystemPasswordChar = true;
this.tbUsername.Location = new Point(99, 92);
this.tbUsername.Name = "tbUsername";
this.tbUsername.Size = new Size(234, 20);
this.tbUsername.TabIndex = 3;
this.tbHost.Location = new Point(99, 66);
this.tbHost.Name = "tbHost";
this.tbHost.Size = new Size(166, 20);
this.tbHost.TabIndex = 2;
this.tpAccount.BackColor = SystemColors.Control;
this.tpAccount.Controls.Add((Control) this.AccountTabControl);
this.tpAccount.Location = new Point(4, 22);
this.tpAccount.Name = "tpAccount";
this.tpAccount.Padding = new Padding(3);
this.tpAccount.Size = new Size(357, 251);
this.tpAccount.TabIndex = 2;
this.tpAccount.Text = "Account";
this.AccountTabControl.Controls.Add((Control) this.tabPageRegisterAccount);
this.AccountTabControl.Controls.Add((Control) this.tabPageAccountInfo);
this.AccountTabControl.Dock = DockStyle.Fill;
this.AccountTabControl.Location = new Point(3, 3);
this.AccountTabControl.Name = "AccountTabControl";
this.AccountTabControl.SelectedIndex = 0;
this.AccountTabControl.Size = new Size(351, 245);
this.AccountTabControl.TabIndex = 23;
this.tabPageRegisterAccount.BackColor = SystemColors.Control;
this.tabPageRegisterAccount.Controls.Add((Control) this.gbAccount);
this.tabPageRegisterAccount.Location = new Point(4, 22);
this.tabPageRegisterAccount.Name = "tabPageRegisterAccount";
this.tabPageRegisterAccount.Padding = new Padding(3);
this.tabPageRegisterAccount.Size = new Size(343, 219);
this.tabPageRegisterAccount.TabIndex = 2;
this.tabPageRegisterAccount.Text = "Create";
this.gbAccount.Controls.Add((Control) this.llBuyFull);
this.gbAccount.Controls.Add((Control) this.label2);
this.gbAccount.Controls.Add((Control) this.llCreateAccount);
this.gbAccount.Controls.Add((Control) this.lblRegister);
this.gbAccount.Controls.Add((Control) this.btnLogin);
this.gbAccount.Controls.Add((Control) this.lblPass);
this.gbAccount.Controls.Add((Control) this.lblEmail);
this.gbAccount.Controls.Add((Control) this.tbAccntPassword);
this.gbAccount.Controls.Add((Control) this.tbAccntUsername);
this.gbAccount.ForeColor = Color.Black;
this.gbAccount.Location = new Point(8, Cool Man (aka Tustin);
this.gbAccount.Name = "gbAccount";
this.gbAccount.Size = new Size(343, 170);
this.gbAccount.TabIndex = 2;
this.gbAccount.TabStop = false;
this.gbAccount.Text = "Account";
this.llBuyFull.AutoSize = true;
this.llBuyFull.LinkBehavior = LinkBehavior.HoverUnderline;
this.llBuyFull.LinkColor = Color.SteelBlue;
this.llBuyFull.Location = new Point(154, 141);
this.llBuyFull.Name = "llBuyFull";
this.llBuyFull.Size = new Size(82, 13);
this.llBuyFull.TabIndex = 14;
this.llBuyFull.TabStop = true;
this.llBuyFull.Text = "Buy Full Version";
this.llBuyFull.LinkClicked += new LinkLabelLinkClickedEventHandler(this.llBuyFull_LinkClicked);
this.label2.ForeColor = SystemColors.ControlDarkDark;
this.label2.Location = new Point(140, 141);
this.label2.Margin = new Padding(0);
this.label2.Name = "label2";
this.label2.Size = new Size(20, 22);
this.label2.TabIndex = 13;
this.label2.Text = "or";
this.llCreateAccount.AutoSize = true;
this.llCreateAccount.LinkBehavior = LinkBehavior.HoverUnderline;
this.llCreateAccount.LinkColor = Color.SteelBlue;
this.llCreateAccount.Location = new Point(38, 141);
this.llCreateAccount.Name = "llCreateAccount";
this.llCreateAccount.Size = new Size(105, 13);
this.llCreateAccount.TabIndex = 11;
this.llCreateAccount.TabStop = true;
this.llCreateAccount.Text = "Create Free Account";
this.llCreateAccount.LinkClicked += new LinkLabelLinkClickedEventHandler(this.llCreateAccount_LinkClicked);
this.lblRegister.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.lblRegister.ForeColor = SystemColors.ControlDarkDark;
this.lblRegister.Location = new Point(17, 32);
this.lblRegister.Margin = new Padding(0);
this.lblRegister.Name = "lblRegister";
this.lblRegister.Size = new Size(312, 35);
this.lblRegister.TabIndex = 10;
this.lblRegister.Text = "Login to ScreenSnapr to enable online stats and image history.";
this.btnLogin.ForeColor = SystemColors.ControlText;
this.btnLogin.Location = new Point(242, 136);
this.btnLogin.Name = "btnLogin";
this.btnLogin.Size = new Size(84, 23);
this.btnLogin.TabIndex = 6;
this.btnLogin.Text = "Log In";
this.btnLogin.UseVisualStyleBackColor = true;
this.btnLogin.Click += new EventHandler(this.btnLogin_Click);
this.lblPass.AutoSize = true;
this.lblPass.ForeColor = Color.Black;
this.lblPass.Location = new Point(44, 101);
this.lblPass.Name = "lblPass";
this.lblPass.Size = new Size(56, 13);
this.lblPass.TabIndex = 8;
this.lblPass.Text = "Password:";
this.lblPass.TextAlign = ContentAlignment.MiddleRight;
this.lblEmail.AutoSize = true;
this.lblEmail.ForeColor = Color.Black;
this.lblEmail.Location = new Point(62, 73);
this.lblEmail.Name = "lblEmail";
this.lblEmail.Size = new Size(35, 13);
this.lblEmail.TabIndex = 7;
this.lblEmail.Text = "Email:";
this.lblEmail.TextAlign = ContentAlignment.MiddleRight;
this.tbAccntPassword.Location = new Point(103, 9Cool Man (aka Tustin);
this.tbAccntPassword.Name = "tbAccntPassword";
this.tbAccntPassword.PasswordChar = '*';
this.tbAccntPassword.Size = new Size(225, 20);
this.tbAccntPassword.TabIndex = 4;
this.tbAccntPassword.UseSystemPasswordChar = true;
this.tbAccntPassword.KeyPress += new KeyPressEventHandler(this.tbAccntPassword_KeyPress);
this.tbAccntUsername.Location = new Point(103, 70);
this.tbAccntUsername.Name = "tbAccntUsername";
this.tbAccntUsername.Size = new Size(225, 20);
this.tbAccntUsername.TabIndex = 3;
this.tabPageAccountInfo.BackColor = SystemColors.Control;
this.tabPageAccountInfo.Controls.Add((Control) this.gbUpgrade);
this.tabPageAccountInfo.Controls.Add((Control) this.groupBox3);
this.tabPageAccountInfo.Location = new Point(4, 22);
this.tabPageAccountInfo.Name = "tabPageAccountInfo";
this.tabPageAccountInfo.Padding = new Padding(3);
this.tabPageAccountInfo.Size = new Size(343, 219);
this.tabPageAccountInfo.TabIndex = 3;
this.tabPageAccountInfo.Text = "Info";
this.gbUpgrade.Controls.Add((Control) this.btnCP);
this.gbUpgrade.Controls.Add((Control) this.btnBuy);
this.gbUpgrade.ForeColor = Color.Black;
this.gbUpgrade.Location = new Point(3, 84);
this.gbUpgrade.Name = "gbUpgrade";
this.gbUpgrade.Size = new Size(343, 83);
this.gbUpgrade.TabIndex = 5;
this.gbUpgrade.TabStop = false;
this.btnCP.ForeColor = Color.Black;
this.btnCP.Location = new Point(230, 33);
this.btnCP.Name = "btnCP";
this.btnCP.Size = new Size(99, 29);
this.btnCP.TabIndex = 5;
this.btnCP.Text = "Control Panel";
this.btnCP.UseVisualStyleBackColor = true;
this.btnCP.Click += new EventHandler(this.btnCP_Click);
this.btnBuy.ForeColor = Color.Black;
this.btnBuy.Location = new Point(20, 33);
this.btnBuy.Name = "btnBuy";
this.btnBuy.Size = new Size(99, 29);
this.btnBuy.TabIndex = 4;
this.btnBuy.Text = "Upgrade";
this.btnBuy.UseVisualStyleBackColor = true;
this.btnBuy.Click += new EventHandler(this.btnBuy_Click);
this.groupBox3.Controls.Add((Control) this.btnLogout);
this.groupBox3.Controls.Add((Control) this.lblAccountEmail);
this.groupBox3.ForeColor = Color.Black;
this.groupBox3.Location = new Point(3, 6);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new Size(343, 61);
this.groupBox3.TabIndex = 4;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "Account";
this.btnLogout.ForeColor = Color.Black;
this.btnLogout.Location = new Point(230, 19);
this.btnLogout.Name = "btnLogout";
this.btnLogout.Size = new Size(99, 29);
this.btnLogout.TabIndex = 3;
this.btnLogout.Text = "Logout";
this.btnLogout.UseVisualStyleBackColor = true;
this.btnLogout.Click += new EventHandler(this.btnLogout_Click);
this.lblAccountEmail.AutoSize = true;
this.lblAccountEmail.LinkBehavior = LinkBehavior.HoverUnderline;
this.lblAccountEmail.LinkColor = Color.SteelBlue;
this.lblAccountEmail.Location = new Point(17, 27);
this.lblAccountEmail.Name = "lblAccountEmail";
this.lblAccountEmail.Size = new Size(112, 13);
this.lblAccountEmail.TabIndex = 0;
this.lblAccountEmail.TabStop = true;
this.lblAccountEmail.Text = "[email protected]";
this.lblAccountEmail.LinkClicked += new LinkLabelLinkClickedEventHandler(this.lblAccountEmail_LinkClicked);
this.tpAbout.BackColor = SystemColors.Control;
this.tpAbout.Controls.Add((Control) this.gbUpdate);
this.tpAbout.Controls.Add((Control) this.gbAbout);
this.tpAbout.Location = new Point(4, 22);
this.tpAbout.Name = "tpAbout";
this.tpAbout.Padding = new Padding(3);
this.tpAbout.Size = new Size(357, 251);
this.tpAbout.TabIndex = 3;
this.tpAbout.Text = "About";
this.gbUpdate.Controls.Add((Control) this.lblVersionNum);
this.gbUpdate.Controls.Add((Control) this.lblCurVersion);
this.gbUpdate.Controls.Add((Control) this.btnCheckForUpdates);
this.gbUpdate.ForeColor = Color.Black;
this.gbUpdate.Location = new Point(11, 89);
this.gbUpdate.Name = "gbUpdate";
this.gbUpdate.Size = new Size(343, 83);
this.gbUpdate.TabIndex = 3;
this.gbUpdate.TabStop = false;
this.gbUpdate.Text = "Update";
this.lblVersionNum.AutoSize = true;
this.lblVersionNum.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.lblVersionNum.ForeColor = Color.Black;
this.lblVersionNum.Location = new Point(223, 41);
this.lblVersionNum.Name = "lblVersionNum";
this.lblVersionNum.Size = new Size(88, 13);
this.lblVersionNum.TabIndex = 6;
this.lblVersionNum.Text = "2.0000000000";
this.lblCurVersion.AutoSize = true;
this.lblCurVersion.ForeColor = SystemColors.ControlDarkDark;
this.lblCurVersion.Location = new Point(142, 41);
this.lblCurVersion.Name = "lblCurVersion";
this.lblCurVersion.Size = new Size(82, 13);
this.lblCurVersion.TabIndex = 5;
this.lblCurVersion.Text = "Current Version:";
this.btnCheckForUpdates.ForeColor = Color.Black;
this.btnCheckForUpdates.Location = new Point(17, 33);
this.btnCheckForUpdates.Name = "btnCheckForUpdates";
this.btnCheckForUpdates.Size = new Size(119, 29);
this.btnCheckForUpdates.TabIndex = 4;
this.btnCheckForUpdates.Text = "Check For Updates";
this.btnCheckForUpdates.UseVisualStyleBackColor = true;
this.btnCheckForUpdates.Click += new EventHandler(this.btnCheckForUpdates_Click);
this.gbAbout.Controls.Add((Control) this.btnGetSupport);
this.gbAbout.Controls.Add((Control) this.lblSep0);
this.gbAbout.Controls.Add((Control) this.llblOpenSite);
this.gbAbout.Controls.Add((Control) this.llblTwitter);
this.gbAbout.ForeColor = Color.Black;
this.gbAbout.Location = new Point(11, 11);
this.gbAbout.Name = "gbAbout";
this.gbAbout.Size = new Size(343, 61);
this.gbAbout.TabIndex = 2;
this.gbAbout.TabStop = false;
this.gbAbout.Text = "About";
this.btnGetSupport.ForeColor = Color.Black;
this.btnGetSupport.Location = new Point(230, 19);
this.btnGetSupport.Name = "btnGetSupport";
this.btnGetSupport.Size = new Size(99, 29);
this.btnGetSupport.TabIndex = 3;
this.btnGetSupport.Text = "Get Support";
this.btnGetSupport.UseVisualStyleBackColor = true;
this.btnGetSupport.Click += new EventHandler(this.btnGetSupport_Click);
this.lblSep0.AutoSize = true;
this.lblSep0.ForeColor = SystemColors.AppWorkspace;
this.lblSep0.Location = new Point(100, 2Cool Man (aka Tustin);
this.lblSep0.Name = "lblSep0";
this.lblSep0.Size = new Size(9, 13);
this.lblSep0.TabIndex = 2;
this.lblSep0.Text = "|";
this.llblOpenSite.AutoSize = true;
this.llblOpenSite.LinkBehavior = LinkBehavior.HoverUnderline;
this.llblOpenSite.LinkColor = Color.SteelBlue;
this.llblOpenSite.Location = new Point(116, 27);
this.llblOpenSite.Name = "llblOpenSite";
this.llblOpenSite.Size = new Size(88, 13);
this.llblOpenSite.TabIndex = 1;
this.llblOpenSite.TabStop = true;
this.llblOpenSite.Text = "screensnapr.com";
this.llblOpenSite.LinkClicked += new LinkLabelLinkClickedEventHandler(this.llblOpenSite_LinkClicked);
this.llblTwitter.AutoSize = true;
this.llblTwitter.LinkBehavior = LinkBehavior.HoverUnderline;
this.llblTwitter.LinkColor = Color.SteelBlue;
this.llblTwitter.Location = new Point(17, 27);
this.llblTwitter.Name = "llblTwitter";
this.llblTwitter.Size = new Size(76, 13);
this.llblTwitter.TabIndex = 0;
this.llblTwitter.TabStop = true;
this.llblTwitter.Text = "@screensnapr";
this.llblTwitter.LinkClicked += new LinkLabelLinkClickedEventHandler(this.llblTwitter_LinkClicked);
this.MainMenuStrip.AlwaysDrawStroke = false;
this.MainMenuStrip.AutoSize = false;
this.MainMenuStrip.BackColor = Color.White;
this.MainMenuStrip.CheckedColor = Color.FromArgb(214, 234, 244);
this.MainMenuStrip.GripStyle = ToolStripGripStyle.Hidden;
this.MainMenuStrip.ImageScalingSize = new Size(0, 0);
this.MainMenuStrip.Items.AddRange(new ToolStripItem[4]
{
(ToolStripItem) this.tabBtnConfigure,
(ToolStripItem) this.tabBtnServer,
(ToolStripItem) this.tabBtnAccnt,
(ToolStripItem) this.tabBtnAbout
});
this.MainMenuStrip.LayoutStyle = ToolStripLayoutStyle.HorizontalStackWithOverflow;
this.MainMenuStrip.Location = new Point(0, 0);
this.MainMenuStrip.Name = "MainMenuStrip";
this.MainMenuStrip.RenderMode = ToolStripRenderMode.Professional;
this.MainMenuStrip.Size = new Size(365, 5Cool Man (aka Tustin);
this.MainMenuStrip.StrokeColor = Color.FromArgb(130, 195, 22Cool Man (aka Tustin);
this.MainMenuStrip.TabIndex = 2;
this.MainMenuStrip.Text = "toolStrip2";
this.tabBtnConfigure.AutoSize = false;
this.tabBtnConfigure.Checked = true;
this.tabBtnConfigure.CheckState = CheckState.Checked;
this.tabBtnConfigure.Font = new Font("Microsoft Sans Serif", 8.25f);
this.tabBtnConfigure.Image = (Image) componentResourceManager.GetObject("tabBtnConfigure.Image");
this.tabBtnConfigure.ImageTransparentColor = Color.Magenta;
this.tabBtnConfigure.Margin = new Padding(6, 1, 0, 2);
this.tabBtnConfigure.Name = "tabBtnConfigure";
this.tabBtnConfigure.Size = new Size(68, 59);
this.tabBtnConfigure.Text = "Configure";
this.tabBtnConfigure.TextImageRelation = TextImageRelation.ImageAboveText;
this.tabBtnConfigure.Click += new EventHandler(this.tabBtnConfigure_Click);
this.tabBtnServer.AutoSize = false;
this.tabBtnServer.Font = new Font("Microsoft Sans Serif", 8.25f);
this.tabBtnServer.Image = (Image) componentResourceManager.GetObject("tabBtnServer.Image");
this.tabBtnServer.ImageTransparentColor = Color.Magenta;
this.tabBtnServer.Name = "tabBtnServer";
this.tabBtnServer.Size = new Size(68, 59);
this.tabBtnServer.Text = "Server";
this.tabBtnServer.TextImageRelation = TextImageRelation.ImageAboveText;
this.tabBtnServer.Click += new EventHandler(this.tabBtnServer_Click);
this.tabBtnAccnt.AutoSize = false;
this.tabBtnAccnt.Font = new Font("Microsoft Sans Serif", 8.25f);
this.tabBtnAccnt.Image = (Image) componentResourceManager.GetObject("tabBtnAccnt.Image");
this.tabBtnAccnt.ImageTransparentColor = Color.Magenta;
this.tabBtnAccnt.Name = "tabBtnAccnt";
this.tabBtnAccnt.Size = new Size(68, 59);
this.tabBtnAccnt.Text = "Account";
this.tabBtnAccnt.TextImageRelation = TextImageRelation.ImageAboveText;
this.tabBtnAccnt.Click += new EventHandler(this.tabBtnAccnt_Click);
this.tabBtnAbout.AutoSize = false;
this.tabBtnAbout.Font = new Font("Microsoft Sans Serif", 8.25f);
this.tabBtnAbout.Image = (Image) componentResourceManager.GetObject("tabBtnAbout.Image");
this.tabBtnAbout.ImageTransparentColor = Color.Magenta;
this.tabBtnAbout.Name = "tabBtnAbout";
this.tabBtnAbout.Size = new Size(68, 59);
this.tabBtnAbout.Text = "About";
this.tabBtnAbout.TextImageRelation = TextImageRelation.ImageAboveText;
this.tabBtnAbout.Click += new EventHandler(this.tabBtnAbout_Click);
this.AutoScaleDimensions = new SizeF(6f, 13f);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(365, 379);
this.Controls.Add((Control) this.panelMiddle);
this.Controls.Add((Control) this.panelTop);
this.Controls.Add((Control) this.panelBottom);
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmMain";
this.StartPosition = FormStartPosition.CenterScreen;
this.Text = "ScreenSnapr";
this.FormClosing += new FormClosingEventHandler(this.frmMain_FormClosing);
this.panelBottom.ResumeLayout(false);
this.panelTop.ResumeLayout(false);
this.panelMiddle.ResumeLayout(false);
this.MainTabs.ResumeLayout(false);
this.tpConfig.ResumeLayout(false);
this.gbAdvOpts.ResumeLayout(false);
this.gbAdvOpts.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.tpServer.ResumeLayout(false);
this.gbServerOpts.ResumeLayout(false);
this.gbServerOpts.PerformLayout();
this.tpAccount.ResumeLayout(false);
this.AccountTabControl.ResumeLayout(false);
this.tabPageRegisterAccount.ResumeLayout(false);
this.gbAccount.ResumeLayout(false);
this.gbAccount.PerformLayout();
this.tabPageAccountInfo.ResumeLayout(false);
this.gbUpgrade.ResumeLayout(false);
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.tpAbout.ResumeLayout(false);
this.gbUpdate.ResumeLayout(false);
this.gbUpdate.PerformLayout();
this.gbAbout.ResumeLayout(false);
this.gbAbout.PerformLayout();
this.MainMenuStrip.ResumeLayout(false);
this.MainMenuStrip.PerformLayout();
this.ResumeLayout(false);
}
}
}

07-25-2012, 09:31 PM #4
Default Avatar
Brad
Guest
Originally posted by RuffRage View Post
In what way? wysiwyg?

Also, totally off topic but lol at:

    
// Type: ScreenSnapr.frmMain
// Assembly: ScreenSnapr, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// Assembly location: C:\Program Files (x86)\ScreenSnapr\ScreenSnapr.exe

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.IO;
using System.Media;
using System.Net;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading;
using System.Windows.Forms;

namespace ScreenSnapr
{
public class frmMain : Form
{
private static bool bHasRemoteConnection = true;
public static bool TrayOptionsVisible = false;
private bool bShowIntentError = true;
private int oldIconIndex = -1;
private const int GWL_EXSTYLE = -20;
private const int WS_EX_TOOLWINDOW = 128;
private const int WS_EX_APPWINDOW = 262144;
private SettingsRequest serverSettingsRequest;
private AuthRequest serverAuthRequest;
private Keys currentHotKey;
private Keys currentClipHotKey;
private SystemHotkey snapHotkey;
private SystemHotkey clipBoardHotkey;
private frmCapture captureForm;
private IconHelper iconHelper;
private TrayNotifications notifications;
private bool bAuthCompleted;
private Intent excecutingIntent;
private bool bLoadingComplete;
private bool bShouldShowNag;
private frmDropZone dz;
private IContainer components;
private Panel panelBottom;
private Panel panelTop;
private Panel panelMiddle;
private HiddenTabControl MainTabs;
private TabPage tpConfig;
private GroupBox gbAdvOpts;
public TextBox tbHotkey;
private Label lblHotkey;
public ComboBox cobImageType;
private Label lblImageType;
private GroupBox groupBox1;
public CheckBox cbEnableHUB;
public CheckBox cbPlaySounds;
public CheckBox cbShrinkURL;
public CheckBox cbRunAtLogin;
private TabPage tpServer;
private TabPage tpAccount;
private TabPage tpAbout;
private GroupBox gbUpdate;
private Label lblVersionNum;
private Label lblCurVersion;
public Button btnCheckForUpdates;
private GroupBox gbAbout;
private Button btnGetSupport;
private Label lblSep0;
private LinkLabel llblOpenSite;
private LinkLabel llblTwitter;
private Button btnOK;
private NotifyIcon TrayIcon;
private ContextMenu TrayOptions;
private MenuItem miHistoryActivate;
private MenuItem miOptions;
private MenuItem miClose;
private MenuItem menuItem3;
private ImageList IconList;
private GroupBox gbServerOpts;
private TextBox tbPort;
private Label lblFTPPort;
public Button btnTestFTP;
private Label lblFTPImageDir;
public RadioButton cbUseCustomServers;
public RadioButton cbUseSSServers;
public TextBox tbFTPImgDir;
private Label lblOutputURL;
private Label lblFTPPassword;
private Label lblFTPUsername;
private Label lblFTPHost;
public TextBox tbOutputURL;
public TextBox tbPassword;
public TextBox tbUsername;
public TextBox tbHost;
private HiddenTabControl AccountTabControl;
private TabPage tabPageRegisterAccount;
private GroupBox gbAccount;
private Label label2;
private LinkLabel llCreateAccount;
public Label lblRegister;
private Label lblPass;
private Label lblEmail;
public TextBox tbAccntPassword;
public TextBox tbAccntUsername;
private TabPage tabPageAccountInfo;
public Button btnLogin;
private LinkLabel llBuyPremium;
private LinkLabel llBuyFull;
public TextBox tbCliphotkey;
private Label label1;
private SSToolStrip MainMenuStrip;
private ToolStripButton tabBtnConfigure;
private ToolStripButton tabBtnServer;
private ToolStripButton tabBtnAccnt;
private ToolStripButton tabBtnAbout;
private Label label4;
private ComboBox cbHashPrefix;
private ComboBox cbHashLength;
private Label label3;
private GroupBox gbUpgrade;
public Button btnBuy;
private GroupBox groupBox3;
private Button btnLogout;
private LinkLabel lblAccountEmail;
public Button btnCP;
public CheckBox cbAllowDrag;

public static bool HasRemoteConnection
{
get
{
return frmMain.bHasRemoteConnection;
}
set
{
frmMain.bHasRemoteConnection = value;
}
}

protected override CreateParams CreateParams
{
get
{
CreateParams createParams = base.CreateParams;
if (!this.Visible)
createParams.ExStyle |= 128;
return createParams;
}
}

static frmMain()
{
}

public frmMain()
{
this.InitializeComponent();
this.LoadSettings();
this.notifications = new TrayNotifications(this.TrayIcon);
this.iconHelper = new IconHelper();
this.snapHotkey = new SystemHotkey();
this.snapHotkey.Pressed += new EventHandler(this.SnapHotkey_Pressed);
this.snapHotkey.RegisterHotkey((Keys) AppSettings.CapHotkey);
this.currentHotKey = (Keys) AppSettings.CapHotkey;
this.clipBoardHotkey = new SystemHotkey();
this.clipBoardHotkey.Pressed += new EventHandler(this.ClipDataHotkey_Pressed);
this.clipBoardHotkey.RegisterHotkey((Keys) AppSettings.ClipHotkey);
this.currentClipHotKey = (Keys) AppSettings.ClipHotkey;
this.captureForm = new frmCapture();
this.TrayIcon.ContextMenu = this.TrayOptions;
this.TrayIcon.Icon = this.iconHelper.GetByName("loading");
this.serverAuthRequest = new AuthRequest();
this.serverAuthRequest.RequestComplete += new EventHandler(this.serverAuthRequest_OnRequestComplete);
this.serverSettingsRequest = new SettingsRequest();
this.serverSettingsRequest.RequestComplete += new EventHandler(this.settingsRequest_OnRequestComplete);
int spinUpTime = 0;
string[] commandLineArgs = Environment.GetCommandLineArgs();
if (commandLineArgs.Length > 1 && !string.IsNullOrEmpty(commandLineArgs[1]) && commandLineArgs[1].Equals("/winstart"))
{
this.TrayIcon.Text = "Initializing...";
spinUpTime = 8000;
}
new Thread((ThreadStart) (() =>
{
Thread.Sleep(spinUpTime);
this.serverSettingsRequest.Request();
})).Start();
this.HideForm();
this.lblVersionNum.Text = Application.ProductVersion;
this.dz = new frmDropZone(this.TrayIcon);
this.dz.OnFileDropped += new frmDropZone.FileDropped(this.dz_OnFileDropped);
if (!AppSettings.AllowDragDrop)
return;
((Control) this.dz).Show();
}

private void ShowNag()
{
frmNag frmFirst = new frmNag();
frmFirst.FormClosing += (FormClosingEventHandler) ((ss, ee) =>
{
if (frmFirst.Action == frmNag.FirstRunAction.CREATE)
this.llCreateAccount_LinkClicked((object) null, (LinkLabelLinkClickedEventArgs) null);
else if (frmFirst.Action == frmNag.FirstRunAction.LOGIN)
this.Invoke((Delegate) (() =>
{
this.MainTabs.SelectedIndex = 2;
(this.MainMenuStrip.Items[0] as ToolStripButton).Checked = false;
(this.MainMenuStrip.Items[2] as ToolStripButton).Checked = true;
this.ShowForm();
}));
if (!AppSettings.FirstRun)
return;
this.notifications.ShowNotification("Welcome to ScreenSnapr", "Press Control + 1 to begin");
});
((Control) frmFirst).Show();
}

private void SnapHotkey_Pressed(object sender, EventArgs e)
{
if (!this.bAuthCompleted)
{
this.notifications.ShowNotification("ScreenSnapr", "ScreenSnapr is still loading, please wait...");
}
else
{
this.TrayIcon.Icon = this.iconHelper.GetByName("uploading.loading-0");
this.captureForm.PrepareForCapture();
if (this.captureForm.ShowDialog() == DialogResult.OK)
{
if (!AppSettings.UseHub)
{
this.StartIntent(!AppSettings.UseFTP ? (Intent) new HttpUploadIntent() : (Intent) new FTPUploadIntent(), this.captureForm.CapturedImage);
}
else
{
frmHUB frmHub = new frmHUB(this.captureForm.CapturedImage);
if (frmHub.ShowDialog() == DialogResult.OK)
this.StartIntent(frmHub.ChosenIntent, frmHub.FinalImage);
else
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
}
try
{
this.captureForm.CleanUp();
GC.Collect();
}
catch
{
}
}
else
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
AppSettings.FirstSnap = false;
}
}

private void ClipDataHotkey_Pressed(object sender, EventArgs e)
{
if (!this.bAuthCompleted)
{
this.notifications.ShowNotification("ScreenSnapr", "ScreenSnapr is still loading, please wait...");
}
else
{
this.TrayIcon.Icon = this.iconHelper.GetByName("uploading.loading-0");
Intent intent = !AppSettings.UseFTP ? (Intent) new HttpUploadIntent() : (Intent) new FTPUploadIntent();
if (Clipboard.ContainsImage())
intent.Image = Clipboard.GetImage();
else if (Clipboard.GetFileDropList().Count > 0)
{
if (Clipboard.GetFileDropList().Count > 1)
{
this.notifications.ShowNotification("Error", "ScreenSnapr currently only supports single file uploads, you have " + Clipboard.GetFileDropList().Count.ToString() + " files in your clipboard");
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
return;
}
else
{
string filename = Clipboard.GetFileDropList()[0];
if (!string.IsNullOrEmpty(filename))
{
try
{
intent.Image = Image.FromFile(filename);
}
catch
{
intent.Image = (Image) null;
}
}
}
}
else if (Clipboard.ContainsText())
{
Graphics graphics1 = this.CreateGraphics();
if (graphics1 != null)
{
SizeF sizeF = graphics1.MeasureString(Clipboard.GetText(), new Font("Verdana", 10f, FontStyle.Regular));
Bitmap bitmap = new Bitmap((int) sizeF.Width + 10, (int) sizeF.Height + 10);
Graphics graphics2 = Graphics.FromImage((Image) bitmap);
graphics2.FillRectangle((Brush) new SolidBrush(Color.White), new Rectangle(0, 0, (int) sizeF.Width, (int) sizeF.Height));
graphics2.SmoothingMode = SmoothingMode.AntiAlias;
graphics2.DrawString(Clipboard.GetText(), new Font("Verdana", 10f, FontStyle.Regular), SystemBrushes.WindowText, new PointF(10f, 10f), StringFormat.GenericTypographic);
intent.Image = (Image) bitmap;
}
else
intent.Image = (Image) null;
}
if (intent.Image == null)
{
this.notifications.ShowNotification("ScreenSnapr", "Invalid clipboard data, can not upload");
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
}
else
this.StartIntent(intent, intent.Image);
}
}

private void dz_OnFileDropped(string filePath)
{
if (!ScreenSnapr.Helpers.IsImageFile(filePath))
this.notifications.ShowNotification("ScreenSnapr", "Invalid file type...");
else if (!this.bAuthCompleted)
{
this.notifications.ShowNotification("ScreenSnapr", "ScreenSnapr is still loading, please wait...");
}
else
{
this.TrayIcon.Icon = this.iconHelper.GetByName("uploading.loading-0");
if (!AppSettings.UseHub)
{
Intent intent = !AppSettings.UseFTP ? (Intent) new HttpUploadIntent() : (Intent) new FTPUploadIntent();
(intent as UploadIntent).FileExt = Path.GetExtension(filePath);
this.StartIntent(intent, Image.FromFile(filePath, true));
}
else
{
frmHUB frmHub = new frmHUB(Image.FromFile(filePath, true));
if (frmHub.ShowDialog() == DialogResult.OK)
this.StartIntent(frmHub.ChosenIntent, frmHub.FinalImage);
else
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
}
}
}

private void StartIntent(Intent intent, Image img)
{
intent.Image = img;
this.excecutingIntent = intent;
if (intent.GetType() == typeof (HttpUploadIntent) && !frmMain.HasRemoteConnection)
{
this.notifications.ShowNotification("ScreenSnapr", "Unable to connect to connect to ScreenSnapr servers");
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
}
else
{
if (intent.GetType() == typeof (HttpUploadIntent) || intent.GetType() == typeof (FTPUploadIntent))
{
MenuItem menuItem = new MenuItem("Cancel...");
this.TrayOptions.MenuItems.Add(0, new MenuItem("-"));
this.TrayOptions.MenuItems.Add(0, menuItem);
menuItem.Click += (EventHandler) ((sss, eee) =>
{
this.bShowIntentError = false;
(this.excecutingIntent as UploadIntent).Cancel();
});
(this.excecutingIntent as UploadIntent).OnProgressChanged += (UploadIntent.ProgressChanged) (prog =>
{
this.TrayOptions.MenuItems[0].Text = string.Format("Cancel...{0}%", (object) prog);
int local_0 = (int) ((double) prog / 5.88000011444092);
if (local_0 > 16)
local_0 = 16;
if (local_0 < 0)
local_0 = 0;
if (this.oldIconIndex != -1 && local_0 == this.oldIconIndex)
return;
this.TrayIcon.Icon = this.iconHelper.GetByName(string.Format("uploading.loading-{0}", (object) local_0));
this.oldIconIndex = local_0;
});
}
intent.IntentComplete += (EventHandler) ((send, ev) =>
{
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
if (intent.Error != null)
{
if (this.bShowIntentError)
{
int temp_147 = (int) new frmError(this.TrayIcon)
{
Error = intent.Error
}.ShowDialog();
}
this.bShowIntentError = true;
}
if (intent.Error == null)
this.notifications.ShowNotification("ScreenSnapr", intent.NotificationMessage);
if (AppSettings.UseSounds && intent.AlertWithSound)
new SoundPlayer(Assembly.GetExecutingAssembly().GetManifestResourceStream("ScreenSnapr.blip.wav")).Play();
if (intent.GetType() != typeof (HttpUploadIntent) && intent.GetType() != typeof (FTPUploadIntent))
return;
this.TrayOptions.MenuItems.RemoveAt(0);
this.TrayOptions.MenuItems.RemoveAt(0);
if (intent.GetType() != typeof (HttpUploadIntent))
return;
this.RefreshHistory();
});
intent.Execute();
}
}

private void RefreshHistory()
{
if (this.TrayIcon.ContextMenu.MenuItems[0].Enabled)
this.TrayIcon.ContextMenu.MenuItems[0].MenuItems.Clear();
foreach (string str in HistoryRequest.HistoryItems)
this.TrayIcon.ContextMenu.MenuItems[0].MenuItems.Add((MenuItem) new HistoryMenuItem(Path.GetFileName(str), str));
}

private void serverAuthRequest_OnRequestComplete(object sender, EventArgs e)
{
this.bAuthCompleted = true;
this.LoadPremiumSettings();
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
if (AuthRequest.IsRegistered)
{
this.SetAccountInformationPanel(AppSettings.AppUserEmail, AuthRequest.UserType);
HistoryRequest historyRequest = new HistoryRequest();
historyRequest.RequestComplete += (EventHandler) ((xx, yy) => this.Invoke((Delegate) (() => this.RefreshHistory())));
historyRequest.Request();
}
else
{
if (!AppSettings.AllowedToNag || !this.bShouldShowNag)
return;
this.Invoke((Delegate) (() =>
{
this.bShouldShowNag = false;
this.ShowNag();
}));
}
}

private void settingsRequest_OnRequestComplete(object sender, EventArgs e)
{
this.TrayIcon.Text = "ScreenSnapr";
SettingsRequest settingsRequest = sender as SettingsRequest;
if (settingsRequest.Error != null)
{
this.TrayIcon.Icon = this.iconHelper.GetByName("error");
int num = (int) new frmError(this.TrayIcon)
{
Error = settingsRequest.Error
}.ShowDialog();
frmMain.bHasRemoteConnection = false;
}
if (frmMain.bHasRemoteConnection)
{
this.CheckForUpdate(false);
this.bShouldShowNag = true;
this.serverAuthRequest.SetCreds(AppSettings.AppUserEmail, AppSettings.AppUserPass);
this.serverAuthRequest.Request();
}
else
{
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
this.bAuthCompleted = true;
AuthRequest.IsPremium = true;
this.LoadPremiumSettings();
}
}

private void btnWebApp_Click(object sender, EventArgs e)
{
WebPages.WebApp();
}

private void llblTwitter_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
WebPages.Tweeter();
}

private void llblOpenSite_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
WebPages.MainSite();
}

private void llBuyFull_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
WebPages.BuyFull();
}

private void llBuyPremium_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
WebPages.BuyFull();
}

private void tabBtnConfigure_Click(object sender, EventArgs e)
{
this.MainTabs.SelectedIndex = 0;
}

private void tabBtnServer_Click(object sender, EventArgs e)
{
this.MainTabs.SelectedIndex = 1;
}

private void tabBtnAccnt_Click(object sender, EventArgs e)
{
this.MainTabs.SelectedIndex = 2;
}

private void tabBtnAbout_Click(object sender, EventArgs e)
{
this.MainTabs.SelectedIndex = 3;
}

private void lblAccountEmail_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
WebPages.WebApp();
}

private void cbHashPrefix_SelectedIndexChanged(object sender, EventArgs e)
{
if (this.cbHashPrefix.SelectedIndex != 2 || !this.bLoadingComplete)
return;
frmPrefixSelector frmPrefixSelector = new frmPrefixSelector(AppSettings.FTPPrefix);
if (frmPrefixSelector.ShowDialog() != DialogResult.OK)
return;
AppSettings.FTPPrefix = frmPrefixSelector.Result;
}

private void FTPOption_CheckChanged(object sender, EventArgs e)
{
this.ToggleFTPSettings();
}

private void tbHotKey_KeyDown(object sender, KeyEventArgs e)
{
this.tbHotkey.Text = new KeysConverter().ConvertToString((object) e.KeyData);
this.currentHotKey = e.KeyData;
e.Handled = true;
e.SuppressKeyPress = true;
}

private void ClipHotkey_KeyDown(object sender, KeyEventArgs e)
{
this.tbCliphotkey.Text = new KeysConverter().ConvertToString((object) e.KeyData);
this.currentClipHotKey = e.KeyData;
e.Handled = true;
e.SuppressKeyPress = true;
}

private void TrayIcon_MouseDoubleClick(object sender, MouseEventArgs e)
{
this.ShowForm();
}

private void btnTestFTP_Click(object sender, EventArgs e)
{
if (MessageBox.Show("ScreenSnapr is about to attempt to upload a test image. This make take a few seconds. Do you wish to continue?", "ScreenSnapr", MessageBoxButtons.YesNo, MessageBoxIcon.Asterisk) != DialogResult.Yes)
return;
this.SaveFTPSettings();
Intent ftpTestIntent = (Intent) new FTPUploadIntent();
ftpTestIntent.IntentComplete += (EventHandler) ((send, ev) =>
{
if (ftpTestIntent.Error != null)
{
int temp_41 = (int) new frmError(this.TrayIcon)
{
Error = ftpTestIntent.Error
}.ShowDialog();
}
else
{
int temp_31 = (int) MessageBox.Show("The FTP setup appears to be valid");
}
});
MemoryStream memoryStream = new MemoryStream(ScreenSnapr.Helpers.TestImage);
Image image = Image.FromStream((Stream) memoryStream);
memoryStream.Close();
ftpTestIntent.Image = image;
ftpTestIntent.Execute();
}

private void miOptions_Click(object sender, EventArgs e)
{
this.ShowForm();
}

private void miHistoryActivate_Click(object sender, EventArgs e)
{
WebPages.WebApp();
}

private void btnCheckForUpdates_Click(object sender, EventArgs e)
{
this.CheckForUpdate(true);
}

private void CheckForUpdate(bool alertUserToTheNeg = false)
{
if (!Updater.AppVersion.Equals(string.Empty) && !Updater.AppVersion.Equals(Application.ProductVersion))
{
int num1 = (int) new frmUpdate().ShowDialog();
}
else
{
if (!alertUserToTheNeg)
return;
int num2 = (int) MessageBox.Show("ScreenSnapr is up to date", "ScreenSnapr", MessageBoxButtons.OK);
}
}

private void btnGetSupport_Click(object sender, EventArgs e)
{
WebPages.GetSupport();
}

private void btnOK_Click(object sender, EventArgs e)
{
if (this.cbAllowDrag.Checked != AppSettings.AllowDragDrop)
{
if (this.cbAllowDrag.Checked)
((Control) this.dz).Show();
else
this.dz.Hide();
}
this.Close();
}

private void frmMain_FormClosing(object sender, FormClosingEventArgs e)
{
if (e == null || e.CloseReason != CloseReason.UserClosing)
return;
this.SaveSettings();
if (e != null)
e.Cancel = true;
this.HideForm();
}

private void contextMenuClose_Click(object sender, EventArgs e)
{
AppSettings.FirstRun = false;
this.SaveSettings();
Application.Exit();
this.dz.CleanUp();
}

public void SaveSettings()
{
AppSettings.UseFTP = this.cbUseCustomServers.Checked;
AppSettings.ShrinkURL = this.cbShrinkURL.Checked;
AppSettings.UseHub = this.cbEnableHUB.Checked;
AppSettings.UseSounds = this.cbPlaySounds.Checked;
AppSettings.AllowDragDrop = this.cbAllowDrag.Checked;
this.SaveFTPSettings();
try
{
AppSettings.FTPPort = int.Parse(this.tbPort.Text);
}
catch
{
AppSettings.FTPPort = 21;
}
AppSettings.ImageType = this.cobImageType.SelectedItem != null ? this.cobImageType.SelectedItem.ToString() : "JPG";
try
{
AppSettings.RunAtLogin = this.cbRunAtLogin.Checked;
}
catch
{
}
if (this.currentHotKey != (Keys) AppSettings.CapHotkey)
{
if (!this.snapHotkey.RegisterHotkey(this.currentHotKey))
{
int num = (int) MessageBox.Show("The Hotkey you selected failed to register. Please try another.", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
AppSettings.CapHotkey = (int) this.currentHotKey;
}
if (this.currentClipHotKey == (Keys) AppSettings.ClipHotkey)
return;
if (!this.clipBoardHotkey.RegisterHotkey(this.currentClipHotKey))
{
int num1 = (int) MessageBox.Show("The Hotkey you selected failed to register. Please try another.", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
AppSettings.ClipHotkey = (int) this.currentClipHotKey;
}

private void SaveFTPSettings()
{
AppSettings.FTPServer = this.tbHost.Text;
AppSettings.FTPUser = this.tbUsername.Text;
AppSettings.FTPPass = this.tbPassword.Text;
AppSettings.FTPOut = this.tbOutputURL.Text;
AppSettings.FTPDir = this.tbFTPImgDir.Text;
if (!string.IsNullOrEmpty(this.cbHashLength.SelectedItem.ToString()))
AppSettings.HashLength = Convert.ToInt32(this.cbHashLength.SelectedItem);
AppSettings.PrefixType = this.cbHashPrefix.SelectedIndex;
}

public void LoadSettings()
{
this.cbShrinkURL.Checked = AppSettings.ShrinkURL;
this.cbRunAtLogin.Checked = AppSettings.RunAtLogin;
this.cbPlaySounds.Checked = AppSettings.UseSounds;
this.cbEnableHUB.Checked = AppSettings.UseHub;
this.cobImageType.Text = AppSettings.ImageType;
this.cbAllowDrag.Checked = AppSettings.AllowDragDrop;
KeysConverter keysConverter = new KeysConverter();
int capHotkey = AppSettings.CapHotkey;
this.tbHotkey.Text = keysConverter.ConvertToString((object) capHotkey);
int clipHotkey = AppSettings.ClipHotkey;
this.tbCliphotkey.Text = keysConverter.ConvertToString((object) clipHotkey);
this.cbUseCustomServers.Checked = AppSettings.UseFTP;
this.cbUseSSServers.Checked = !AppSettings.UseFTP;
this.tbHost.Text = AppSettings.FTPServer;
this.tbUsername.Text = AppSettings.FTPUser;
this.tbPassword.Text = AppSettings.FTPPass;
this.tbOutputURL.Text = AppSettings.FTPOut;
this.tbFTPImgDir.Text = AppSettings.FTPDir;
this.tbPort.Text = AppSettings.FTPPort.ToString();
this.cbHashLength.SelectedItem = (object) AppSettings.HashLength.ToString();
this.cbHashPrefix.SelectedIndex = AppSettings.PrefixType;
this.tbAccntUsername.Text = AppSettings.AppUserEmail;
this.tbAccntPassword.Text = AppSettings.AppUserPass;
this.ToggleFTPSettings();
this.bLoadingComplete = true;
}

private void LoadPremiumSettings()
{
this.Invoke((Delegate) (() => this.cbEnableHUB.Enabled = AuthRequest.IsPremium));
}

public void ToggleFTPSettings()
{
this.btnTestFTP.Enabled = this.cbUseCustomServers.Checked;
this.tbUsername.Enabled = this.cbUseCustomServers.Checked;
this.tbHost.Enabled = this.cbUseCustomServers.Checked;
this.tbPassword.Enabled = this.cbUseCustomServers.Checked;
this.tbOutputURL.Enabled = this.cbUseCustomServers.Checked;
this.tbFTPImgDir.Enabled = this.cbUseCustomServers.Checked;
this.tbPort.Enabled = this.cbUseCustomServers.Checked;
this.cbHashLength.Enabled = this.cbUseCustomServers.Checked;
this.cbHashPrefix.Enabled = this.cbUseCustomServers.Checked;
if (this.cbUseCustomServers.Checked)
{
this.cbUseCustomServers.ForeColor = Color.Black;
this.cbUseSSServers.ForeColor = Color.Silver;
}
if (!this.cbUseSSServers.Checked)
return;
this.cbUseSSServers.ForeColor = Color.Black;
this.cbUseCustomServers.ForeColor = Color.Silver;
}

[DllImport("user32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
private static bool SetForegroundWindow(IntPtr hWnd);

[DllImport("user32.dll")]
public static int SetWindowLong(IntPtr window, int index, int value);

[DllImport("user32.dll")]
public static int GetWindowLong(IntPtr window, int index);

[DllImport("user32")]
public static long SetWindowPos(IntPtr hwnd, int hWndInsertAfter, int X, int y, int cx, int cy, int wFlagslong);

[DllImport("use32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
public static bool GetCursorPos(out Point lpPoint);

private void HideForm()
{
this.Opacity = 0.0;
this.WindowState = FormWindowState.Minimized;
this.Visible = false;
this.ShowInTaskbar = false;
frmMain.SetWindowLong(this.Handle, -20, frmMain.GetWindowLong(this.Handle, -20));
this.SendToBack();
}

private void ShowForm()
{
this.Visible = true;
this.WindowState = FormWindowState.Normal;
frmMain.SetWindowLong(this.Handle, -20, frmMain.GetWindowLong(this.Handle, -20) | 12Cool Man (aka Tustin);
this.ShowInTaskbar = true;
this.BringToFront();
this.Focus();
this.Opacity = 100.0;
}

private void llCreateAccount_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
if (!frmMain.HasRemoteConnection)
{
this.notifications.ShowNotification("ScreenSnapr", "Unable to connect to connect to ScreenSnapr servers, can't create account at this moment.");
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
}
else
{
frmCreateAccount frmCreateAccount = new frmCreateAccount();
if (frmCreateAccount.ShowDialog() != DialogResult.OK)
return;
Dictionary<string, string> fields = new Dictionary<string, string>()
{
{
"email",
frmCreateAccount.Username
},
{
"pass",
frmCreateAccount.Password
}
};
PostFormBuilder postFormBuilder = new PostFormBuilder();
postFormBuilder.AddFields(fields);
postFormBuilder.End();
Server.UploadDataAsync(new Uri(SettingsRequest.CreatePath), postFormBuilder.ContentType, postFormBuilder.GetBytes(), 10000, new Server.RequestCompletedEventHandler(this.CreateAccountRequestComplete), (Server.RequestProgressEventHandler) null);
}
}

private void CreateAccountRequestComplete(HttpWebRequest request, HttpWebResponse response, Dictionary<string, string> json, Exception error)
{
if (error != null)
{
int num1 = (int) new frmError(this.TrayIcon)
{
Error = error
}.ShowDialog();
}
else
{
if (json == null)
return;
string str1 = string.Empty;
json.TryGetValue("status", out str1);
string str2 = string.Empty;
json.TryGetValue("name", out str2);
if (!str2.Equals("create"))
{
int num2 = (int) MessageBox.Show("Error registering your account", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
else if (str1.Equals("complete"))
{
int num3 = (int) MessageBox.Show("Your account has been registered", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
string str3;
json.TryGetValue("username", out str3);
string stri;
json.TryGetValue("password", out stri);
AppSettings.AppUserEmail = str3;
AppSettings.AppUserPass = ScreenSnapr.Helpers.HashString(stri);
AuthRequest.IsRegistered = true;
this.Invoke((Delegate) (() =>
{
this.AccountTabControl.SelectedIndex = 1;
this.lblAccountEmail.Text = string.Format("{0}", (object) AppSettings.AppUserEmail);
}));
}
else
{
if (!str1.Equals("error"))
return;
string str3 = string.Empty;
json.TryGetValue("error", out str3);
if (str3.Equals(string.Empty))
return;
int num3 = (int) MessageBox.Show("Error registering your account", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
}
}
}

private void btnLogin_Click(object sender, EventArgs e)
{
if (!frmMain.HasRemoteConnection)
{
this.notifications.ShowNotification("ScreenSnapr", "Unable to connect to connect to ScreenSnapr servers, can't authorize at this moment.");
this.TrayIcon.Icon = this.iconHelper.GetByName("main");
}
else
{
AuthRequest authRequest = new AuthRequest();
authRequest.SetCreds(this.tbAccntUsername.Text, ScreenSnapr.Helpers.HashString(this.tbAccntPassword.Text));
authRequest.RequestComplete += (EventHandler) ((req_sender, req_e) =>
{
if (AuthRequest.IsPremium || AuthRequest.IsRegistered)
{
AppSettings.AppUserEmail = this.tbAccntUsername.Text;
AppSettings.AppUserPass = ScreenSnapr.Helpers.HashString(this.tbAccntPassword.Text);
int temp_37 = (int) MessageBox.Show("You have successfully logged in", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
else
{
int temp_48 = (int) MessageBox.Show("Unable to login. Check your login credentials", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
this.bShouldShowNag = false;
this.serverAuthRequest_OnRequestComplete(req_sender, req_e);
});
authRequest.Request();
}
}

private void SetAccountInformationPanel(string email, string userType)
{
this.Invoke((Delegate) (() =>
{
this.AccountTabControl.SelectedIndex = 1;
this.lblAccountEmail.Text = string.Format("{0}", (object) email);
if (!(userType == "paid_user") && !(userType == "admin"))
return;
this.btnBuy.Enabled = false;
}));
}

private void btnLogout_Click(object sender, EventArgs e)
{
AppSettings.AppUserPass = AppSettings.AppUserEmail = string.Empty;
AuthRequest.IsPremium = false;
this.cbEnableHUB.Enabled = false;
this.AccountTabControl.SelectedIndex = 0;
}

private void btnBuy_Click(object sender, EventArgs e)
{
WebPages.BuyFull();
}

private void btnCP_Click(object sender, EventArgs e)
{
WebPages.WebApp();
}

private void tbAccntPassword_KeyPress(object sender, KeyPressEventArgs e)
{
if ((int) e.KeyChar != 13)
return;
this.btnLogin_Click((object) null, (EventArgs) null);
}

protected override void Dispose(bool disposing)
{
if (disposing && this.components != null)
this.components.Dispose();
base.Dispose(disposing);
}

private void InitializeComponent()
{
this.components = (IContainer) new Container();
ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (frmMain));
this.panelBottom = new Panel();
this.btnOK = new Button();
this.panelTop = new Panel();
this.panelMiddle = new Panel();
this.TrayIcon = new NotifyIcon(this.components);
this.TrayOptions = new ContextMenu();
this.miHistoryActivate = new MenuItem();
this.miOptions = new MenuItem();
this.menuItem3 = new MenuItem();
this.miClose = new MenuItem();
this.IconList = new ImageList(this.components);
this.MainTabs = new HiddenTabControl();
this.tpConfig = new TabPage();
this.gbAdvOpts = new GroupBox();
this.tbCliphotkey = new TextBox();
this.label1 = new Label();
this.tbHotkey = new TextBox();
this.lblHotkey = new Label();
this.cobImageType = new ComboBox();
this.lblImageType = new Label();
this.groupBox1 = new GroupBox();
this.cbAllowDrag = new CheckBox();
this.llBuyPremium = new LinkLabel();
this.cbEnableHUB = new CheckBox();
this.cbPlaySounds = new CheckBox();
this.cbShrinkURL = new CheckBox();
this.cbRunAtLogin = new CheckBox();
this.tpServer = new TabPage();
this.gbServerOpts = new GroupBox();
this.label4 = new Label();
this.cbHashPrefix = new ComboBox();
this.cbHashLength = new ComboBox();
this.label3 = new Label();
this.tbPort = new TextBox();
this.lblFTPPort = new Label();
this.btnTestFTP = new Button();
this.lblFTPImageDir = new Label();
this.cbUseCustomServers = new RadioButton();
this.cbUseSSServers = new RadioButton();
this.tbFTPImgDir = new TextBox();
this.lblOutputURL = new Label();
this.lblFTPPassword = new Label();
this.lblFTPUsername = new Label();
this.lblFTPHost = new Label();
this.tbOutputURL = new TextBox();
this.tbPassword = new TextBox();
this.tbUsername = new TextBox();
this.tbHost = new TextBox();
this.tpAccount = new TabPage();
this.AccountTabControl = new HiddenTabControl();
this.tabPageRegisterAccount = new TabPage();
this.gbAccount = new GroupBox();
this.llBuyFull = new LinkLabel();
this.label2 = new Label();
this.llCreateAccount = new LinkLabel();
this.lblRegister = new Label();
this.btnLogin = new Button();
this.lblPass = new Label();
this.lblEmail = new Label();
this.tbAccntPassword = new TextBox();
this.tbAccntUsername = new TextBox();
this.tabPageAccountInfo = new TabPage();
this.gbUpgrade = new GroupBox();
this.btnCP = new Button();
this.btnBuy = new Button();
this.groupBox3 = new GroupBox();
this.btnLogout = new Button();
this.lblAccountEmail = new LinkLabel();
this.tpAbout = new TabPage();
this.gbUpdate = new GroupBox();
this.lblVersionNum = new Label();
this.lblCurVersion = new Label();
this.btnCheckForUpdates = new Button();
this.gbAbout = new GroupBox();
this.btnGetSupport = new Button();
this.lblSep0 = new Label();
this.llblOpenSite = new LinkLabel();
this.llblTwitter = new LinkLabel();
this.MainMenuStrip = new SSToolStrip();
this.tabBtnConfigure = new ToolStripButton();
this.tabBtnServer = new ToolStripButton();
this.tabBtnAccnt = new ToolStripButton();
this.tabBtnAbout = new ToolStripButton();
this.panelBottom.SuspendLayout();
this.panelTop.SuspendLayout();
this.panelMiddle.SuspendLayout();
this.MainTabs.SuspendLayout();
this.tpConfig.SuspendLayout();
this.gbAdvOpts.SuspendLayout();
this.groupBox1.SuspendLayout();
this.tpServer.SuspendLayout();
this.gbServerOpts.SuspendLayout();
this.tpAccount.SuspendLayout();
this.AccountTabControl.SuspendLayout();
this.tabPageRegisterAccount.SuspendLayout();
this.gbAccount.SuspendLayout();
this.tabPageAccountInfo.SuspendLayout();
this.gbUpgrade.SuspendLayout();
this.groupBox3.SuspendLayout();
this.tpAbout.SuspendLayout();
this.gbUpdate.SuspendLayout();
this.gbAbout.SuspendLayout();
this.MainMenuStrip.SuspendLayout();
this.SuspendLayout();
this.panelBottom.Controls.Add((Control) this.btnOK);
this.panelBottom.Dock = DockStyle.Bottom;
this.panelBottom.Location = new Point(0, 336);
this.panelBottom.Name = "panelBottom";
this.panelBottom.Size = new Size(365, 43);
this.panelBottom.TabIndex = 4;
this.btnOK.ForeColor = Color.Black;
this.btnOK.Location = new Point(279, 10);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new Size(75, 23);
this.btnOK.TabIndex = 16;
this.btnOK.Text = "OK";
this.btnOK.UseVisualStyleBackColor = true;
this.btnOK.Click += new EventHandler(this.btnOK_Click);
this.panelTop.Controls.Add((Control) this.MainMenuStrip);
this.panelTop.Dock = DockStyle.Top;
this.panelTop.Location = new Point(0, 0);
this.panelTop.Name = "panelTop";
this.panelTop.Size = new Size(365, 59);
this.panelTop.TabIndex = 5;
this.panelMiddle.Controls.Add((Control) this.MainTabs);
this.panelMiddle.Dock = DockStyle.Fill;
this.panelMiddle.Location = new Point(0, 59);
this.panelMiddle.Name = "panelMiddle";
this.panelMiddle.Size = new Size(365, 277);
this.panelMiddle.TabIndex = 6;
this.TrayIcon.Icon = (Icon) componentResourceManager.GetObject("TrayIcon.Icon");
this.TrayIcon.Text = "ScreenSnapr";
this.TrayIcon.Visible = true;
this.TrayIcon.MouseDoubleClick += new MouseEventHandler(this.TrayIcon_MouseDoubleClick);
this.TrayOptions.MenuItems.AddRange(new MenuItem[4]
{
this.miHistoryActivate,
this.miOptions,
this.menuItem3,
this.miClose
});
this.miHistoryActivate.Index = 0;
this.miHistoryActivate.Text = "Image History";
this.miHistoryActivate.Click += new EventHandler(this.miHistoryActivate_Click);
this.miOptions.Index = 1;
this.miOptions.Text = "Preferences";
this.miOptions.Click += new EventHandler(this.miOptions_Click);
this.menuItem3.Index = 2;
this.menuItem3.Text = "-";
this.miClose.Index = 3;
this.miClose.Text = "Exit";
this.miClose.Click += new EventHandler(this.contextMenuClose_Click);
this.IconList.ImageStream = (ImageListStreamer) componentResourceManager.GetObject("IconList.ImageStream");
this.IconList.TransparentColor = Color.Transparent;
this.IconList.Images.SetKeyName(0, "main.ico");
this.IconList.Images.SetKeyName(1, "loading.ico");
this.IconList.Images.SetKeyName(2, "upload.ico");
this.IconList.Images.SetKeyName(3, "error.ico");
this.MainTabs.Controls.Add((Control) this.tpConfig);
this.MainTabs.Controls.Add((Control) this.tpServer);
this.MainTabs.Controls.Add((Control) this.tpAccount);
this.MainTabs.Controls.Add((Control) this.tpAbout);
this.MainTabs.Dock = DockStyle.Fill;
this.MainTabs.Location = new Point(0, 0);
this.MainTabs.Name = "MainTabs";
this.MainTabs.SelectedIndex = 0;
this.MainTabs.Size = new Size(365, 277);
this.MainTabs.TabIndex = 1;
this.tpConfig.BackColor = SystemColors.Control;
this.tpConfig.Controls.Add((Control) this.gbAdvOpts);
this.tpConfig.Controls.Add((Control) this.groupBox1);
this.tpConfig.Location = new Point(4, 22);
this.tpConfig.Name = "tpConfig";
this.tpConfig.Padding = new Padding(3);
this.tpConfig.Size = new Size(357, 251);
this.tpConfig.TabIndex = 0;
this.tpConfig.Text = "Config";
this.gbAdvOpts.Controls.Add((Control) this.tbCliphotkey);
this.gbAdvOpts.Controls.Add((Control) this.label1);
this.gbAdvOpts.Controls.Add((Control) this.tbHotkey);
this.gbAdvOpts.Controls.Add((Control) this.lblHotkey);
this.gbAdvOpts.Controls.Add((Control) this.cobImageType);
this.gbAdvOpts.Controls.Add((Control) this.lblImageType);
this.gbAdvOpts.ForeColor = Color.Black;
this.gbAdvOpts.Location = new Point(11, 170);
this.gbAdvOpts.Name = "gbAdvOpts";
this.gbAdvOpts.Size = new Size(343, 111);
this.gbAdvOpts.TabIndex = 11;
this.gbAdvOpts.TabStop = false;
this.gbAdvOpts.Text = "Advanced:";
this.tbCliphotkey.Location = new Point(207, 7Cool Man (aka Tustin);
this.tbCliphotkey.Name = "tbCliphotkey";
this.tbCliphotkey.Size = new Size(123, 20);
this.tbCliphotkey.TabIndex = 13;
this.tbCliphotkey.KeyDown += new KeyEventHandler(this.ClipHotkey_KeyDown);
this.label1.AutoSize = true;
this.label1.ForeColor = Color.Black;
this.label1.Location = new Point(10, 81);
this.label1.Name = "label1";
this.label1.Size = new Size(123, 13);
this.label1.TabIndex = 12;
this.label1.Text = "Upload clipbord content:";
this.tbHotkey.Location = new Point(207, 52);
this.tbHotkey.Name = "tbHotkey";
this.tbHotkey.Size = new Size(123, 20);
this.tbHotkey.TabIndex = 11;
this.tbHotkey.KeyDown += new KeyEventHandler(this.tbHotKey_KeyDown);
this.lblHotkey.AutoSize = true;
this.lblHotkey.ForeColor = Color.Black;
this.lblHotkey.Location = new Point(10, 55);
this.lblHotkey.Name = "lblHotkey";
this.lblHotkey.Size = new Size(35, 13);
this.lblHotkey.TabIndex = 10;
this.lblHotkey.Text = "Snap:";
this.cobImageType.DropDownStyle = ComboBoxStyle.DropDownList;
this.cobImageType.FormattingEnabled = true;
this.cobImageType.Items.AddRange(new object[2]
{
(object) "JPG",
(object) "PNG"
});
this.cobImageType.Location = new Point(207, 24);
this.cobImageType.Name = "cobImageType";
this.cobImageType.Size = new Size(123, 21);
this.cobImageType.TabIndex = 9;
this.lblImageType.AutoSize = true;
this.lblImageType.ForeColor = Color.Black;
this.lblImageType.Location = new Point(10, 27);
this.lblImageType.Name = "lblImageType";
this.lblImageType.Size = new Size(66, 13);
this.lblImageType.TabIndex = 8;
this.lblImageType.Text = "Image Type:";
this.groupBox1.Controls.Add((Control) this.cbAllowDrag);
this.groupBox1.Controls.Add((Control) this.llBuyPremium);
this.groupBox1.Controls.Add((Control) this.cbEnableHUB);
this.groupBox1.Controls.Add((Control) this.cbPlaySounds);
this.groupBox1.Controls.Add((Control) this.cbShrinkURL);
this.groupBox1.Controls.Add((Control) this.cbRunAtLogin);
this.groupBox1.Location = new Point(11, 11);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new Size(343, 153);
this.groupBox1.TabIndex = 10;
this.groupBox1.TabStop = false;
this.cbAllowDrag.AutoSize = true;
this.cbAllowDrag.ForeColor = Color.Black;
this.cbAllowDrag.Location = new Point(13, 9Cool Man (aka Tustin);
this.cbAllowDrag.Name = "cbAllowDrag";
this.cbAllowDrag.Size = new Size(171, 17);
this.cbAllowDrag.TabIndex = 13;
this.cbAllowDrag.Text = "Enable Drag n' Drop uploading";
this.cbAllowDrag.UseVisualStyleBackColor = true;
this.llBuyPremium.AutoSize = true;
this.llBuyPremium.LinkBehavior = LinkBehavior.HoverUnderline;
this.llBuyPremium.LinkColor = Color.SteelBlue;
this.llBuyPremium.Location = new Point(130, 125);
this.llBuyPremium.Name = "llBuyPremium";
this.llBuyPremium.Size = new Size(52, 13);
this.llBuyPremium.TabIndex = 12;
this.llBuyPremium.TabStop = true;
this.llBuyPremium.Text = "(premium)";
this.llBuyPremium.LinkClicked += new LinkLabelLinkClickedEventHandler(this.llBuyPremium_LinkClicked);
this.cbEnableHUB.AutoSize = true;
this.cbEnableHUB.ForeColor = Color.Black;
this.cbEnableHUB.Location = new Point(13, 124);
this.cbEnableHUB.Name = "cbEnableHUB";
this.cbEnableHUB.Size = new Size(120, 17);
this.cbEnableHUB.TabIndex = 3;
this.cbEnableHUB.Text = "Enable upload HUB";
this.cbEnableHUB.UseVisualStyleBackColor = true;
this.cbPlaySounds.AutoSize = true;
this.cbPlaySounds.ForeColor = Color.Black;
this.cbPlaySounds.Location = new Point(13, 72);
this.cbPlaySounds.Name = "cbPlaySounds";
this.cbPlaySounds.Size = new Size(182, 17);
this.cbPlaySounds.TabIndex = 2;
this.cbPlaySounds.Text = "Play sound on upload completion";
this.cbPlaySounds.UseVisualStyleBackColor = true;
this.cbShrinkURL.AutoSize = true;
this.cbShrinkURL.ForeColor = Color.Black;
this.cbShrinkURL.Location = new Point(13, 46);
this.cbShrinkURL.Name = "cbShrinkURL";
this.cbShrinkURL.Size = new Size(149, 17);
this.cbShrinkURL.TabIndex = 1;
this.cbShrinkURL.Text = "Automatically shrink URLs";
this.cbShrinkURL.UseVisualStyleBackColor = true;
this.cbRunAtLogin.AutoSize = true;
this.cbRunAtLogin.ForeColor = Color.Black;
this.cbRunAtLogin.Location = new Point(13, 20);
this.cbRunAtLogin.Name = "cbRunAtLogin";
this.cbRunAtLogin.Size = new Size(198, 17);
this.cbRunAtLogin.TabIndex = 0;
this.cbRunAtLogin.Text = "Start ScreenSnapr on system startup";
this.cbRunAtLogin.UseVisualStyleBackColor = true;
this.tpServer.BackColor = SystemColors.Control;
this.tpServer.Controls.Add((Control) this.gbServerOpts);
this.tpServer.Location = new Point(4, 22);
this.tpServer.Name = "tpServer";
this.tpServer.Padding = new Padding(3);
this.tpServer.Size = new Size(357, 251);
this.tpServer.TabIndex = 1;
this.tpServer.Text = "Server";
this.gbServerOpts.Controls.Add((Control) this.label4);
this.gbServerOpts.Controls.Add((Control) this.cbHashPrefix);
this.gbServerOpts.Controls.Add((Control) this.cbHashLength);
this.gbServerOpts.Controls.Add((Control) this.label3);
this.gbServerOpts.Controls.Add((Control) this.tbPort);
this.gbServerOpts.Controls.Add((Control) this.lblFTPPort);
this.gbServerOpts.Controls.Add((Control) this.btnTestFTP);
this.gbServerOpts.Controls.Add((Control) this.lblFTPImageDir);
this.gbServerOpts.Controls.Add((Control) this.cbUseCustomServers);
this.gbServerOpts.Controls.Add((Control) this.cbUseSSServers);
this.gbServerOpts.Controls.Add((Control) this.tbFTPImgDir);
this.gbServerOpts.Controls.Add((Control) this.lblOutputURL);
this.gbServerOpts.Controls.Add((Control) this.lblFTPPassword);
this.gbServerOpts.Controls.Add((Control) this.lblFTPUsername);
this.gbServerOpts.Controls.Add((Control) this.lblFTPHost);
this.gbServerOpts.Controls.Add((Control) this.tbOutputURL);
this.gbServerOpts.Controls.Add((Control) this.tbPassword);
this.gbServerOpts.Controls.Add((Control) this.tbUsername);
this.gbServerOpts.Controls.Add((Control) this.tbHost);
this.gbServerOpts.Location = new Point(11, 11);
this.gbServerOpts.Name = "gbServerOpts";
this.gbServerOpts.Size = new Size(343, 235);
this.gbServerOpts.TabIndex = 1;
this.gbServerOpts.TabStop = false;
this.label4.AutoSize = true;
this.label4.ForeColor = Color.Black;
this.label4.Location = new Point(145, 207);
this.label4.Name = "label4";
this.label4.Size = new Size(36, 13);
this.label4.TabIndex = 21;
this.label4.Text = "Prefix:";
this.cbHashPrefix.DropDownStyle = ComboBoxStyle.DropDownList;
this.cbHashPrefix.FormattingEnabled = true;
this.cbHashPrefix.Items.AddRange(new object[3]
{
(object) "none",
(object) "timestamp",
(object) "custom"
});
this.cbHashPrefix.Location = new Point(185, 202);
this.cbHashPrefix.Name = "cbHashPrefix";
this.cbHashPrefix.Size = new Size(80, 21);
this.cbHashPrefix.TabIndex = 20;
this.cbHashPrefix.SelectedIndexChanged += new EventHandler(this.cbHashPrefix_SelectedIndexChanged);
this.cbHashLength.DropDownStyle = ComboBoxStyle.DropDownList;
this.cbHashLength.FormattingEnabled = true;
this.cbHashLength.Items.AddRange(new object[20]
{
(object) "1",
(object) "2",
(object) "3",
(object) "4",
(object) "5",
(object) "6",
(object) "7",
(object) "8",
(object) "9",
(object) "10",
(object) "11",
(object) "12",
(object) "13",
(object) "14",
(object) "15",
(object) "16",
(object) "17",
(object) "18",
(object) "19",
(object) "20"
});
this.cbHashLength.Location = new Point(99, 202);
this.cbHashLength.Name = "cbHashLength";
this.cbHashLength.Size = new Size(38, 21);
this.cbHashLength.TabIndex = 19;
this.label3.AutoSize = true;
this.label3.ForeColor = Color.Black;
this.label3.Location = new Point(36, 207);
this.label3.Name = "label3";
this.label3.Size = new Size(58, 13);
this.label3.TabIndex = 18;
this.label3.Text = "Hash Size:";
this.tbPort.Enabled = false;
this.tbPort.Location = new Point(285, 66);
this.tbPort.Name = "tbPort";
this.tbPort.Size = new Size(48, 20);
this.tbPort.TabIndex = 17;
this.lblFTPPort.AutoSize = true;
this.lblFTPPort.Location = new Point(271, 69);
this.lblFTPPort.Name = "lblFTPPort";
this.lblFTPPort.Size = new Size(10, 13);
this.lblFTPPort.TabIndex = 16;
this.lblFTPPort.Text = ":";
this.btnTestFTP.ForeColor = Color.Black;
this.btnTestFTP.Location = new Point(274, 201);
this.btnTestFTP.Name = "btnTestFTP";
this.btnTestFTP.Size = new Size(59, 23);
this.btnTestFTP.TabIndex = 7;
this.btnTestFTP.Text = "Test";
this.btnTestFTP.UseVisualStyleBackColor = true;
this.btnTestFTP.Click += new EventHandler(this.btnTestFTP_Click);
this.lblFTPImageDir.AutoSize = true;
this.lblFTPImageDir.ForeColor = Color.Black;
this.lblFTPImageDir.Location = new Point(5, 151);
this.lblFTPImageDir.Name = "lblFTPImageDir";
this.lblFTPImageDir.Size = new Size(89, 13);
this.lblFTPImageDir.TabIndex = 14;
this.lblFTPImageDir.Text = "Upload Directory:";
this.cbUseCustomServers.AutoSize = true;
this.cbUseCustomServers.ForeColor = Color.Black;
this.cbUseCustomServers.Location = new Point(13, 42);
this.cbUseCustomServers.Name = "cbUseCustomServers";
this.cbUseCustomServers.Size = new Size(167, 17);
this.cbUseCustomServers.TabIndex = 11;
this.cbUseCustomServers.Text = "Use my own server for hosting";
this.cbUseCustomServers.UseVisualStyleBackColor = true;
this.cbUseCustomServers.CheckedChanged += new EventHandler(this.FTPOption_CheckChanged);
this.cbUseSSServers.AutoSize = true;
this.cbUseSSServers.ForeColor = Color.Black;
this.cbUseSSServers.Location = new Point(13, 19);
this.cbUseSSServers.Name = "cbUseSSServers";
this.cbUseSSServers.Size = new Size(198, 17);
this.cbUseSSServers.TabIndex = 10;
this.cbUseSSServers.Text = "Use ScreenSnapr servers for hosting";
this.cbUseSSServers.UseVisualStyleBackColor = true;
this.cbUseSSServers.CheckedChanged += new EventHandler(this.FTPOption_CheckChanged);
this.tbFTPImgDir.Enabled = false;
this.tbFTPImgDir.Location = new Point(99, 14Cool Man (aka Tustin);
this.tbFTPImgDir.Name = "tbFTPImgDir";
this.tbFTPImgDir.Size = new Size(234, 20);
this.tbFTPImgDir.TabIndex = 5;
this.lblOutputURL.AutoSize = true;
this.lblOutputURL.ForeColor = Color.Black;
this.lblOutputURL.Location = new Point(30, 17Cool Man (aka Tustin);
this.lblOutputURL.Name = "lblOutputURL";
this.lblOutputURL.Size = new Size(64, 13);
this.lblOutputURL.TabIndex = 9;
this.lblOutputURL.Text = "Ouput URL:";
this.lblFTPPassword.AutoSize = true;
this.lblFTPPassword.ForeColor = Color.Black;
this.lblFTPPassword.Location = new Point(38, 123);
this.lblFTPPassword.Name = "lblFTPPassword";
this.lblFTPPassword.Size = new Size(56, 13);
this.lblFTPPassword.TabIndex = 8;
this.lblFTPPassword.Text = "Password:";
this.lblFTPUsername.AutoSize = true;
this.lblFTPUsername.ForeColor = Color.Black;
this.lblFTPUsername.Location = new Point(36, 95);
this.lblFTPUsername.Name = "lblFTPUsername";
this.lblFTPUsername.Size = new Size(58, 13);
this.lblFTPUsername.TabIndex = 7;
this.lblFTPUsername.Text = "Username:";
this.lblFTPHost.AutoSize = true;
this.lblFTPHost.ForeColor = Color.Black;
this.lblFTPHost.Location = new Point(62, 69);
this.lblFTPHost.Name = "lblFTPHost";
this.lblFTPHost.Size = new Size(32, 13);
this.lblFTPHost.TabIndex = 6;
this.lblFTPHost.Text = "Host:";
this.tbOutputURL.Location = new Point(99, 175);
this.tbOutputURL.Name = "tbOutputURL";
this.tbOutputURL.Size = new Size(234, 20);
this.tbOutputURL.TabIndex = 6;
this.tbPassword.Location = new Point(99, 120);
this.tbPassword.Name = "tbPassword";
this.tbPassword.PasswordChar = '*';
this.tbPassword.Size = new Size(234, 20);
this.tbPassword.TabIndex = 4;
this.tbPassword.UseSystemPasswordChar = true;
this.tbUsername.Location = new Point(99, 92);
this.tbUsername.Name = "tbUsername";
this.tbUsername.Size = new Size(234, 20);
this.tbUsername.TabIndex = 3;
this.tbHost.Location = new Point(99, 66);
this.tbHost.Name = "tbHost";
this.tbHost.Size = new Size(166, 20);
this.tbHost.TabIndex = 2;
this.tpAccount.BackColor = SystemColors.Control;
this.tpAccount.Controls.Add((Control) this.AccountTabControl);
this.tpAccount.Location = new Point(4, 22);
this.tpAccount.Name = "tpAccount";
this.tpAccount.Padding = new Padding(3);
this.tpAccount.Size = new Size(357, 251);
this.tpAccount.TabIndex = 2;
this.tpAccount.Text = "Account";
this.AccountTabControl.Controls.Add((Control) this.tabPageRegisterAccount);
this.AccountTabControl.Controls.Add((Control) this.tabPageAccountInfo);
this.AccountTabControl.Dock = DockStyle.Fill;
this.AccountTabControl.Location = new Point(3, 3);
this.AccountTabControl.Name = "AccountTabControl";
this.AccountTabControl.SelectedIndex = 0;
this.AccountTabControl.Size = new Size(351, 245);
this.AccountTabControl.TabIndex = 23;
this.tabPageRegisterAccount.BackColor = SystemColors.Control;
this.tabPageRegisterAccount.Controls.Add((Control) this.gbAccount);
this.tabPageRegisterAccount.Location = new Point(4, 22);
this.tabPageRegisterAccount.Name = "tabPageRegisterAccount";
this.tabPageRegisterAccount.Padding = new Padding(3);
this.tabPageRegisterAccount.Size = new Size(343, 219);
this.tabPageRegisterAccount.TabIndex = 2;
this.tabPageRegisterAccount.Text = "Create";
this.gbAccount.Controls.Add((Control) this.llBuyFull);
this.gbAccount.Controls.Add((Control) this.label2);
this.gbAccount.Controls.Add((Control) this.llCreateAccount);
this.gbAccount.Controls.Add((Control) this.lblRegister);
this.gbAccount.Controls.Add((Control) this.btnLogin);
this.gbAccount.Controls.Add((Control) this.lblPass);
this.gbAccount.Controls.Add((Control) this.lblEmail);
this.gbAccount.Controls.Add((Control) this.tbAccntPassword);
this.gbAccount.Controls.Add((Control) this.tbAccntUsername);
this.gbAccount.ForeColor = Color.Black;
this.gbAccount.Location = new Point(8, Cool Man (aka Tustin);
this.gbAccount.Name = "gbAccount";
this.gbAccount.Size = new Size(343, 170);
this.gbAccount.TabIndex = 2;
this.gbAccount.TabStop = false;
this.gbAccount.Text = "Account";
this.llBuyFull.AutoSize = true;
this.llBuyFull.LinkBehavior = LinkBehavior.HoverUnderline;
this.llBuyFull.LinkColor = Color.SteelBlue;
this.llBuyFull.Location = new Point(154, 141);
this.llBuyFull.Name = "llBuyFull";
this.llBuyFull.Size = new Size(82, 13);
this.llBuyFull.TabIndex = 14;
this.llBuyFull.TabStop = true;
this.llBuyFull.Text = "Buy Full Version";
this.llBuyFull.LinkClicked += new LinkLabelLinkClickedEventHandler(this.llBuyFull_LinkClicked);
this.label2.ForeColor = SystemColors.ControlDarkDark;
this.label2.Location = new Point(140, 141);
this.label2.Margin = new Padding(0);
this.label2.Name = "label2";
this.label2.Size = new Size(20, 22);
this.label2.TabIndex = 13;
this.label2.Text = "or";
this.llCreateAccount.AutoSize = true;
this.llCreateAccount.LinkBehavior = LinkBehavior.HoverUnderline;
this.llCreateAccount.LinkColor = Color.SteelBlue;
this.llCreateAccount.Location = new Point(38, 141);
this.llCreateAccount.Name = "llCreateAccount";
this.llCreateAccount.Size = new Size(105, 13);
this.llCreateAccount.TabIndex = 11;
this.llCreateAccount.TabStop = true;
this.llCreateAccount.Text = "Create Free Account";
this.llCreateAccount.LinkClicked += new LinkLabelLinkClickedEventHandler(this.llCreateAccount_LinkClicked);
this.lblRegister.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Regular, GraphicsUnit.Point, (byte) 0);
this.lblRegister.ForeColor = SystemColors.ControlDarkDark;
this.lblRegister.Location = new Point(17, 32);
this.lblRegister.Margin = new Padding(0);
this.lblRegister.Name = "lblRegister";
this.lblRegister.Size = new Size(312, 35);
this.lblRegister.TabIndex = 10;
this.lblRegister.Text = "Login to ScreenSnapr to enable online stats and image history.";
this.btnLogin.ForeColor = SystemColors.ControlText;
this.btnLogin.Location = new Point(242, 136);
this.btnLogin.Name = "btnLogin";
this.btnLogin.Size = new Size(84, 23);
this.btnLogin.TabIndex = 6;
this.btnLogin.Text = "Log In";
this.btnLogin.UseVisualStyleBackColor = true;
this.btnLogin.Click += new EventHandler(this.btnLogin_Click);
this.lblPass.AutoSize = true;
this.lblPass.ForeColor = Color.Black;
this.lblPass.Location = new Point(44, 101);
this.lblPass.Name = "lblPass";
this.lblPass.Size = new Size(56, 13);
this.lblPass.TabIndex = 8;
this.lblPass.Text = "Password:";
this.lblPass.TextAlign = ContentAlignment.MiddleRight;
this.lblEmail.AutoSize = true;
this.lblEmail.ForeColor = Color.Black;
this.lblEmail.Location = new Point(62, 73);
this.lblEmail.Name = "lblEmail";
this.lblEmail.Size = new Size(35, 13);
this.lblEmail.TabIndex = 7;
this.lblEmail.Text = "Email:";
this.lblEmail.TextAlign = ContentAlignment.MiddleRight;
this.tbAccntPassword.Location = new Point(103, 9Cool Man (aka Tustin);
this.tbAccntPassword.Name = "tbAccntPassword";
this.tbAccntPassword.PasswordChar = '*';
this.tbAccntPassword.Size = new Size(225, 20);
this.tbAccntPassword.TabIndex = 4;
this.tbAccntPassword.UseSystemPasswordChar = true;
this.tbAccntPassword.KeyPress += new KeyPressEventHandler(this.tbAccntPassword_KeyPress);
this.tbAccntUsername.Location = new Point(103, 70);
this.tbAccntUsername.Name = "tbAccntUsername";
this.tbAccntUsername.Size = new Size(225, 20);
this.tbAccntUsername.TabIndex = 3;
this.tabPageAccountInfo.BackColor = SystemColors.Control;
this.tabPageAccountInfo.Controls.Add((Control) this.gbUpgrade);
this.tabPageAccountInfo.Controls.Add((Control) this.groupBox3);
this.tabPageAccountInfo.Location = new Point(4, 22);
this.tabPageAccountInfo.Name = "tabPageAccountInfo";
this.tabPageAccountInfo.Padding = new Padding(3);
this.tabPageAccountInfo.Size = new Size(343, 219);
this.tabPageAccountInfo.TabIndex = 3;
this.tabPageAccountInfo.Text = "Info";
this.gbUpgrade.Controls.Add((Control) this.btnCP);
this.gbUpgrade.Controls.Add((Control) this.btnBuy);
this.gbUpgrade.ForeColor = Color.Black;
this.gbUpgrade.Location = new Point(3, 84);
this.gbUpgrade.Name = "gbUpgrade";
this.gbUpgrade.Size = new Size(343, 83);
this.gbUpgrade.TabIndex = 5;
this.gbUpgrade.TabStop = false;
this.btnCP.ForeColor = Color.Black;
this.btnCP.Location = new Point(230, 33);
this.btnCP.Name = "btnCP";
this.btnCP.Size = new Size(99, 29);
this.btnCP.TabIndex = 5;
this.btnCP.Text = "Control Panel";
this.btnCP.UseVisualStyleBackColor = true;
this.btnCP.Click += new EventHandler(this.btnCP_Click);
this.btnBuy.ForeColor = Color.Black;
this.btnBuy.Location = new Point(20, 33);
this.btnBuy.Name = "btnBuy";
this.btnBuy.Size = new Size(99, 29);
this.btnBuy.TabIndex = 4;
this.btnBuy.Text = "Upgrade";
this.btnBuy.UseVisualStyleBackColor = true;
this.btnBuy.Click += new EventHandler(this.btnBuy_Click);
this.groupBox3.Controls.Add((Control) this.btnLogout);
this.groupBox3.Controls.Add((Control) this.lblAccountEmail);
this.groupBox3.ForeColor = Color.Black;
this.groupBox3.Location = new Point(3, 6);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new Size(343, 61);
this.groupBox3.TabIndex = 4;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "Account";
this.btnLogout.ForeColor = Color.Black;
this.btnLogout.Location = new Point(230, 19);
this.btnLogout.Name = "btnLogout";
this.btnLogout.Size = new Size(99, 29);
this.btnLogout.TabIndex = 3;
this.btnLogout.Text = "Logout";
this.btnLogout.UseVisualStyleBackColor = true;
this.btnLogout.Click += new EventHandler(this.btnLogout_Click);
this.lblAccountEmail.AutoSize = true;
this.lblAccountEmail.LinkBehavior = LinkBehavior.HoverUnderline;
this.lblAccountEmail.LinkColor = Color.SteelBlue;
this.lblAccountEmail.Location = new Point(17, 27);
this.lblAccountEmail.Name = "lblAccountEmail";
this.lblAccountEmail.Size = new Size(112, 13);
this.lblAccountEmail.TabIndex = 0;
this.lblAccountEmail.TabStop = true;
this.lblAccountEmail.Text = "[email protected]";
this.lblAccountEmail.LinkClicked += new LinkLabelLinkClickedEventHandler(this.lblAccountEmail_LinkClicked);
this.tpAbout.BackColor = SystemColors.Control;
this.tpAbout.Controls.Add((Control) this.gbUpdate);
this.tpAbout.Controls.Add((Control) this.gbAbout);
this.tpAbout.Location = new Point(4, 22);
this.tpAbout.Name = "tpAbout";
this.tpAbout.Padding = new Padding(3);
this.tpAbout.Size = new Size(357, 251);
this.tpAbout.TabIndex = 3;
this.tpAbout.Text = "About";
this.gbUpdate.Controls.Add((Control) this.lblVersionNum);
this.gbUpdate.Controls.Add((Control) this.lblCurVersion);
this.gbUpdate.Controls.Add((Control) this.btnCheckForUpdates);
this.gbUpdate.ForeColor = Color.Black;
this.gbUpdate.Location = new Point(11, 89);
this.gbUpdate.Name = "gbUpdate";
this.gbUpdate.Size = new Size(343, 83);
this.gbUpdate.TabIndex = 3;
this.gbUpdate.TabStop = false;
this.gbUpdate.Text = "Update";
this.lblVersionNum.AutoSize = true;
this.lblVersionNum.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold, GraphicsUnit.Point, (byte) 0);
this.lblVersionNum.ForeColor = Color.Black;
this.lblVersionNum.Location = new Point(223, 41);
this.lblVersionNum.Name = "lblVersionNum";
this.lblVersionNum.Size = new Size(88, 13);
this.lblVersionNum.TabIndex = 6;
this.lblVersionNum.Text = "2.0000000000";
this.lblCurVersion.AutoSize = true;
this.lblCurVersion.ForeColor = SystemColors.ControlDarkDark;
this.lblCurVersion.Location = new Point(142, 41);
this.lblCurVersion.Name = "lblCurVersion";
this.lblCurVersion.Size = new Size(82, 13);
this.lblCurVersion.TabIndex = 5;
this.lblCurVersion.Text = "Current Version:";
this.btnCheckForUpdates.ForeColor = Color.Black;
this.btnCheckForUpdates.Location = new Point(17, 33);
this.btnCheckForUpdates.Name = "btnCheckForUpdates";
this.btnCheckForUpdates.Size = new Size(119, 29);
this.btnCheckForUpdates.TabIndex = 4;
this.btnCheckForUpdates.Text = "Check For Updates";
this.btnCheckForUpdates.UseVisualStyleBackColor = true;
this.btnCheckForUpdates.Click += new EventHandler(this.btnCheckForUpdates_Click);
this.gbAbout.Controls.Add((Control) this.btnGetSupport);
this.gbAbout.Controls.Add((Control) this.lblSep0);
this.gbAbout.Controls.Add((Control) this.llblOpenSite);
this.gbAbout.Controls.Add((Control) this.llblTwitter);
this.gbAbout.ForeColor = Color.Black;
this.gbAbout.Location = new Point(11, 11);
this.gbAbout.Name = "gbAbout";
this.gbAbout.Size = new Size(343, 61);
this.gbAbout.TabIndex = 2;
this.gbAbout.TabStop = false;
this.gbAbout.Text = "About";
this.btnGetSupport.ForeColor = Color.Black;
this.btnGetSupport.Location = new Point(230, 19);
this.btnGetSupport.Name = "btnGetSupport";
this.btnGetSupport.Size = new Size(99, 29);
this.btnGetSupport.TabIndex = 3;
this.btnGetSupport.Text = "Get Support";
this.btnGetSupport.UseVisualStyleBackColor = true;
this.btnGetSupport.Click += new EventHandler(this.btnGetSupport_Click);
this.lblSep0.AutoSize = true;
this.lblSep0.ForeColor = SystemColors.AppWorkspace;
this.lblSep0.Location = new Point(100, 2Cool Man (aka Tustin);
this.lblSep0.Name = "lblSep0";
this.lblSep0.Size = new Size(9, 13);
this.lblSep0.TabIndex = 2;
this.lblSep0.Text = "|";
this.llblOpenSite.AutoSize = true;
this.llblOpenSite.LinkBehavior = LinkBehavior.HoverUnderline;
this.llblOpenSite.LinkColor = Color.SteelBlue;
this.llblOpenSite.Location = new Point(116, 27);
this.llblOpenSite.Name = "llblOpenSite";
this.llblOpenSite.Size = new Size(88, 13);
this.llblOpenSite.TabIndex = 1;
this.llblOpenSite.TabStop = true;
this.llblOpenSite.Text = "screensnapr.com";
this.llblOpenSite.LinkClicked += new LinkLabelLinkClickedEventHandler(this.llblOpenSite_LinkClicked);
this.llblTwitter.AutoSize = true;
this.llblTwitter.LinkBehavior = LinkBehavior.HoverUnderline;
this.llblTwitter.LinkColor = Color.SteelBlue;
this.llblTwitter.Location = new Point(17, 27);
this.llblTwitter.Name = "llblTwitter";
this.llblTwitter.Size = new Size(76, 13);
this.llblTwitter.TabIndex = 0;
this.llblTwitter.TabStop = true;
this.llblTwitter.Text = "@screensnapr";
this.llblTwitter.LinkClicked += new LinkLabelLinkClickedEventHandler(this.llblTwitter_LinkClicked);
this.MainMenuStrip.AlwaysDrawStroke = false;
this.MainMenuStrip.AutoSize = false;
this.MainMenuStrip.BackColor = Color.White;
this.MainMenuStrip.CheckedColor = Color.FromArgb(214, 234, 244);
this.MainMenuStrip.GripStyle = ToolStripGripStyle.Hidden;
this.MainMenuStrip.ImageScalingSize = new Size(0, 0);
this.MainMenuStrip.Items.AddRange(new ToolStripItem[4]
{
(ToolStripItem) this.tabBtnConfigure,
(ToolStripItem) this.tabBtnServer,
(ToolStripItem) this.tabBtnAccnt,
(ToolStripItem) this.tabBtnAbout
});
this.MainMenuStrip.LayoutStyle = ToolStripLayoutStyle.HorizontalStackWithOverflow;
this.MainMenuStrip.Location = new Point(0, 0);
this.MainMenuStrip.Name = "MainMenuStrip";
this.MainMenuStrip.RenderMode = ToolStripRenderMode.Professional;
this.MainMenuStrip.Size = new Size(365, 5Cool Man (aka Tustin);
this.MainMenuStrip.StrokeColor = Color.FromArgb(130, 195, 22Cool Man (aka Tustin);
this.MainMenuStrip.TabIndex = 2;
this.MainMenuStrip.Text = "toolStrip2";
this.tabBtnConfigure.AutoSize = false;
this.tabBtnConfigure.Checked = true;
this.tabBtnConfigure.CheckState = CheckState.Checked;
this.tabBtnConfigure.Font = new Font("Microsoft Sans Serif", 8.25f);
this.tabBtnConfigure.Image = (Image) componentResourceManager.GetObject("tabBtnConfigure.Image");
this.tabBtnConfigure.ImageTransparentColor = Color.Magenta;
this.tabBtnConfigure.Margin = new Padding(6, 1, 0, 2);
this.tabBtnConfigure.Name = "tabBtnConfigure";
this.tabBtnConfigure.Size = new Size(68, 59);
this.tabBtnConfigure.Text = "Configure";
this.tabBtnConfigure.TextImageRelation = TextImageRelation.ImageAboveText;
this.tabBtnConfigure.Click += new EventHandler(this.tabBtnConfigure_Click);
this.tabBtnServer.AutoSize = false;
this.tabBtnServer.Font = new Font("Microsoft Sans Serif", 8.25f);
this.tabBtnServer.Image = (Image) componentResourceManager.GetObject("tabBtnServer.Image");
this.tabBtnServer.ImageTransparentColor = Color.Magenta;
this.tabBtnServer.Name = "tabBtnServer";
this.tabBtnServer.Size = new Size(68, 59);
this.tabBtnServer.Text = "Server";
this.tabBtnServer.TextImageRelation = TextImageRelation.ImageAboveText;
this.tabBtnServer.Click += new EventHandler(this.tabBtnServer_Click);
this.tabBtnAccnt.AutoSize = false;
this.tabBtnAccnt.Font = new Font("Microsoft Sans Serif", 8.25f);
this.tabBtnAccnt.Image = (Image) componentResourceManager.GetObject("tabBtnAccnt.Image");
this.tabBtnAccnt.ImageTransparentColor = Color.Magenta;
this.tabBtnAccnt.Name = "tabBtnAccnt";
this.tabBtnAccnt.Size = new Size(68, 59);
this.tabBtnAccnt.Text = "Account";
this.tabBtnAccnt.TextImageRelation = TextImageRelation.ImageAboveText;
this.tabBtnAccnt.Click += new EventHandler(this.tabBtnAccnt_Click);
this.tabBtnAbout.AutoSize = false;
this.tabBtnAbout.Font = new Font("Microsoft Sans Serif", 8.25f);
this.tabBtnAbout.Image = (Image) componentResourceManager.GetObject("tabBtnAbout.Image");
this.tabBtnAbout.ImageTransparentColor = Color.Magenta;
this.tabBtnAbout.Name = "tabBtnAbout";
this.tabBtnAbout.Size = new Size(68, 59);
this.tabBtnAbout.Text = "About";
this.tabBtnAbout.TextImageRelation = TextImageRelation.ImageAboveText;
this.tabBtnAbout.Click += new EventHandler(this.tabBtnAbout_Click);
this.AutoScaleDimensions = new SizeF(6f, 13f);
this.AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new Size(365, 379);
this.Controls.Add((Control) this.panelMiddle);
this.Controls.Add((Control) this.panelTop);
this.Controls.Add((Control) this.panelBottom);
this.FormBorderStyle = FormBorderStyle.FixedSingle;
this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "frmMain";
this.StartPosition = FormStartPosition.CenterScreen;
this.Text = "ScreenSnapr";
this.FormClosing += new FormClosingEventHandler(this.frmMain_FormClosing);
this.panelBottom.ResumeLayout(false);
this.panelTop.ResumeLayout(false);
this.panelMiddle.ResumeLayout(false);
this.MainTabs.ResumeLayout(false);
this.tpConfig.ResumeLayout(false);
this.gbAdvOpts.ResumeLayout(false);
this.gbAdvOpts.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.tpServer.ResumeLayout(false);
this.gbServerOpts.ResumeLayout(false);
this.gbServerOpts.PerformLayout();
this.tpAccount.ResumeLayout(false);
this.AccountTabControl.ResumeLayout(false);
this.tabPageRegisterAccount.ResumeLayout(false);
this.gbAccount.ResumeLayout(false);
this.gbAccount.PerformLayout();
this.tabPageAccountInfo.ResumeLayout(false);
this.gbUpgrade.ResumeLayout(false);
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.tpAbout.ResumeLayout(false);
this.gbUpdate.ResumeLayout(false);
this.gbUpdate.PerformLayout();
this.gbAbout.ResumeLayout(false);
this.gbAbout.PerformLayout();
this.MainMenuStrip.ResumeLayout(false);
this.MainMenuStrip.PerformLayout();
this.ResumeLayout(false);
}
}
}



so that there is a textarea or w/e and when they click save it will download what was in that textarea into a .txt file
07-25-2012, 09:36 PM #5
Originally posted by Brad View Post
so that there is a textarea or w/e and when they click save it will download what was in that textarea into a .txt file


Part of the screensnapr source code.
08-02-2012, 06:14 AM #6
Hello

I am Lorena defrutos, please i really want to know how to write script, email phishing and hacking. Please if you can teach i will be so glad and let me know your price. my email is [email][email protected][/email] or [email][email protected][/email]
thanks

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo