Ejemplo n.º 1
0
        private void BtnBrwsLayout_Click(object sender, EventArgs e)
        {
            string settingPath = Path.GetDirectoryName(Param.SettingPath);
            string inputPath   = Common.PathCombine(settingPath, "Styles");

            inputPath = Common.PathCombine(inputPath, Param.Value["InputType"]);
            string stylenamePath = Common.PathCombine(inputPath, "Preview");

            PreviewPrintVia previewPrintVia = new PreviewPrintVia(_media, stylenamePath, EnableEdit());

            previewPrintVia.SelectedStyle = cmbSelectLayout.Text;
            previewPrintVia.InputType     = InputType;
            previewPrintVia.ShowDialog();
            LoadLayouts();
            if (previewPrintVia.DialogResult == DialogResult.OK)
            {
                cmbSelectLayout.Text = previewPrintVia.SelectedStyle;
            }
        }
Ejemplo n.º 2
0
        private void BtnBrwsLayout_Click(object sender, EventArgs e)
        {
            string settingPath = Path.GetDirectoryName(Param.SettingPath);
            string inputPath = Common.PathCombine(settingPath, "Styles");
            inputPath = Common.PathCombine(inputPath, Param.Value["InputType"]);
            string stylenamePath = Common.PathCombine(inputPath, "Preview");

            PreviewPrintVia previewPrintVia = new PreviewPrintVia(_media, stylenamePath, EnableEdit());
            previewPrintVia.SelectedStyle = cmbSelectLayout.Text;
            previewPrintVia.InputType = InputType;
            previewPrintVia.ShowDialog();
            LoadLayouts();
            if (previewPrintVia.DialogResult == DialogResult.OK)
            {
                cmbSelectLayout.Text = previewPrintVia.SelectedStyle;
            }
        }