Added a form to manage 'profiles' and of course, added the database code to handle such things.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace DataOrganizer
|
||||
{
|
||||
public partial class FileViewer : Form
|
||||
{
|
||||
public FileViewer()
|
||||
{
|
||||
InitializeComponent();
|
||||
var db = new DB();
|
||||
|
||||
var profiles = db.GetProfiles();
|
||||
|
||||
if(profiles.Count == 0)
|
||||
{
|
||||
// insert
|
||||
var man = new ProfileManager();
|
||||
man.ShowDialog();
|
||||
}
|
||||
}
|
||||
|
||||
private void FolderSelectButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
var form = new ProfileManager();
|
||||
form.ShowDialog();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user