Пример #1
0
        //Constructs the settings module with the form and shared data as reference
        public SettingsModule(FrmMain frm, SharedData data)
        {
            //Locally stores the form and shared data references
            this.frm = frm;
            this.data = data;

            //Sets the file path to the application's start up path combined with the settings.moneta extension
            filePath = data.databasePath + "\\SETTINGS.MONETA";
        }
Пример #2
0
        //Main form class constructor
        public FrmMain()
        {
            //Instanstiates the program's shared data
            data = new SharedData();

            //Instanstiates the program's modules, with the form, and the shared data variable as it's parameters.
            invoices = new InvoiceModule(this, data);
            settings = new SettingsModule(this, data);
            businessStats = new BusinessStatsModule(this, data);
            clients = new ClientModule(this, data);
            expenses = new ExpenseModule(this, data);

            //Initializes the form
            InitializeComponent();

            //Initializes the modules
            invoices.initialize();
            expenses.initialize();
            businessStats.initialize();
            settings.initialize();
        }
Пример #3
0
 //Class constructor with the form and shared data as parameters
 public ClientModule(FrmMain frm, SharedData data)
 {
     //Locally stores the refrences to the parameters
     this.frm = frm;
     this.data = data;
 }
Пример #4
0
 //Class constructor with the form and shared data parameters
 public ExpenseModule(FrmMain frm, SharedData data)
 {
     //Locally stores the form and shared data
     this.frm = frm;
     this.data = data;
 }
Пример #5
0
 //Class constructor with the form and shared data passed in as refrences
 public InvoiceModule(FrmMain frmMain, SharedData data)
 {
     //Locally stores the parameters
     this.frm = frmMain;
     this.data = data;
 }