Esempio n. 1
0
    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);
    }
Esempio n. 2
0
    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);
    }
Esempio n. 3
0
 TSupportSettings (string filePath, string fileName)
   : this ()
 {
   IniFileManager.SelectPath (filePath, fileName);
 }