Esempio n. 1
0
 private void TbSmallText_OnTextChanged(object sender, TextChangedEventArgs e)
 {
     MultiRPCAndCustomLogic.CheckImageText((TextBox)sender);
     UpdateProfile(MasterCustomPage._MasterCustomPage.tblProfileName.Text, smallText: tbSmallText.Text);
     SetPresence();
     CanRunRPC();
 }
Esempio n. 2
0
        private async void CbElapasedTime_OnChecked(object sender, RoutedEventArgs e)
        {
            await MultiRPCAndCustomLogic.UpdateTimestamps((CheckBox)sender);

            App.Config.MultiRPC.ShowTime = ((CheckBox)sender).IsChecked.Value;
            App.Config.Save();
        }
Esempio n. 3
0
 private void TbSmallText_OnTextChanged(object sender, TextChangedEventArgs e)
 {
     MultiRPCAndCustomLogic.CheckImageText((TextBox)sender);
     SetPresence();
     UpdateProfile(MasterCustomPage._MasterCustomPage.tblProfileName.Text, tbText1.Text, tbText2.Text, tbLargeKey.Text, tbLargeText.Text,
                   tbSmallKey.Text, tbSmallText.Text, tbClientID.Text, cbElapasedTime.IsChecked.Value);
     CanRunRPC();
 }
Esempio n. 4
0
        public void TbText1_OnTextChanged(object sender, TextChangedEventArgs e)
        {
            MultiRPCAndCustomLogic.CheckImageText((TextBox)sender);

            UpdateProfile(MasterCustomPage._MasterCustomPage.tblProfileName.Text, tbText1.Text);
            SetPresence();
            CanRunRPC();
        }
Esempio n. 5
0
        private async void TbText2_OnTextChanged(object sender, TextChangedEventArgs e)
        {
            var text = await MultiRPCAndCustomLogic.CheckImageText((TextBox)sender);

            RPC.SetPresence(tbText1.Text, text, tbLargeKey.Text, tbLargeText.Text, tbSmallKey.Text, tbSmallText.Text,
                            cbElapasedTime.IsChecked.Value);
            UpdateProfile(tblProfileName.Text, tbText1.Text, tbText2.Text, tbLargeKey.Text, tbLargeText.Text,
                          tbSmallKey.Text, tbSmallText.Text, tbClientID.Text, cbElapasedTime.IsChecked.Value);
            CanRunRPC();
        }
Esempio n. 6
0
        private async void TbText2_OnTextChanged(object sender, TextChangedEventArgs e)
        {
            var text = await MultiRPCAndCustomLogic.CheckImageText((TextBox)sender);

            RPC.Presence.State     = text;
            _preview.tblText2.Text = text;
            _preview.UpdateTextVisibility();
            CanRunRPC();

            App.Config.MultiRPC.Text2 = tbText2.Text;
            App.Config.Save();
        }
Esempio n. 7
0
        private async void TbSmallText_OnTextChanged(object sender, TextChangedEventArgs e)
        {
            var text = await MultiRPCAndCustomLogic.CheckImageText((TextBox)sender);

            if (RPC.Presence.Assets != null)
            {
                RPC.Presence.Assets.SmallImageText = tbSmallText.Text;
            }
            CanRunRPC();
            _preview.ellSmallImage.ToolTip = !string.IsNullOrWhiteSpace(text) ? new ToolTip(text) : null;

            App.Config.MultiRPC.SmallText = tbSmallText.Text;
            App.Config.Save();
        }
Esempio n. 8
0
        public async void TbText1_OnTextChanged(object sender, TextChangedEventArgs e)
        {
            MainPage._MainPage.btnUpdate.IsEnabled = false;
            MainPage._MainPage.btnStart.IsEnabled  = false;

            var text = await MultiRPCAndCustomLogic.CheckImageText((TextBox)sender);

            RPC.Presence.Details   = text;
            _preview.tblText1.Text = text;
            _preview.UpdateTextVisibility();
            CanRunRPC();

            App.Config.MultiRPC.Text1 = tbText1.Text;
            App.Config.Save();
        }
Esempio n. 9
0
 public async Task <bool> CanRunRPC(bool tokenTextChanged = false)
 {
     return(await MultiRPCAndCustomLogic.CanRunRPC(tbText1, tbText2, tbSmallText, tbLargeText, tbClientID,
                                                   tokenTextChanged));
 }
Esempio n. 10
0
 private void CbElapasedTime_OnChecked(object sender, RoutedEventArgs e)
 {
     MultiRPCAndCustomLogic.UpdateTimestamps((CheckBox)sender);
     UpdateProfile(tblProfileName.Text, tbText1.Text, tbText2.Text, tbLargeKey.Text, tbLargeText.Text,
                   tbSmallKey.Text, tbSmallText.Text, tbClientID.Text, cbElapasedTime.IsChecked.Value);
 }
Esempio n. 11
0
 public async Task <bool> CanRunRPC()
 {
     return(await MultiRPCAndCustomLogic.CanRunRPC(tbText1, tbText2, tbSmallText, tbLargeText));
 }
Esempio n. 12
0
 private void CbElapasedTime_OnChecked(object sender, RoutedEventArgs e)
 {
     MultiRPCAndCustomLogic.UpdateTimestamps((CheckBox)sender);
     UpdateProfile(MasterCustomPage._MasterCustomPage.tblProfileName.Text, showTime: cbElapasedTime.IsChecked);
 }