예제 #1
0
        private ATM()
        {
            dataPath = System.IO.Path.Combine(new System.IO.FileInfo(System.Reflection.Assembly.GetExecutingAssembly().Location).Directory.FullName, "Data");
            file = System.IO.Path.Combine(dataPath, "ATM.json");

            Model = new Models.ATM();
            View = new Views.FormATM();
            Config = new Views.FormConfig();

            View.Shown += View_Shown;

            View.FormClosing += View_Closing;
            Config.FormClosing += Config_FormClosing;

            Load();
        }
예제 #2
0
        private ATM()
        {
            dataPath = System.IO.Path.Combine(new System.IO.FileInfo(System.Reflection.Assembly.GetExecutingAssembly().Location).Directory.FullName, "Data");
            file     = System.IO.Path.Combine(dataPath, "ATM.json");

            Model  = new Models.ATM();
            View   = new Views.FormATM();
            Config = new Views.FormConfig();

            View.Shown += View_Shown;

            View.FormClosing   += View_Closing;
            Config.FormClosing += Config_FormClosing;

            Load();
        }