예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            //if (rozp == false) { MessageBox.Show("Edycja przy braku ustalonego rozpoznania i zaleceń może spowodować, że jeśli po edycji ustalisz rozpoznanie utracisz zmiany dokonane podaczas edycji!!!!"); }
             Form21 f = new Form21();string html= File.ReadAllText(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "index.html");
            WybierzEdycje we = new WybierzEdycje();
            we.comboBox1.Items.Clear();
            we.comboBox1.Items.Add("Etap 1 i 2");
            we.comboBox1.Items.Add("Etap 4, 5 i 6");
            we.comboBox1.Items.Add("Pomiar tętna i BP");
            we.comboBox1.Items.Add("Badanie k. dolnych");
            we.comboBox1.Items.Add("Badanie k. górnych");
            we.comboBox1.Items.Add("Badanie n. czaszkowych");
            we.comboBox1.Items.Add("Rozpoznanie i zalecenia");
            if (we.ShowDialog() == DialogResult.OK) {
                f.textBox1.Text = we.comboBox1.Text;
                if (we.comboBox1.Text == "Etap 1 i 2") { html = File.ReadAllText(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "etap1i2.html");}
                if (we.comboBox1.Text == "Etap 4, 5 i 6") { html = File.ReadAllText(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "etap4i5i6.html"); }
                if (we.comboBox1.Text == "Pomiar tętna i BP") { html = File.ReadAllText(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "t+rr.html"); }
                if (we.comboBox1.Text == "Badanie k. dolnych") { html = File.ReadAllText(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "b_kdolne.html"); }
                if (we.comboBox1.Text == "Badanie n. czaszkowych") { html = File.ReadAllText(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "b_czaszkowe.html"); }
                if (we.comboBox1.Text == "Badanie k. górnych") { html = File.ReadAllText(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "b_kgorne.html"); }
                if (we.comboBox1.Text == "Rozpoznanie i zalecenia") { html = File.ReadAllText(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "_zapis\\_rozpoznanie.html"); }
                f.html = html;
            if (f.ShowDialog() == DialogResult.OK)
            {
                string co = "";
                if (we.comboBox1.Text == "Etap 1 i 2") { co = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "etap1i2.html"; }
                if (we.comboBox1.Text == "Etap 4, 5 i 6") { co = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "etap4i5i6.html"; }
                if (we.comboBox1.Text == "Pomiar tętna i BP") { co = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "t+rr.html"; }
                if (we.comboBox1.Text == "Badanie k. dolnych") { co = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "b_kdolne.html"; }
                if (we.comboBox1.Text == "Badanie n. czaszkowych") { co = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "b_czaszkowe.html"; }
                if (we.comboBox1.Text == "Badanie k. górnych") { co = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "b_kgorne.html"; }
                if (we.comboBox1.Text == "Rozpoznanie i zalecenia") { co = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "_zapis\\_rozpoznanie.html"; }

                System.IO.StreamWriter file = new System.IO.StreamWriter(co);
                file.WriteLine(f.htmlwysiwyg1.getHTML());
                file.Close();

                html = File.ReadAllText(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "etap1i2.html");
                 html += File.ReadAllText(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "etap4i5i6.html");
                html += File.ReadAllText(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "t+rr.html");
                html += File.ReadAllText(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "b_czaszkowe.html");html += File.ReadAllText(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "b_kgorne.html");html += File.ReadAllText(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "b_kdolne.html");

                html += File.ReadAllText(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "_zapis\\_rozpoznanie.html");

                System.IO.StreamWriter file2 = new System.IO.StreamWriter(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "index.html");
                file2.WriteLine(f.htmlwysiwyg1.getHTML());
                file2.Close();

            }

            }

            //f.htmlwysiwyg1.allowEdit(true);

            //f.htmlwysiwyg1.setHTML(html);
            //f.htmlwysiwyg1.addFont("Segoe UI");
            f.html = html;
        }
예제 #2
0
파일: Form1.cs 프로젝트: kstawiski/neurexam
        private void button4_Click_1(object sender, EventArgs e)
        {
            if(openFileDialog1.ShowDialog() == DialogResult.OK) {
               string html=File.ReadAllText(openFileDialog1.FileName);
                Form21 f = new Form21();
            //f.htmlwysiwyg1.allowEdit(true);

            //f.htmlwysiwyg1.setHTML(html);
            //f.htmlwysiwyg1.addFont("Segoe UI");
            f.html = html;
            f.textBox1.Text = openFileDialog1.FileName;
            if (f.ShowDialog() == DialogResult.OK)
            {
                System.IO.StreamWriter file = new System.IO.StreamWriter(openFileDialog1.FileName);
            file.WriteLine(f.htmlwysiwyg1.getHTML());
            file.Close();

            }

            }
        }
예제 #3
0
파일: Form8.cs 프로젝트: kstawiski/neurexam
        private void button44_Click_1(object sender, EventArgs e)
        {
            string html = File.ReadAllText(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "b_czaszkowe.html");
            Form21 f = new Form21();
            //f.htmlwysiwyg1.allowEdit(true);

            //f.htmlwysiwyg1.setHTML(html);
            //f.htmlwysiwyg1.addFont("Segoe UI");
            f.html = html;
            f.textBox1.Text = "Badanie nerwów czaszkowych";
            if (f.ShowDialog() == DialogResult.OK)
            {
                System.IO.StreamWriter file = new System.IO.StreamWriter(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal) + "\\Badanie Neurologiczne by Konrad Stawiski\\" + katalogpacjenta + "b_czaszkowe.html");
                file.WriteLine(f.htmlwysiwyg1.getHTML());
                file.Close();

            }
        }