Пример #1
0
        /// <summary>
        /// Új project
        /// </summary>
        public void New(string deviceName, string badurate)
        {
            OnLoading();

            if (System.IO.Directory.Exists(Settings.Default.BrowseLocation))
            {
                Environment.CurrentDirectory = Settings.Default.BrowseLocation;
            }

            FileName = AppConstants.NewFileName;
            FullPath = Environment.CurrentDirectory + "\\" + FileName + AppConstants.FileExtension;
            IsSaved  = false;

            _fileStorage.New();

            _fileStorage.Parameters.DeviceName = deviceName;
            _fileStorage.Parameters.Baudrate   = badurate;
            _fileStorage.Parameters.CopyTo(Parameters);
            _fileStorage.Filters.CopyTo(Filters);
            _fileStorage.Tools.CopyTo(Tools);

            CustomArbIdColumns.Clear();
            LogGridLayout.Clear();
            TraceGridLayout.Clear();

            IsChanged = false;
            OnLoadCompleted();
        }
Пример #2
0
            /// <summary>
            /// Új project
            /// </summary>
            public void New()
            {
                TraceGridLayout.Clear();
                LogGridLayout.Clear();
                StatisticsGridLayout.Clear();
                FilterGridLayout.Clear();
                Tools.Clear();
                ToolsLayouts.Clear();

                FileVersion = "1.0.0.0";
                Parameters.New();
                Tools.New();
            }