Beispiel #1
0
        private void Button_Click_8(object sender, RoutedEventArgs e)
        {
            System.Windows.Forms.SaveFileDialog sv = new System.Windows.Forms.SaveFileDialog();
            sv.Filter = "JWC工程文件|*.jwc";
            System.Windows.Forms.DialogResult dr = sv.ShowDialog();
            if (dr != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }

            SLHelper sl = new SLHelper(stage, Communicator_Data, Adapter_Data);

            sl.ComFname = ComFname;
            sl.AdaFname = AdaFname;
            sl.SaveFile(sv.FileName);
        }
Beispiel #2
0
        private void Button_Click_9(object sender, RoutedEventArgs e)
        {
            System.Windows.Forms.OpenFileDialog op = new System.Windows.Forms.OpenFileDialog();
            op.Filter = "JWC工程文件|*.jwc";
            System.Windows.Forms.DialogResult dr = op.ShowDialog();
            if (dr != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }

            SLHelper sl = new SLHelper(stage, null, null);

            sl.LoadFile(op.FileName);
            Communicator_Data = sl.commu;
            Adapter_Data      = sl.adapter;
            ComFname          = sl.ComFname;
            AdaFname          = sl.AdaFname;
        }