예제 #1
0
파일: MainForm.cs 프로젝트: vehar/tex-conv
        private void b_format_change_options_Click(object sender, EventArgs e)
        {
            if ((null != m_sel_header) && (0 < m_sel_subitems.Count))
            {
                if (2 > m_sel_subitems.Count)
                {
                    ListViewItem.ListViewSubItem lsi = m_sel_subitems[0];

                    FormatOptionsForm form = new FormatOptionsForm();
                    form.m_desc           = (m_sel_header.Tag as conv_core.cFormat).writer_options_desc;
                    form.m_target         = lsi.Tag as conv_core.cImageFile;
                    form.l_file_type.Text = m_sel_header.Text;

                    switch (form.ShowDialog(this))
                    {
                    case DialogResult.OK:
                        form.m_target.options = form.m_new_options;
                        t_mod.Enabled         = true;
                        break;
                    }
                    ;
                }
                else
                {
                };
            }
            ;
        }
예제 #2
0
        private void b_format_change_options_Click(object sender, EventArgs e)
        {
            if( ( null != m_sel_header ) && ( 0 < m_sel_subitems.Count ) ){
                if( 2 > m_sel_subitems.Count ){
                    ListViewItem.ListViewSubItem lsi = m_sel_subitems[0];

                    FormatOptionsForm form	= new FormatOptionsForm();
                    form.m_desc				= (m_sel_header.Tag as conv_core.cFormat).writer_options_desc;
                    form.m_target			= lsi.Tag as conv_core.cImageFile;
                    form.l_file_type.Text	= m_sel_header.Text;

                    switch( form.ShowDialog( this ) ){
                        case DialogResult.OK:
                            form.m_target.options	= form.m_new_options;
                            t_mod.Enabled			= true;
                        break;
                    };
                }else{

                };
            };
        }