Пример #1
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);
    }
Пример #2
0
 public TShellFactoryViewModel (IShellPresentation presentation)
   : base (presentation, new TShellFactoryModel ())
 {
 }
Пример #3
0
 public TShellCollectionViewModel (IShellPresentation presentation)
   : base (presentation, new TShellCollectionModel ())
 {
   TypeName = GetType ().Name;
 }
Пример #4
0
 public TShellReportViewModel (IShellPresentation presentation)
   : base (presentation, new TShellReportModel ())
 {
   TypeName = GetType ().Name;
 }
Пример #5
0
 public TShellCollectionViewModel (IShellPresentation presentation)
   : base (presentation, new TShellCollectionModel ())
 {
 }
Пример #6
0
 public TShellViewModel (IShellPresentation presentation)
   : base (presentation, new TShellModel (), TProcess.GADGETTEST)
 {
 }
 public TShellFactoryDatabaseViewModel (IShellPresentation presentation)
   : base (presentation, new TShellFactoryDatabaseModel ())
 {
   TypeName = GetType ().Name;
 }
Пример #8
0
 public TShellViewModel (IShellPresentation presentation)
   : base (presentation, new TShellModel (), TProcess.GADGETREGISTRATION)
 {
 }
Пример #9
0
 public TShellViewModel (IShellPresentation presentation)
   : base (presentation, new TShellModel (), TProcess.MODULESETTINGS)
 {
 }