public DialogResult ShowDialog(IHostUI hostUI)
 {
     HostUI             = hostUI;
     ctlStartDate.Value = DateTime.Today.AddYears(-1);
     ctlEndDate.Value   = DateTime.Today;
     return(this.ShowDialog());
 }
 public DialogResult ShowDialog(IHostUI hostUI)
 {
     HostUI             = hostUI;
     ctlStartDate.Value = new DateTime(1900, 1, 1);
     ctlEndDate.Value   = new DateTime(1900, 1, 1);
     return(this.ShowDialog());
 }
Exemple #3
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="host"></param>
        public MailStoreView(IHostUI host)
        {
            InitializeComponent();

            _hostUI = host;

            _worker.DoWork             += _worker_DoWork;
            _worker.RunWorkerCompleted += _worker_RunWorkerCompleted;
        }
Exemple #4
0
 public BudgetSpecsForm(IHostUI hostUI)
 {
     HostUI = hostUI;
     InitializeComponent();
     ctlStartDate.Value = new DateTime(DateTime.Today.Year, 1, 1);
     cboBudgetType.Items.Add(new BudgetTypeCash());
     cboBudgetType.Items.Add(new BudgetTypeIncExp());
     cboBudgetType.SelectedIndex = 0;
 }
Exemple #5
0
        /*
         * QuickBooks import (IIF) validation notes:
         * A "GENERAL JOURNAL" entry allows all accounts to be used for debits or credits. Total flexibility.
         * A "CHECK" entry must have a debit net amount.
         * A "CHECK" may use a vendor name or other name. Both must obey the debit amount rule.
         * The QuickBooks UI allows "CHECK" with credit amount to be entered directly into register, but it silently
         *   converts that transaction to a "DEPOSIT". The IIF import does not silently convert like this.
         * A "CHECK" entry can be used for ANY debit use in an asset account, for example an ACH transfer or debit card use.
         * A "CHECK" may have a split with a credit amount, so long as the net total of the transaction is a debit.
         * A "CHECK" entry can use Accounts Payable for a split account.
         * A transaction in an A/P account should be "BILL" for a net debit amount, and "BILL REFUND" for a net credit amount.
         * A transaction in an A/P account requires a non-blank vendor name for the "NAME" field.
         * A transaction in an A/P account may have multiple splits, and all of them should have a blank "NAME" field.
         * A transaction in a non-A/P account with a split pointing an A/P account requires a non-blank vendor name for the "NAME" field.
         * A transaction in a non-A/P account may have only one split pointing to an A/P account.
         * A "DEPOSIT" entry must have a credit net amount.
         * A "DEPOSIT" entry may use a vendor name or other name, but the name will be blank in the transaction created.
         * A "DEPOSIT" entry can leave the name field blank.
         */

        public ExportEngine(IHostUI hostUI)
        {
            HostUI           = hostUI;
            Company          = HostUI.Company;
            BalanceSheetMaps = null;
            CategoryMaps     = null;
            Payees           = new Dictionary <string, PayeeDef>();
            Categories       = new Dictionary <string, CatDef>();
            CatTrans         = HostUI.Company.Categories;
        }
 public DialogResult ShowDialog(IHostUI hostUI)
 {
     HostUI             = hostUI;
     ctlStartDate.Value = new DateTime(1900, 1, 1);
     ctlEndDate.Value   = DateTime.Today;
     LoadRegisterList();
     UITools.LoadComboFromStringTranslator(cboInterestCategory, HostUI.Company.Categories, false);
     LoadInterestTypes();
     return(this.ShowDialog());
 }
Exemple #7
0
 public void Show(IHostUI hostUI, DashboardData data)
 {
     mHostUI  = hostUI;
     mCompany = mHostUI.Company;
     mData    = data;
     mData.Load();
     DisplayData();
     SetCellDetailVisiblity(false);
     this.MdiParent = mHostUI.GetMainForm();
     this.Show();
 }
Exemple #8
0
        public DialogResult ShowDialog(ExportEngine exportEngine, IHostUI hostUI)
        {
            ExportEngine       = exportEngine;
            HostUI             = hostUI;
            ctlStartDate.Value = new DateTime(1980, 1, 1);
            ctlEndDate.Value   = DateTime.Today;
            DialogResult result = this.ShowDialog();

            if (result == DialogResult.OK)
            {
                // Set ExportEngine properties
                ExportEngine.StartDate        = ctlStartDate.Value;
                ExportEngine.EndDate          = ctlEndDate.Value;
                ExportEngine.BalanceSheetMaps = BalanceSheetMaps;
                ExportEngine.CategoryMaps     = CategoryMaps;
            }
            return(result);
        }
Exemple #9
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="host">Host interface.</param>
        public ArchiveView(IHostUI host)
        {
            InitializeComponent();

            _hostUI = host;
        }
Exemple #10
0
 public GeneralPlugins(IHostUI hostUI)
     : base(hostUI)
 {
 }
Exemple #11
0
 public MailStoreExtractorHelper(MailStoreContent mailStoreContent, IMailStoreExtractor mailStoreExtractor, IHostUI messageLogger)
 {
     _mailStoreContent   = mailStoreContent;
     _mailStoreExtractor = mailStoreExtractor;
     _messageLogger      = messageLogger;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="archiveContent"></param>
 /// <param name="archiveExtractor"></param>
 /// <param name="host"></param>
 public ArchiveExtractorHelper(ArchiveContent archiveContent, IArchiveExtractor archiveExtractor, IHostUI host)
 {
     _archiveContent   = archiveContent;
     _archiveExtractor = archiveExtractor;
     _hostUI           = host;
 }
Exemple #13
0
 public DashboardPlugin(IHostUI hostUI)
     : base(hostUI)
 {
 }