Exemplo n.º 1
0
 private void btLog_Click(object sender, EventArgs e)
 {
     if (log.IsDisposed)
     {
         log = new LogForm();
     }
     if (log.Visible)
     {
         log.Visible = false;
     }
     else
     {
         log.Show();
     }
 }
Exemplo n.º 2
0
 public Form1()
 { //TODO SYNC SOME PROJECTS
     InitializeComponent();
     log      = new LogForm();
     tmr      = new MyTimer(log);
     cfg      = new configmanager(cfg_file);
     Projects = cfg.ReadAllProjects() ?? new List <Project>();
     foreach (var p in Projects)
     {
         List_Projects.Items.Add(p.ToString());
     }
     DriveLette        = CONSTS.DriveLetter;
     button1.Text      = CONSTS.btSyncText1;
     this.FormClosing += Form1_FormClosing;
     List_Projects.SelectedIndexChanged += List_Projects_SelectedIndexChanged;
     list_dirs.SelectedIndexChanged     += List_dirs_SelectedIndexChanged;
     list_dirs.DoubleClick    += List_dirs_DoubleClick;
     checkBox1.CheckedChanged += CheckBox1_CheckedChanged;
     CONSTS.AddNewLine(tblog, "USB-Flash: " + DriveLette);
 }
Exemplo n.º 3
0
 public MyTimer(LogForm Log)
 {
     log     = Log;
     startID = new List <StartID>();
 }