Ejemplo n.º 1
0
 public MessageHelperForm(MessageHelpInfoList messageHelpList, string messageHelpXmlFilePath)
 {
     InitializeComponent();
     this.messageHelpList = messageHelpList;
     this.messageHelpList.IsChangeSaved = false;
     this.messageHelpXmlFilePath        = messageHelpXmlFilePath;
 }
Ejemplo n.º 2
0
        public MainForm()
        {
            InitializeComponent();
            InitializeBackgroundWorker();

            // 기본적으로 FDC (S6, F1)은 제외되도록
            messageFilter.ExcludeMessages.Add("S6, F1");
            messageFilter.IsExcludeEnable = true;
            msgFilterButton.Image         = imageListFilter.Images[(int)eFilterImg.FILTER_YES];

            try
            {
                using (StreamReader sr = new StreamReader(Application.StartupPath + "\\" + messageHelpXmlFilePath))
                {
                    XmlSerializer xs = new XmlSerializer(typeof(MessageHelpInfoList));
                    this.messageHelpInfoList = (MessageHelpInfoList)xs.Deserialize(sr);
                }
            }
            catch (Exception)
            {
                MessageBox.Show("Coudn't open message helper file.");
            }
        }