TSupportSettings () { Result = TValidationResult.CreateDefault; IniFileManager = TIniFileManager.CreatDefault; m_SupportSettingsData = TSupportSettingsData.CreateDefault; m_FilePath = System.Environment.CurrentDirectory; m_FileName = TNames.SettingsIniFileName; IniFileManager.SelectPath (m_FilePath, m_FileName); }
public TShellViewModel (IShellPresentation presentation) : base (new TShellModel ()) { TypeName = GetType ().Name; if (presentation.NotNull ()) { presentation.ViewModel = this; } m_Process = new Dictionary<TProcess.TName, Process> (); m_DataComm = TDataComm.CreateDefault; m_Communication = new TMessagingComm<TDataComm> (m_DataComm); m_Communication.Handle += OnCommunicationHandle; // Attach event handler for incoming messages var filePath = System.Environment.CurrentDirectory; var fileName = TNames.SettingsIniFileName; IniFileManager = TIniFileManager.CreatDefault; IniFileManager.SelectPath (filePath, fileName); }
TSupportSettings (string filePath, string fileName) : this () { IniFileManager.SelectPath (filePath, fileName); }