private void InitializeTimecard()
        {
            //TODO: DefaultTaskName = (Registry.Read(REGKEY_LASTPROJECT) ?? "") as string;

            string dataFilename = Registry.DataFilename;
            if (string.IsNullOrEmpty(dataFilename))
            {
                dataFilename = Path.Combine(Application.StartupPath, Resources.DefaultFilename);
                Registry.DataFilename = dataFilename;
            }
            TimeCard = new TimeCard(dataFilename);

            //TestTimeCard();
        }
Ejemplo n.º 2
0
 public frmMain(TimeCard timeCard)
 {
     TimeCard = timeCard;
     InitializeComponent();
 }