Пример #1
0
        async void OnBtnRefresh(object sender, EventArgs args)
        {
            BtnRefresh.Opacity = 0;
            await BtnRefresh.FadeTo(1, 200);

            RefreshList();
            HideMenu();
            await DisplayAlert("Job List", "Jobs have been refreshed", "Thanks");
        }
Пример #2
0
        protected override bool ProcessCmdKey(ref System.Windows.Forms.Message msg, Keys keyData)
        {
            switch (keyData)
            {
            case Keys.F5:
                BtnRefresh.Focus();
                this.OnLoadData(null, null);
                return(true);

            default:
                break;
            }
            return(base.ProcessCmdKey(ref msg, keyData));
        }
Пример #3
0
 private void BtnSave_Click(object sender, EventArgs e)
 {
     try
     {
         BtnRefresh.PerformClick();
         ProgramManager.InserstionData(CmdLicenceLoad.LoadDataToDataBase(DebutLicenceDetails.Text, DateExpirationDelais.Text, NumeroLicnceDetails.Text, JourRestant.Text, CodeClientDetails.Text, GropLicences.Properties.Items[GropLicences.SelectedIndex].Description));
         MsgBox.Show(this, MessagesSystem.ModifSaved);
     }
     catch (Exception ex)
     {
         MsgBox.Show(this, ex.Message);
     }
     BtnSave.Enabled = false;
 }
Пример #4
0
        void ReleaseDesignerOutlets()
        {
            if (BtnRefresh != null)
            {
                BtnRefresh.Dispose();
                BtnRefresh = null;
            }

            if (txtDescription != null)
            {
                txtDescription.Dispose();
                txtDescription = null;
            }
        }
Пример #5
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.act_main);

            // Setup DB
            Vm.SetupDB();
            Vm.CreateSmokeTable();

            // Illustrates how to use the Messenger by receiving a message
            // and sending a message back.
            Messenger.Default.Register <NotificationMessageAction <string> >(
                this,
                HandleNotificationMessage);

            // Binding and commanding

            // Binding between the first TextView and the WelcomeTitle property on the VM.
            // Keep track of the binding to avoid premature garbage collection
            _bindings.Add(
                this.SetBinding(
                    () => Vm.SmokesToday,
                    () => TvSmokesToday.Text));

            // Actuate the IncrementCommand on the VM.
            BtnAddSmoke.SetCommand(
                "Click",
                Vm.AddSmokeCommand);

            // Actuate the RefreshCommand on the VM.
            BtnRefresh.SetCommand(
                "Click",
                Vm.RefreshCommand);

            // Actuate the ResetCommand on the VM.
            BtnReset.SetCommand(
                "Click",
                Vm.ResetSmokesCommand);

            // Actuate the Log Activity Button on the VM.
            BtnLogActivity.SetCommand(
                "Click",
                Vm.NavigateCommand,
                string.Empty);

            // Get SmokesCOunt from DB
            Vm.RefreshSmokesCount();
        }
Пример #6
0
        void ReleaseDesignerOutlets()
        {
            if (BtnBufferSizeChange != null)
            {
                BtnBufferSizeChange.Dispose();
                BtnBufferSizeChange = null;
            }

            if (BtnClear != null)
            {
                BtnClear.Dispose();
                BtnClear = null;
            }

            if (BtnClose != null)
            {
                BtnClose.Dispose();
                BtnClose = null;
            }

            if (BtnFilter != null)
            {
                BtnFilter.Dispose();
                BtnFilter = null;
            }

            if (BtnOff != null)
            {
                BtnOff.Dispose();
                BtnOff = null;
            }

            if (BtnRefresh != null)
            {
                BtnRefresh.Dispose();
                BtnRefresh = null;
            }

            if (CboColumns != null)
            {
                CboColumns.Dispose();
                CboColumns = null;
            }

            if (CbOperator != null)
            {
                CbOperator.Dispose();
                CbOperator = null;
            }

            if (ChkAutoRefresh != null)
            {
                ChkAutoRefresh.Dispose();
                ChkAutoRefresh = null;
            }

            if (Status != null)
            {
                Status.Dispose();
                Status = null;
            }

            if (SuperLogsTableView != null)
            {
                SuperLogsTableView.Dispose();
                SuperLogsTableView = null;
            }

            if (TxtBufferSize != null)
            {
                TxtBufferSize.Dispose();
                TxtBufferSize = null;
            }

            if (TxtFilterValue != null)
            {
                TxtFilterValue.Dispose();
                TxtFilterValue = null;
            }

            if (TxtRefreshInterval != null)
            {
                TxtRefreshInterval.Dispose();
                TxtRefreshInterval = null;
            }
        }
Пример #7
0
 private void BtnRefresh_Click(object sender, EventArgs e)
 {
     BtnRefresh?.Invoke(this, EventArgs.Empty);
 }