Beispiel #1
0
        private void cbLogOff_Click(Object eventSender, EventArgs eventArgs)
        {
            DialogResult result = (DialogResult)0;
            frmCashCount cash   = null;

            if (MainModule.IsShiftStarted())
            {
                result = MessageBox.Show("Are you ready to end your shift", Application.ProductName, MessageBoxButtons.YesNo);
                if (result == System.Windows.Forms.DialogResult.Yes)
                {
                    cash = frmCashCount.CreateInstance();
                    cash.ShowDialog();
                    this.Hide();
                }
            }
        }
        private void cbLogOff_Click(Object eventSender, EventArgs eventArgs)
        {
            Mobilize.Web.DialogResult result = (Mobilize.Web.DialogResult) 0;
            frmCashCount cash = null;

            if (MainModule.IsShiftStarted())
            {
                result = Mobilize.Web.MessageBox.Show("Are you ready to end your shift", System.Diagnostics.FileVersionInfo.GetVersionInfo(System.Reflection.Assembly.GetExecutingAssembly().Location).ProductName, Mobilize.Web.MessageBoxButtons.YesNo);
                if (result == Mobilize.Web.DialogResult.Yes)
                {
                    cash = frmCashCount.CreateInstance();
                    cash.ShowDialog();
                    this.Hide();
                }
            }
        }