private Setting.ProcessingOption GetOption()
        {
            Setting.ProcessingOption option = Setting.ProcessingOption.None;

            option |= WriteToPngCheckBox.IsChecked == true ? Setting.ProcessingOption.WriteToPng : option;
            option |= WriteToLabelCheckBox.IsChecked == true ? Setting.ProcessingOption.WriteToLabel : option;
            option |= PrintCheckBox.IsChecked == true ? Setting.ProcessingOption.Print : option;

            return(option);
        }
        private static void Process(Setting.ProcessingOption option)
        {
            if ((option & Setting.ProcessingOption.WriteToPng) == Setting.ProcessingOption.WriteToPng)
            {
                OnUpdateStatusText("Writing to png..", Colors.RoyalBlue);
                LabelManager.WriteToPng();
            }

            if ((option & Setting.ProcessingOption.WriteToLabel) == Setting.ProcessingOption.WriteToLabel)
            {
                OnUpdateStatusText("Writing to label..", Colors.RoyalBlue);
                LabelManager.WriteToLabel();
            }

            if ((option & Setting.ProcessingOption.Print) == Setting.ProcessingOption.Print)
            {
                OnUpdateStatusText("Priting..", Colors.RoyalBlue);
                LabelManager.Print();
            }
        }