Esempio n. 1
0
        //constructor
        public MainWindow()
        {
            //initialize
            setUp        = new SetUpDialog(this);
            logCategorys = new List <Category>();
            logPrograms  = new List <Programm>();
            resetTime    = DateTime.Now;
            InitializeComponent();
            LoadLog();
            editCats = new EditCategory(this);
            if (!setUp.passSet())
            {
                setUp.ShowDialog();
            }
            RegistryKey reg = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", true);

            if (reg.GetValue(projectName) != null)
            {
                autostartToolStripMenuItem.Checked = true;
            }
            update.Start();
            lvwColumnSorter = new ListViewComparer();
            installedProgsListView.ListViewItemSorter = lvwColumnSorter;
            currentProgsListView.ListViewItemSorter   = lvwColumnSorter;
            savedProgsListView.ListViewItemSorter     = lvwColumnSorter;
        }