Exemplo n.º 1
0
 public void LoadContext(TrayAppContext ac)
 {
     appContext    = ac;
     sFileSettings = MMExt.MMConLocation() + "\\" + sFileSettingFileName;
     RefreshTasks();
     RefreshSchedule();
     if (!tAppClock.Enabled)
     {
         tAppClock.Enabled = true;
     }
 }
Exemplo n.º 2
0
        //   [TestMethod]
        public void ViewColumns()
        {
            string     sFileName = MMExt.MMConLocation() + "\\Damonsx2.ini";
            CFileTable Damons    = new CFileTable(sFileName);

            //foreach (short x in Damons.Columns.Keys) {
            //  CColumn c = (CColumn)Damons.Columns[x];
            //  Console.WriteLine("Key:"+ c.Key.toString()+ ";Name:"+ c.Name +";Caption:"+c.Caption+";Type:"+c.ColType.ToString()+";");
            // }

            foreach (Int32 x in Damons.Rows.Keys)
            {
                CRow c = Damons.Rows[x];
                Console.WriteLine("Key:" + x.toString() + ";Con:" + c["CI"].Value + ";Ma:" + c["MA"].Value + ";");
            }
        }
Exemplo n.º 3
0
        public void LoadContext(TrayAppContext ac)
        {
            appContext    = ac;
            sFileSettings = MMExt.MMConLocation() + "\\" + sFileSettingFileName;
            IniFile ai    = IniFile.FromFile(sFileSettings);
            string  sFile = ai["Settings"]["LocalFolder"];

            if (sFile != "")
            {
                textBox1.Text = sFile;
            }
            sFile = ai["Settings"]["WorkingFolder"];
            if (sFile != "")
            {
                textBox2.Text = sFile;
            }
            //edOut.Text += sFileSettings+Environment.NewLine;
        }
Exemplo n.º 4
0
        //  [TestMethod]
        public void ReCreateDamons()
        {
            string sFileName = MMExt.MMConLocation() + "\\Damonsx2.ini";

            if (File.Exists(sFileName))
            {
                File.Delete(sFileName);
            }
            CFileTable Damons = new CFileTable(sFileName);

            Damons.Columns.Add(new CColumn(Damons.Columns, "ConID", "CI", CColType.ctString));
            Damons.Columns.Add(new CColumn(Damons.Columns, "Machine", "MA", CColType.ctString));
            Damons.Columns.Add(new CColumn(Damons.Columns, "Signin", "SI", CColType.ctDateTime));
            Damons.Columns.Add(new CColumn(Damons.Columns, "SignOut", "SO", CColType.ctDateTime));

            CRow r = Damons.Rows.Add(new CRow(Damons.Rows));

            r["CI"].Value = "Connection 1";
            r["MA"].Value = "Machine B";
            r["SI"].Value = DateTime.Now.toString();

            Damons.SaveTable();
        }
Exemplo n.º 5
0
 public dlgEditTask()
 {
     InitializeComponent();
     sFileSettings = MMExt.MMConLocation() + "\\" + sFileSettingFileName;
     ai            = IniFile.FromFile(sFileSettings);
 }