コード例 #1
0
        public NotificationAreaForm()
        {
            InitializeComponent();
            PositionForm();
            _core = new DiskUsage();

            HideForm(_core.SettingsFileWasGenerated);

            orderByCombo.AddEnumDescriptionItems(new SortingOption(), ComboIndex);

            //do an update now
            _core.RequestUpdateFromAll();
            NotificationTime          = DateTime.Now.AddSeconds(10);
            notificationTimer.Enabled = true;
        }
コード例 #2
0
        void ShowForm()
        {
            if (!HasOneOrMorePath)
            {
                AddNewPath(this, new EventArgs());
            }
            else
            {
                RebuildUserInterface();
            }

            _allowshowdisplay = true;
            Visible           = true;

            SetAvailabilityOfChartMenuItems();
            _core.RequestUpdateFromAll();
        }