Exemplo n.º 1
0
        private void setText(HistoryDataPrtsc hisPrtsc)
        {
            if (null != hisPrtsc)
            {
                hisPrtsc.setText(SelectTag1.Text, radLabel1.Text, radLabel2.Text, 1);
                hisPrtsc.setText(SelectTag5.Text, radLabel3.Text, radLabel6.Text, 2);
                hisPrtsc.setText(SelectTag6.Text, radLabel4.Text, radLabel7.Text, 3);
                hisPrtsc.setText(SelectTag7.Text, radLabel5.Text, radLabel8.Text, 4);

                hisPrtsc.setText(SelectTag8.Text, radLabel24.Text, radLabel9.Text, 5);
                hisPrtsc.setText(SelectTag2.Text, radLabel23.Text, radLabel10.Text, 6);
                hisPrtsc.setText(SelectTag9.Text, radLabel22.Text, radLabel11.Text, 7);
                hisPrtsc.setText(SelectTag10.Text, radLabel21.Text, radLabel12.Text, 8);

                hisPrtsc.setText(SelectTag11.Text, radLabel28.Text, radLabel13.Text, 9);
                hisPrtsc.setText(SelectTag12.Text, radLabel27.Text, radLabel14.Text, 10);
                hisPrtsc.setText(SelectTag3.Text, radLabel26.Text, radLabel15.Text, 11);
                hisPrtsc.setText(SelectTag13.Text, radLabel25.Text, radLabel16.Text, 12);

                hisPrtsc.setText(SelectTag14.Text, radLabel32.Text, radLabel17.Text, 13);
                hisPrtsc.setText(SelectTag15.Text, radLabel31.Text, radLabel18.Text, 14);
                hisPrtsc.setText(SelectTag16.Text, radLabel30.Text, radLabel19.Text, 15);
                hisPrtsc.setText(SelectTag4.Text, radLabel29.Text, radLabel20.Text, 16);
            }
        }
Exemplo n.º 2
0
        private void pickture_btn_Click(object sender, EventArgs e)
        {
            try
            {
                HistoryDataPrtsc h = new HistoryDataPrtsc();
                //h.drillNo = rtxt_drillNo.Text;
                //h.lease = rtxt_lease.Text;
                //h.company = rtxt_company.Text;
                //h.country = rtxt_country.Text;
                //h.contractor = rtxt_contractor.Text;
                //h.dateSpud = rtxt_ds.Text;
                //h.toolPusher = rtxt_tp.Text;
                //h.daterelease = rtxt_dr.Text;
                //h.companyman = rtxt_cm.Text;
                h.tag1      = SelectedTag.Count >= 1 ? SelectTag1.Text : "";
                h.tag2      = SelectedTag.Count >= 2 ? SelectTag2.Text : "";
                h.tag3      = SelectedTag.Count >= 3 ? SelectTag3.Text : "";
                h.tag4      = SelectedTag.Count >= 5 ? SelectTag4.Text : "";
                h.time_from = historyDataDepthShow1.GetRange()[0];
                h.time_to   = historyDataDepthShow1.GetRange()[1];
                h.from1     = double.Parse(rlbl_left_tag1.Text);
                h.to1       = double.Parse(rlbl_right_tag1.Text);
                h.from2     = double.Parse(rlbl_left_tag2.Text);
                h.to2       = double.Parse(rlbl_right_tag2.Text);
                h.from3     = double.Parse(rlbl_left_tag3.Text);
                h.to3       = double.Parse(rlbl_right_tag3.Text);
                h.from4     = double.Parse(rlbl_left_tag4.Text);
                h.to4       = double.Parse(rlbl_right_tag4.Text);
                h.listText  = historyDataDepthShow1.GetTextObj();
                if (SelectedTag.Count <= 0)
                {
                    MessageBox.Show(lbl_message[2]);
                    return;
                }

                getPointList(h);
                setText(h);

                //h.iList1 = historyDataShow1.GetPointList(0);
                //h.iList2 = historyDataShow2.GetPointList(1);
                //h.iList3 = historyDataShow3.GetPointList(2);
                //h.iList4 = historyDataShow4.GetPointList(3);
                h.ShowDialog();
                if (h.clickOK)
                {
                    //路径选择
                    SaveFileDialog path = new SaveFileDialog();
                    path.FileName = "HistoryData_" + DateTime.Now.ToString("yyyyMMddHHmmss");
                    path.Filter   = "(*.png)|*.png|(*.jpg)|*.jpg";
                    if (path.ShowDialog() == DialogResult.OK)
                    {
                        h.bit.Save(path.FileName);
                    }
                }
            }
            catch { }
        }
Exemplo n.º 3
0
        /// <summary>
        /// 保存截图
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void getPointList(HistoryDataPrtsc hisPrtsc)
        {
            hisPrtsc.iList1 = historyDataShow1.GetPointList(0);
            hisPrtsc.iList2 = historyDataShow1.GetPointList(1);
            hisPrtsc.iList3 = historyDataShow1.GetPointList(2);
            hisPrtsc.iList4 = historyDataShow1.GetPointList(3);

            hisPrtsc.iList5 = historyDataShow2.GetPointList(0);
            hisPrtsc.iList6 = historyDataShow2.GetPointList(1);
            hisPrtsc.iList7 = historyDataShow2.GetPointList(2);
            hisPrtsc.iList8 = historyDataShow2.GetPointList(3);

            hisPrtsc.iList9  = historyDataShow3.GetPointList(0);
            hisPrtsc.iList10 = historyDataShow3.GetPointList(1);
            hisPrtsc.iList11 = historyDataShow3.GetPointList(2);
            hisPrtsc.iList12 = historyDataShow3.GetPointList(3);

            hisPrtsc.iList13 = historyDataShow4.GetPointList(0);
            hisPrtsc.iList14 = historyDataShow4.GetPointList(1);
            hisPrtsc.iList15 = historyDataShow4.GetPointList(2);
            hisPrtsc.iList16 = historyDataShow4.GetPointList(3);
        }