mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-21 06:15:47 +02:00
Change namespace to TweetDck
This commit is contained in:
parent
7de79786c9
commit
2c3849bc43
Configuration
Core
Controls
FormBrowser.Designer.csFormBrowser.csFormNotification.Designer.csFormNotification.csHandling
Other
Migration
FormMigrationQuestion.Designer.csFormMigrationQuestion.cs
Program.csHelpers
MigrationDecision.csMigrationManager.csProperties
Resources
TweetDick.csproj@ -3,7 +3,7 @@
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
|
||||
namespace TweetDick.Configuration{
|
||||
namespace TweetDck.Configuration{
|
||||
class LockManager{
|
||||
private readonly string file;
|
||||
private FileStream lockStream;
|
||||
|
@ -3,13 +3,14 @@
|
||||
using System.IO;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Runtime.Serialization.Formatters.Binary;
|
||||
using System.Windows.Forms;
|
||||
using TweetDick.Core.Handling;
|
||||
using TweetDck.Core.Handling;
|
||||
|
||||
namespace TweetDick.Configuration{
|
||||
namespace TweetDck.Configuration{
|
||||
[Serializable]
|
||||
sealed class UserConfig{
|
||||
private static readonly IFormatter Formatter = new BinaryFormatter();
|
||||
private static readonly IFormatter Formatter = new BinaryFormatter(){
|
||||
Binder = new SerializationCompatibilityHandler()
|
||||
};
|
||||
|
||||
// START OF CONFIGURATION
|
||||
|
||||
@ -102,5 +103,12 @@ public static UserConfig Load(string file){
|
||||
private static string GetBackupFile(string file){
|
||||
return file+".bak";
|
||||
}
|
||||
|
||||
private class SerializationCompatibilityHandler : SerializationBinder{
|
||||
public override Type BindToType(string assemblyName, string typeName){
|
||||
typeName = typeName.Replace("TweetDick","TweetDck");
|
||||
return Type.GetType(string.Format("{0}, {1}",typeName,assemblyName));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
2
Core/Controls/FlatProgressBar.Designer.cs
generated
2
Core/Controls/FlatProgressBar.Designer.cs
generated
@ -1,4 +1,4 @@
|
||||
namespace TweetDick.Core.Controls {
|
||||
namespace TweetDck.Core.Controls {
|
||||
partial class FlatProgressBar {
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace TweetDick.Core.Controls{
|
||||
namespace TweetDck.Core.Controls{
|
||||
public partial class FlatProgressBar : ProgressBar{
|
||||
private SolidBrush brush;
|
||||
|
||||
|
2
Core/Controls/RichTextLabel.Designer.cs
generated
2
Core/Controls/RichTextLabel.Designer.cs
generated
@ -1,4 +1,4 @@
|
||||
namespace TweetDick.Core.Controls {
|
||||
namespace TweetDck.Core.Controls {
|
||||
partial class RichTextLabel {
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace TweetDick.Core.Controls{
|
||||
namespace TweetDck.Core.Controls{
|
||||
public partial class RichTextLabel : RichTextBox{
|
||||
/// <summary>
|
||||
/// Wraps the body of a RTF formatted string with default tags and formatting.
|
||||
|
4
Core/FormBrowser.Designer.cs
generated
4
Core/FormBrowser.Designer.cs
generated
@ -1,4 +1,4 @@
|
||||
namespace TweetDick.Core {
|
||||
namespace TweetDck.Core {
|
||||
sealed partial class FormBrowser {
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
@ -30,7 +30,7 @@ private void InitializeComponent() {
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Icon = TweetDick.Properties.Resources.icon;
|
||||
this.Icon = TweetDck.Properties.Resources.icon;
|
||||
this.Location = new System.Drawing.Point(-32000, -32000);
|
||||
this.Name = "FormBrowser";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
|
||||
|
@ -1,15 +1,15 @@
|
||||
using System.Windows.Forms;
|
||||
using CefSharp.WinForms;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using TweetDick.Configuration;
|
||||
using CefSharp;
|
||||
using TweetDick.Core.Handling;
|
||||
using TweetDick.Core.Other;
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using TweetDick.Resources;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
using CefSharp;
|
||||
using CefSharp.WinForms;
|
||||
using TweetDck.Configuration;
|
||||
using TweetDck.Core.Handling;
|
||||
using TweetDck.Core.Other;
|
||||
using TweetDck.Resources;
|
||||
|
||||
namespace TweetDick.Core{
|
||||
namespace TweetDck.Core{
|
||||
sealed partial class FormBrowser : Form{
|
||||
private static UserConfig Config{
|
||||
get{
|
||||
|
6
Core/FormNotification.Designer.cs
generated
6
Core/FormNotification.Designer.cs
generated
@ -1,4 +1,6 @@
|
||||
namespace TweetDick.Core {
|
||||
using TweetDck.Core.Controls;
|
||||
|
||||
namespace TweetDck.Core {
|
||||
sealed partial class FormNotification {
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
@ -26,7 +28,7 @@ private void InitializeComponent() {
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.panelBrowser = new System.Windows.Forms.Panel();
|
||||
this.timerProgress = new System.Windows.Forms.Timer(this.components);
|
||||
this.progressBarTimer = new TweetDick.Core.Controls.FlatProgressBar();
|
||||
this.progressBarTimer = new FlatProgressBar();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// panelBrowser
|
||||
|
@ -1,14 +1,14 @@
|
||||
using System.Windows.Forms;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using CefSharp;
|
||||
using CefSharp.WinForms;
|
||||
using System.Drawing;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using TweetDick.Core.Handling;
|
||||
using TweetDick.Configuration;
|
||||
using TweetDick.Resources;
|
||||
using TweetDck.Configuration;
|
||||
using TweetDck.Core.Handling;
|
||||
using TweetDck.Resources;
|
||||
|
||||
namespace TweetDick.Core{
|
||||
namespace TweetDck.Core{
|
||||
sealed partial class FormNotification : Form{
|
||||
public Func<bool> CanMoveWindow = () => true;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
using CefSharp;
|
||||
|
||||
namespace TweetDick.Core.Handling{
|
||||
namespace TweetDck.Core.Handling{
|
||||
class ContextMenuHandler : IContextMenuHandler{
|
||||
private const int MenuSettings = 26500;
|
||||
private const int MenuAbout = 26501;
|
||||
|
@ -1,6 +1,6 @@
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace TweetDick.Core.Handling{
|
||||
namespace TweetDck.Core.Handling{
|
||||
class TweetDeckBridge{
|
||||
private readonly FormBrowser form;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
|
||||
namespace TweetDick.Core.Handling{
|
||||
namespace TweetDck.Core.Handling{
|
||||
sealed class TweetNotification{
|
||||
private static string FontSizeClass { get; set; }
|
||||
private static string HeadTag { get; set; }
|
||||
|
6
Core/Other/FormAbout.Designer.cs
generated
6
Core/Other/FormAbout.Designer.cs
generated
@ -1,4 +1,6 @@
|
||||
namespace TweetDick.Core.Other {
|
||||
using TweetDck.Core.Controls;
|
||||
|
||||
namespace TweetDck.Core.Other {
|
||||
sealed partial class FormAbout {
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
@ -23,7 +25,7 @@ protected override void Dispose(bool disposing) {
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent() {
|
||||
this.labelAbout = new TweetDick.Core.Controls.RichTextLabel();
|
||||
this.labelAbout = new RichTextLabel();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// labelAbout
|
||||
|
@ -1,8 +1,8 @@
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using TweetDick.Core.Controls;
|
||||
using TweetDck.Core.Controls;
|
||||
|
||||
namespace TweetDick.Core.Other{
|
||||
namespace TweetDck.Core.Other{
|
||||
sealed partial class FormAbout : Form{
|
||||
public FormAbout(){
|
||||
InitializeComponent();
|
||||
|
4
Core/Other/FormBackgroundWork.Designer.cs
generated
4
Core/Other/FormBackgroundWork.Designer.cs
generated
@ -1,6 +1,6 @@
|
||||
using TweetDick.Core.Controls;
|
||||
using TweetDck.Core.Controls;
|
||||
|
||||
namespace TweetDick.Core.Other {
|
||||
namespace TweetDck.Core.Other {
|
||||
partial class FormBackgroundWork {
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
|
@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using TweetDick.Core.Controls;
|
||||
using TweetDck.Core.Controls;
|
||||
|
||||
namespace TweetDick.Core.Other{
|
||||
namespace TweetDck.Core.Other{
|
||||
partial class FormBackgroundWork : Form{
|
||||
public FormBackgroundWork(){
|
||||
InitializeComponent();
|
||||
|
4
Core/Other/FormSettings.Designer.cs
generated
4
Core/Other/FormSettings.Designer.cs
generated
@ -1,4 +1,4 @@
|
||||
namespace TweetDick.Core.Other {
|
||||
namespace TweetDck.Core.Other {
|
||||
sealed partial class FormSettings {
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
@ -272,7 +272,7 @@ private void InitializeComponent() {
|
||||
this.ClientSize = new System.Drawing.Size(384, 282);
|
||||
this.Controls.Add(this.tableLayout);
|
||||
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
||||
this.Icon = TweetDick.Properties.Resources.icon;
|
||||
this.Icon = TweetDck.Properties.Resources.icon;
|
||||
this.MaximizeBox = false;
|
||||
this.MinimizeBox = false;
|
||||
this.Name = "FormSettings";
|
||||
|
@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using TweetDick.Configuration;
|
||||
using TweetDick.Core.Handling;
|
||||
using TweetDck.Configuration;
|
||||
using TweetDck.Core.Handling;
|
||||
|
||||
namespace TweetDick.Core.Other{
|
||||
namespace TweetDck.Core.Other{
|
||||
sealed partial class FormSettings : Form{
|
||||
private static UserConfig Config{
|
||||
get{
|
||||
|
4
Migration/FormMigrationQuestion.Designer.cs
generated
4
Migration/FormMigrationQuestion.Designer.cs
generated
@ -1,6 +1,6 @@
|
||||
using TweetDick.Core.Controls;
|
||||
using TweetDck.Core.Controls;
|
||||
|
||||
namespace TweetDick.Migration {
|
||||
namespace TweetDck.Migration {
|
||||
partial class FormMigrationQuestion {
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
|
@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using TweetDick.Core.Controls;
|
||||
using TweetDck.Core.Controls;
|
||||
|
||||
namespace TweetDick.Migration{
|
||||
namespace TweetDck.Migration{
|
||||
partial class FormMigrationQuestion : Form{
|
||||
public MigrationDecision Decision { get; private set; }
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using Shell32;
|
||||
using System.IO;
|
||||
using Shell32;
|
||||
|
||||
namespace TweetDick.Migration.Helpers{
|
||||
namespace TweetDck.Migration.Helpers{
|
||||
sealed class LnkEditor{
|
||||
private readonly ShellLinkObject obj;
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
|
||||
namespace TweetDick.Migration.Helpers{
|
||||
namespace TweetDck.Migration.Helpers{
|
||||
static class ProgramProcessSearch{
|
||||
public static Process FindProcessWithWindowByName(string name){
|
||||
try{
|
||||
|
@ -2,7 +2,7 @@
|
||||
using System.Linq;
|
||||
using Microsoft.Win32;
|
||||
|
||||
namespace TweetDick.Migration.Helpers{
|
||||
namespace TweetDck.Migration.Helpers{
|
||||
static class ProgramRegistrySearch{
|
||||
public static string FindByDisplayName(string displayName){
|
||||
Predicate<RegistryKey> predicate = key => displayName.Equals(key.GetValue("DisplayName") as string,StringComparison.OrdinalIgnoreCase);
|
||||
|
@ -1,4 +1,4 @@
|
||||
namespace TweetDick.Migration{
|
||||
namespace TweetDck.Migration{
|
||||
enum MigrationDecision{
|
||||
/// <summary>
|
||||
/// Copies the important files and then deletes the TweetDeck folder.
|
||||
|
@ -1,15 +1,15 @@
|
||||
using Microsoft.Win32;
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using TweetDick.Core.Other;
|
||||
using TweetDick.Migration.Helpers;
|
||||
using Microsoft.Win32;
|
||||
using TweetDck.Core.Other;
|
||||
using TweetDck.Migration.Helpers;
|
||||
|
||||
namespace TweetDick.Migration{
|
||||
namespace TweetDck.Migration{
|
||||
static class MigrationManager{
|
||||
private static readonly string TweetDeckPathParent = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),"twitter");
|
||||
private static readonly string TweetDeckPath = Path.Combine(TweetDeckPathParent,"TweetDeck");
|
||||
|
12
Program.cs
12
Program.cs
@ -1,17 +1,17 @@
|
||||
using CefSharp;
|
||||
using System;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using TweetDick.Configuration;
|
||||
using TweetDick.Core;
|
||||
using TweetDick.Migration;
|
||||
using CefSharp;
|
||||
using TweetDck.Configuration;
|
||||
using TweetDck.Core;
|
||||
using TweetDck.Migration;
|
||||
|
||||
[assembly: CLSCompliant(true)]
|
||||
namespace TweetDick{
|
||||
namespace TweetDck{
|
||||
static class Program{
|
||||
#if DUCK
|
||||
public const string BrandName = "TweetDuck";
|
||||
|
@ -1,7 +1,7 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
using TweetDick;
|
||||
using System.Resources;
|
||||
using TweetDck;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
|
4
Properties/Resources.Designer.cs
generated
4
Properties/Resources.Designer.cs
generated
@ -8,7 +8,7 @@
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace TweetDick.Properties {
|
||||
namespace TweetDck.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ internal Resources() {
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TweetDick.Properties.Resources", typeof(Resources).Assembly);
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("TweetDck.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
|
@ -3,7 +3,7 @@
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace TweetDick.Resources{
|
||||
namespace TweetDck.Resources{
|
||||
static class ScriptLoader{
|
||||
public static string LoadResource(string name){
|
||||
try{
|
||||
|
@ -9,7 +9,7 @@
|
||||
<ProjectGuid>{2389A7CD-E0D3-4706-8294-092929A33A2D}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>TweetDick</RootNamespace>
|
||||
<RootNamespace>TweetDck</RootNamespace>
|
||||
<AssemblyName Condition=" '$(Configuration)' == 'Debug' ">TweetDick</AssemblyName>
|
||||
<AssemblyName Condition=" '$(Configuration)' == 'Release Dick' ">TweetDick</AssemblyName>
|
||||
<AssemblyName Condition=" '$(Configuration)' == 'Release Duck' ">TweetDuck</AssemblyName>
|
||||
|
Loading…
Reference in New Issue
Block a user