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(); }
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(); }