Exemple #1
0
        private void NewJournalArchiveFinish_Enter(object sender, System.EventArgs e)
        {
            NewJournalArchiveAccountSettings njas = (NewJournalArchiveAccountSettings)this.WizardSheet.Pages[1];

            newJournal = new Engine.Journal(njas.ServerURL, njas.UserName, njas.Password, njas.GetComments, njas.UseJournal);
            this.WizardSheet.EnableFinishButton = true;
        }
Exemple #2
0
        static public void Go(Engine.Journal j, Common.IJournalWriter ijw)
        {
            Export ed = new Export(ijw);

            if (ed.ShowDialog() == DialogResult.OK)
            {
                using (Busy b = new Busy())
                    Engine.Exporter.Export(ed.SplitExport, ed.FileName, j, ijw);
            }
        }
Exemple #3
0
 public Properties(Engine.Journal j) : this()
 {
     Localizer.SetControlText(this.GetType(), this, lblUsernameTag, lblLocationTag, lblSizeTag,
                              lblEntryCountTag, lblCommentCountTag, lblEntryCount, lblCommentCount, grpJournalSettings,
                              lblServerURL, lblPassword, lblWarning, chkGetComments, btnOK, btnCancel);
     this.Text              = string.Format(this.Text, j.Path);
     lblUsername.Text       = j.Options.UserName;
     lblLocation.Text       = System.IO.Path.GetDirectoryName(j.Path);
     lblSize.Text           = FriendlyFileSize((new System.IO.FileInfo(j.Path)).Length);
     lblEntryCount.Text     = string.Format(lblEntryCount.Text, j.Events.Count);
     lblCommentCount.Text   = string.Format(lblCommentCount.Text, j.Comments.Count);
     txtServerURL.Text      = j.Options.ServerURL;
     chkGetComments.Checked = j.Options.GetComments;
 }
Exemple #4
0
        static public void Go(Engine.Journal j)
        {
            Properties p = new Properties(j);

            if (p.ShowDialog() == DialogResult.OK)
            {
                if (p.txtPassword.Text.Length > 0)
                {
                    j.SetPassword(p.txtPassword.Text);
                }
                j.Options.GetComments = p.chkGetComments.Checked;
                j.Options.ServerURL   = p.txtServerURL.Text.TrimEnd('/');
                j.Save();
            }
        }
Exemple #5
0
 protected void New()
 {
     if (NewJournalController.Go() == ResponseType.Ok)
     {
         estore = null;
         cstore = null;
         j      = new Engine.Journal(NewJournalController.ServerURL,
                                     NewJournalController.UserName,
                                     NewJournalController.Password,
                                     NewJournalController.GetComments,
                                     NewJournalController.UseJournal);
         j.Save(NewJournalController.Filename);
         this.TreeViewState = TreeViewStates.Entries;
         ToolButton_Clicked(cc.tbSync, EventArgs.Empty);
     }
 }