private void addEntryToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (var frm = new FrmBaşlangıcaEkle())
     {
         if (frm.ShowDialog() == DialogResult.OK)
         {
             if (_connectClient != null)
             {
                 new DoStartupItemAdd(Başlangıçİtemleri.Name, Başlangıçİtemleri.Path,
                                      Başlangıçİtemleri.Type).Execute(_connectClient);
                 lstStartupItems.Items.Clear();
                 new GetStartupItems().Execute(_connectClient);
             }
         }
     }
 }
Ejemplo n.º 2
0
        private void addToStartupToolStripMenuItem_Click(object sender, EventArgs e)
        {
            foreach (ListViewItem files in lstDirectory.SelectedItems)
            {
                DizinTürleri type = (DizinTürleri)files.Tag;

                if (type == DizinTürleri.Dosya)
                {
                    string path = GetAbsolutePath(files.SubItems[0].Text);

                    using (var frm = new FrmBaşlangıcaEkle(path))
                    {
                        if (frm.ShowDialog() == DialogResult.OK)
                        {
                            if (_connectClient != null)
                            {
                                new KuuhakuCekirdek.Paketler.ServerPaketleri.DoStartupItemAdd(Başlangıçİtemleri.Name, Başlangıçİtemleri.Path,
                                                                                              Başlangıçİtemleri.Type).Execute(_connectClient);
                            }
                        }
                    }
                }
            }
        }