示例#1
0
 public GUIManager(Form1 form1, SettingsManager settingsManager, SQLiteManager sqliteManager, UserManager userManager, ConversionManager conversionManager)
 {
     this.form1 = form1;
     this.settingsManager = settingsManager;
     this.sqliteManager = sqliteManager;
     this.userManager = userManager;
     this.conversionManager = conversionManager;
 }
        public MainWindow()
        {
            InitializeComponent();
            buttonList = new List<Button>();
            converter = new BrushConverter();
            style1 = new System.Windows.Style();

            settingsManager = new SettingsManager();

            sqliteManager = new SQLiteManager(settingsManager.DatabasePath);

            userManager = new UserManager(settingsManager, sqliteManager);

            conversionManager = new ConversionManager(settingsManager, sqliteManager);

            maakStyles();
        }
示例#3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            settingsManager = new SettingsManager();

            sqliteManager = new SQLiteManager(settingsManager.DatabasePath);

            userManager = new UserManager(settingsManager, sqliteManager);

            conversionManager = new ConversionManager(settingsManager, sqliteManager);

            guiManager = new GUIManager(this, settingsManager, sqliteManager, userManager, conversionManager);
            guiManager.RefreshGUI();
        }