public CryptoEditorHomeDetail(ICryptoEditor plugin)
        {
            this.plugin = plugin;

            InitializeComponent();

            #if DEBUG_SERVER
            landing = "http://localhost:8080/news?base=2";
            #endif

            #if !MONO_MWF
            string location = Assembly.GetCallingAssembly().CodeBase;
            loading = location.ToLower().Replace("cryptoeditorhome.dll", "loader.htm");
            offline = location.ToLower().Replace("cryptoeditorhome.dll", "offline.htm");

            webConnectTimer.Enabled = true;
            #endif
        }
 public CryptoTimeSheetDetails(ICryptoEditor plugin)
 {
     InitializeComponent();
     this.plugin = plugin;
 }
 public CryptoEditorCreditCardDetails(ICryptoEditor plugin)
 {
     InitializeComponent();
     this.plugin = plugin;
 }
 public CryptoEditorTodoDetails(ICryptoEditor plugin)
 {
     InitializeComponent();
     this.plugin = plugin;
 }
        private CryptoXML Encrypt(ICryptoEditor plugin)
        {
            string data = plugin.Save();
            string xpath = plugin.EncryptionXPath;
            CryptoXML xmlRoot = new CryptoXML();

            try
            {
                xmlRoot.LoadXml(data);
            }
            catch (Exception)
            {
                xmlRoot.LoadXml("<?xml version=\"1.0\" encoding=\"utf-8\"?><CryptoEditorDefault xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"></CryptoEditorDefault>");

                XmlElement element = xmlRoot.CreateElement(plugin.ToString());
                element.InnerText = data;
                xmlRoot.DocumentElement.AppendChild(element);

                xpath = "/*";
            }

            xmlRoot.Password = CurrentProfile.Password;

            #if !NO_ENCRYPT
            xmlRoot.Encrypt(xpath, true);
            #endif

            return xmlRoot;
        }
 public CryptoPasswordDetail(ICryptoEditor plugin)
 {
     InitializeComponent();
     this.plugin = plugin;
 }
 public CryptoEditorHomeView(ICryptoEditor plugin)
 {
     this.plugin = plugin;
     InitializeComponent();
 }
 public CryptoLicenseDetail(ICryptoEditor plugin)
 {
     this.plugin = plugin;
     InitializeComponent();
 }
 public CryptoEditorHomeRootNode(ICryptoEditor plugin, string newName)
     : base(newName)
 {
     this.plugin = plugin;
 }
 public CryptoEditorTemplateDetail(ICryptoEditor plugin)
 {
     InitializeComponent();
     this.plugin = plugin;
 }