protected void Init() { Stk_items = new StackPanel(); Stk_insert = new StackPanel(); Grid_bulk_insert = new Grid(); Txt_bulk_insert = new TextBox(); Txt_avg_w = new TextBox(); Txt_avg_m = new TextBox(); Txt_avg_all = new TextBox(); Txt_tries = new TextBox(); Txt_chance = new TextBox(); Lbl_avg_w = new Label(); Lbl_avg_m = new Label(); Lbl_avg_all = new Label(); Lbl_tries = new Label(); Lbl_sen = new Label(); Lbl_chance = new Label(); Lbl_imp = new Label(); Cob_imp = new ComboBox(); Btn_isActive = new ButtonActive(); Btn_insert = new Button(); Btn_filter = new Button(); Cob_bulk_imp = new ComboBox(); }
private async void Button_Clicked_1(object sender, EventArgs e) { try { Device.BeginInvokeOnMainThread(async() => { //ButtonActive.IsEnabled = false; //ButtonArchive.IsEnabled = false; frames.Clear(); arrows.Clear(); var r = await GetOssData(0); ((Button)sender).TextColor = colorFromMobileSettings; ButtonActive.SetAppThemeColor(Button.TextColorProperty, Color.Black, Color.White); //ButtonActive.IsEnabled = true; //ButtonArchive.IsEnabled = true; }); } catch (Exception ex) { await DisplayAlert(AppResources.ErrorTitle, AppResources.ErrorOSSMainInfo, "OK"); } //архивные //GetOssData(0); //Device.BeginInvokeOnMainThread(() => //{ // ((Button)sender).TextColor = colorFromMobileSettings; // ButtonActive.TextColor = Color.White; //}); }
public void SetActive(ButtonActive state) { if (state == ButtonActive.Enabled) { buttonObj.SetActive(true); } if (state == ButtonActive.Disabled) { buttonObj.SetActive(false); } }
public QuestWpfItem() { Stk_sen = new StackPanel(); Def = new TextBox(); Ptbr = new TextBox(); Add_sen = new TextBox(); Avg_w = new Label(); Avg_m = new Label(); Avg_all = new Label(); Tries = new Label(); Last_try = new Label(); Chance = new Label(); Imp = new ComboBox(); Show_sen = new Button(); IsActive = new ButtonActive(); Show_ptbr = new Button(); Show_def = new Button(); Edit = new Button(); Remove = new Button(); }