Exemplo n.º 1
0
        internal static bool Show(string message, string title, MessageButtons buttons)
        {
            MessageBoxButtons messsageBoxButtons;

            switch (buttons)
            {
            case MessageButtons.OkCancel:
                messsageBoxButtons = MessageBoxButtons.OKCancel;
                break;

            case MessageButtons.YesNo:
                messsageBoxButtons = MessageBoxButtons.YesNo;
                break;

            default:
                messsageBoxButtons = MessageBoxButtons.OK;
                break;
            }


            //TODO(adam): add displaying to custom form for auto-sizing, etc
            Lettering.MoveWindowToTop();
            DialogResult result = MessageBox.Show(message, title, messsageBoxButtons);

            return(result == DialogResult.OK || result == DialogResult.Yes);
        }
Exemplo n.º 2
0
 private void btnCheckSetup_Click(object sender, EventArgs e)
 {
     if (Lettering.CheckMacroSetup())
     {
         Messenger.Show("Setup is Ok!");
     }
 }
Exemplo n.º 3
0
        internal static void Main(string[] args)
        {
            Directory.CreateDirectory(FilePaths.tempFolderPath);

            System.Windows.Forms.Application.EnableVisualStyles();
            MainWindow window = new MainWindow();

            Lettering.SetMainWindow(window);
            window.ShowDialog();
        }
Exemplo n.º 4
0
        private void ExportReport(ReportType type)
        {
            DateTime?startDate = null;

            if (datePickerStart.Checked)
            {
                startDate = datePickerStart.Value;
            }

            DateTime?endDate = null;

            if (datePickerEnd.Checked)
            {
                endDate = datePickerEnd.Value;
            }

            Lettering.ExportReport(type, startDate, endDate);
        }
Exemplo n.º 5
0
        private void btnCutAutomation_Click(object sender, EventArgs e)
        {
            DateTime?startDate = null;

            if (datePickerStart.Checked)
            {
                startDate = datePickerStart.Value;
            }

            DateTime?endDate = null;

            if (datePickerEnd.Checked)
            {
                endDate = datePickerEnd.Value;
            }

            Lettering.AutomateReport(startDate, endDate);
        }
Exemplo n.º 6
0
 private void checkFontsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Lettering.CheckFonts();
 }
Exemplo n.º 7
0
 private void loadAllConfigsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Lettering.LoadAllConfigs();
 }
Exemplo n.º 8
0
 private void btnCsvAutomation_Click(object sender, EventArgs e)
 {
     Lettering.AutomateCsv();
 }