private void stokMaliyetKartıSilToolStripMenuItem_Click(object sender, EventArgs e) { StokMS stms = new StokMS(); AltacilanFormlar(stms); }
private void treeView1_DoubleClick(object sender, EventArgs e) { switch (secilen) { case "Mus": if (treeView1.Nodes[0].Nodes["0"].IsSelected) { MusteriCariKart mstt = new MusteriCariKart(); Altaacilsin(mstt); } else if (treeView1.Nodes[0].Nodes["1"].IsSelected) { CariKartlariguncelle gncl = new CariKartlariguncelle(); Altaacilsin(gncl); } else if (treeView1.Nodes[0].Nodes["2"].IsSelected) { CariKartlariSilme silme = new CariKartlariSilme(); Altaacilsin(silme); } break; case "Ted": if (treeView1.Nodes[0].Nodes["0"].IsSelected) { TedarikciCariKarti tdrikci = new TedarikciCariKarti(); Altaacilsin(tdrikci); } else if (treeView1.Nodes[0].Nodes["1"].IsSelected) { CariKartlariguncelle gncl = new CariKartlariguncelle(); Altaacilsin(gncl); } else if (treeView1.Nodes[0].Nodes["2"].IsSelected) { CariKartlariSilme silme = new CariKartlariSilme(); Altaacilsin(silme); } break; case "Per": if (treeView1.Nodes[0].Nodes["0"].IsSelected) { PersonelCariKarti prsnl = new PersonelCariKarti(); Altaacilsin(prsnl); } else if (treeView1.Nodes[0].Nodes["1"].IsSelected) { CariKartlariguncelle gncl = new CariKartlariguncelle(); Altaacilsin(gncl); } else if (treeView1.Nodes[0].Nodes["2"].IsSelected) { CariKartlariSilme silme = new CariKartlariSilme(); Altaacilsin(silme); } break; case "ok": if (treeView1.Nodes[0].Nodes["0"].IsSelected) { StokKarti stok = new StokKarti(); Altaacilsin(stok); } else if (treeView1.Nodes[0].Nodes["1"].IsSelected) { StokKartlariGuncelle stokgncl = new StokKartlariGuncelle(); Altaacilsin(stokgncl); } else if (treeView1.Nodes[0].Nodes["2"].IsSelected) { StokKartlariSilme stoksil = new StokKartlariSilme(); Altaacilsin(stoksil); } else if (treeView1.Nodes[0].Nodes["3"].IsSelected) { StokMaliyet sm = new StokMaliyet(); Altaacilsin(sm); } else if (treeView1.Nodes[0].Nodes["4"].IsSelected) { StokMG smg = new StokMG(); Altaacilsin(smg); } else if (treeView1.Nodes[0].Nodes["5"].IsSelected) { StokMS sms = new StokMS(); Altaacilsin(sms); } break; case "Alma": if (treeView1.Nodes[0].Nodes["0"].IsSelected) { Satinalma stn = new Satinalma(); Altaacilsin(stn); } else if (treeView1.Nodes[0].Nodes["1"].IsSelected) { SatinalmaGuncelleme stngncl = new SatinalmaGuncelleme(); Altaacilsin(stngncl); } else if (treeView1.Nodes[0].Nodes["2"].IsSelected) { SatinalmaSilme stnsil = new SatinalmaSilme(); Altaacilsin(stnsil); } break; case "S": if (treeView1.Nodes[0].Nodes["0"].IsSelected) { Satis sts = new Satis(); Altaacilsin(sts); } else if (treeView1.Nodes[0].Nodes["1"].IsSelected) { satisguncelle stsgncl = new satisguncelle(); Altaacilsin(stsgncl); } else if (treeView1.Nodes[0].Nodes["2"].IsSelected) { SatisSilme stssilme = new SatisSilme(); Altaacilsin(stssilme); } break; case "O": if (treeView1.Nodes[0].Nodes["0"].IsSelected) { Odeme odm = new Odeme(); Altaacilsin(odm); } else if (treeView1.Nodes[0].Nodes["1"].IsSelected) { OdemelerGuncelleme odmgncl = new OdemelerGuncelleme(); Altaacilsin(odmgncl); } else if (treeView1.Nodes[0].Nodes["2"].IsSelected) { OdemelerSilme odmsilme = new OdemelerSilme(); Altaacilsin(odmsilme); } break; case "T": if (treeView1.Nodes[0].Nodes["0"].IsSelected) { Tahsilat ths = new Tahsilat(); Altaacilsin(ths); } else if (treeView1.Nodes[0].Nodes["1"].IsSelected) { TahsilatGuncelleme thsgncl = new TahsilatGuncelleme(); Altaacilsin(thsgncl); } else if (treeView1.Nodes[0].Nodes["2"].IsSelected) { TahsilatlarSilme thssilme = new TahsilatlarSilme(); Altaacilsin(thssilme); } break; case "I": if (treeView1.Nodes[0].Nodes["0"].IsSelected) { Istakipformu istk = new Istakipformu(); Altaacilsin(istk); } else if (treeView1.Nodes[0].Nodes["1"].IsSelected) { IstakipFormguncelleme istkgncl = new IstakipFormguncelleme(); Altaacilsin(istkgncl); } else if (treeView1.Nodes[0].Nodes["2"].IsSelected) { IstakipFormuSil istksilme = new IstakipFormuSil(); Altaacilsin(istksilme); } break; case "R": if (treeView1.Nodes[0].Nodes["0"].IsSelected) { Musteriler mstrirpr = new Musteriler(); Altaacilsin(mstrirpr); } else if (treeView1.Nodes[0].Nodes["1"].IsSelected) { Tedarikciler tdrkcrpr = new Tedarikciler(); Altaacilsin(tdrkcrpr); } else if (treeView1.Nodes[0].Nodes["2"].IsSelected) { Personeller prsnl = new Personeller(); Altaacilsin(prsnl); } else if (treeView1.Nodes[0].Nodes["3"].IsSelected) { StoklarEkstresi stkrpr = new StoklarEkstresi(); Altaacilsin(stkrpr); } else if (treeView1.Nodes[0].Nodes["4"].IsSelected) { SatinalmaEkstresi stsrpr = new SatinalmaEkstresi(); Altaacilsin(stsrpr); } else if (treeView1.Nodes[0].Nodes["5"].IsSelected) { SatislarEkstre stsrpr = new SatislarEkstre(); Altaacilsin(stsrpr); } else if (treeView1.Nodes[0].Nodes["6"].IsSelected) { OdemelerEkstresi odmrpr = new OdemelerEkstresi(); Altaacilsin(odmrpr); } else if (treeView1.Nodes[0].Nodes["7"].IsSelected) { TahsilatEkstre thsrpr = new TahsilatEkstre(); Altaacilsin(thsrpr); } else if (treeView1.Nodes[0].Nodes["8"].IsSelected) { IsTakipFormlariRaporlama Istrpr = new IsTakipFormlariRaporlama(); Altaacilsin(Istrpr); } else if (treeView1.Nodes[0].Nodes["9"].IsSelected) { IsPersonelR Isr = new IsPersonelR(); Altaacilsin(Isr); } break; case "U": if (treeView1.Nodes[0].Nodes["0"].IsSelected) { IsPersonel Is = new IsPersonel(); Altaacilsin(Is); } else if (treeView1.Nodes[0].Nodes["1"].IsSelected) { TekliIsPersonel tekli = new TekliIsPersonel(); Altaacilsin(tekli); } else if (treeView1.Nodes[0].Nodes["2"].IsSelected) { IsPersonelG Isg = new IsPersonelG(); Altaacilsin(Isg); } else if (treeView1.Nodes[0].Nodes["3"].IsSelected) { IsPersonelleriS Iss = new IsPersonelleriS(); Altaacilsin(Iss); } break; default: break; } }