Inheritance: MonoBehaviour
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.Main);

            txtAuditDate = FindViewById<EditText>(Resource.Id.txtAuditDate);
            txtAuditor = FindViewById<EditText>(Resource.Id.txtAuditor);
            txtManu= FindViewById<EditText>(Resource.Id.txtManu);
            txtModel = FindViewById<EditText>(Resource.Id.txtModel);
            txtComputerName = FindViewById<EditText>(Resource.Id.txtCompName);
            txtOperSys = FindViewById<EditText>(Resource.Id.txtOS);
            txtOperSysArch = FindViewById<EditText>(Resource.Id.txtOSArch);
            txtServicePack = FindViewById<EditText>(Resource.Id.txtServicePack);
            txtSerialNo = FindViewById<EditText>(Resource.Id.txtSerialNo);
            txtProcessorName = FindViewById<EditText>(Resource.Id.txtProcessName);
            txtProcessorsAmt = FindViewById<EditText>(Resource.Id.txtProcessorsNo);
            txtRamAmt = FindViewById<EditText>(Resource.Id.txtRam);
            txtHardDriveSize = FindViewById<EditText>(Resource.Id.txtHardDriveSize);
            txtAvailSpace = FindViewById<EditText>(Resource.Id.txtAvailSpace);
            txtComments = FindViewById<EditText>(Resource.Id.txtComments);

            btnSave = FindViewById<Button>(Resource.Id.btnUpdate);
            btnViewMore = FindViewById<Button>(Resource.Id.btnViewMore);
            btnScan = FindViewById<Button>(Resource.Id.btnScan);

            btnViewMore.Click += BtnViewMore_Click;
            btnScan.Click += BtnScan_Click;
            btnSave.Click += BtnSave_Click;
        }
Esempio n. 2
0
 void Start()
 {
     QuitMenu = QuitMenu.GetComponent<Canvas>();
     startText = startText.GetComponent<Button>();
     exitText = exitText.GetComponent<Button>();
     QuitMenu.enabled = false;
 }
Esempio n. 3
0
		protected override void OnCreate (Bundle bundle)
		{
			base.OnCreate (bundle);

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

			// Get our button from the layout resource,
			// and attach an event to it
			GetButton = FindViewById<Button> (Resource.Id.GetButton);
			ResultTextView = FindViewById<TextView> (Resource.Id.ResultTextView);
			ResultEditText = FindViewById<EditText> (Resource.Id.ResultEditText);
			DownloadedImageView = FindViewById<ImageView> (Resource.Id.DownloadedImageView);

			GetButton.Click += async (sender, e) => {
				
				Task<int> sizeTask = DownloadHomePageAsync();

				ResultTextView.Text = "Loading...";
				ResultEditText.Text = "Loading...\n";

				DownloadedImageView.SetImageResource ( Android.Resource.Drawable.IcMenuGallery);

				var length = await sizeTask;

				ResultTextView.Text = "length:  " + length;

			};

		}
    public virtual void Awake()
    {
        base.Awake();

        Assert.raiseExceptions = true;

        // Find all UI elements in the scene
        D_TimeLeftText = GameObject.Find("D_TimeLeftText").GetComponent<Text>();
        D_DefuseBombButton = GameObject.Find("D_DefuseBombButton").GetComponent<Button>();
        D_HintLeftBehind = GameObject.Find("D_HintLeftBehind").GetComponent<Text>();
        D_HintLeftBehind2 = GameObject.Find("D_HintLeftBehind2").GetComponent<Text>();
        D_HintLeftBehind3 = GameObject.Find("D_HintLeftBehind3").GetComponent<Text>();
        D_Waiting = GameObject.Find("D_Waiting").GetComponent<Text>();
        D_Tutorial = GameObject.Find("D_Tutorial").GetComponent<Button>();
        D_TutorialHints = GameObject.Find("D_TutorialHints").GetComponent<Button>();
        D_GiveUp = GameObject.Find ("D_GiveUp").GetComponent<Button>();
		D_Penalty = GameObject.Find ("D_Penalty").GetComponent<Text>();
		D_AllDefusedText = GameObject.Find ("D_AllDefusedText").GetComponent<Text>();

        //find bomb tag
        //bombs = GameObject.FindGameObjectsWithTag("Bomb");

        Assert.IsNotNull(D_TimeLeftText, "D_TimeLeftText not found");
        Assert.IsNotNull(D_DefuseBombButton, "D_DefuseBombButton not found");
        Assert.IsNotNull(D_HintLeftBehind, "D_HintLeftBehind not found");
        Assert.IsNotNull(D_HintLeftBehind2, "D_HintLeftBehind2 not found");
        Assert.IsNotNull(D_HintLeftBehind3, "D_HintLeftBehind3 not found");
        Assert.IsNotNull(D_Waiting, "D_Waiting not found");

		//Set hint penalty fade coroutine
		fadePenaltyCoroutine = FadeAlphaOut();
    }
		public void GetWidgetByNameTestNoRegionSingleWindow()
		{
			// single system window
			{
				int leftClickCount = 0;

				Action<AutomationTesterHarness> testToRun = (AutomationTesterHarness resultsHarness) =>
				{
					AutomationRunner testRunner = new AutomationRunner();
					testRunner.ClickByName("left");
					testRunner.Wait(.5);

					resultsHarness.AddTestResult(leftClickCount == 1, "Got left button click");
				};

				SystemWindow buttonContainer = new SystemWindow(300, 200);

				Button leftButton = new Button("left", 10, 40);
				leftButton.Name = "left";
				leftButton.Click += (sender, e) => { leftClickCount++; };
				buttonContainer.AddChild(leftButton);

				AutomationTesterHarness testHarness = AutomationTesterHarness.ShowWindowAndExectueTests(buttonContainer, testToRun, 10);

				Assert.IsTrue(testHarness.AllTestsPassed);
				Assert.IsTrue(testHarness.TestCount == 1); // make sure we can all our tests
			}
		}
Esempio n. 6
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            var layout = new LinearLayout(this) {
                Orientation = Orientation.Vertical
            };
            this.AddContentView(layout, new ViewGroup.LayoutParams(-1, -1));

            this.T1 = new TextView(this);
            this.T2 = new TextView(this) {
                Text = DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss")
            };

            layout.AddView(this.T1);
            layout.AddView(this.T2);

            var btn = new Button(this) {
                Text = "Search"
            };

            btn.Click += Btn_Click;
            layout.AddView(btn);

            this.HandleIntent(this.Intent);
        }
Esempio n. 7
0
 void Awake()
 {
     image = GetComponent<Image>();
     button = GetComponent<Button>();
     text = GetComponentInChildren<Text>();
     References.stateManager.changeState += onChangeState;
 }
Esempio n. 8
0
	// Use this for initialization
	void Start () {

		startGame = startGame.GetComponent<Button>();
		exitGame = exitGame.GetComponent<Button>();

	
	}
Esempio n. 9
0
		protected internal override void onCreate(Bundle savedInstanceState)
		{
			base.onCreate(savedInstanceState);
			ContentView = R.layout.uploader;

			mTargetDevicePicker = (DevicePicker) FragmentManager.findFragmentById(R.id.targetPicker);
			mTargetDevicePicker.DeviceType = SmcDevice.TYPE_PROVIDER;
			mTargetDevicePicker.DeviceSelectedListener = this;
			mUploadButton = (Button) findViewById(R.id.button);
			mUploadButton.OnClickListener = uploadClickListener;
			progressBar = (ProgressBar) findViewById(R.id.progress);


			SmcItem.LocalContent content = LocalContent;

			if (content == null)
			{
				Toast.makeText(this, "Content not supported", Toast.LENGTH_SHORT).show();
				this.finish();
			}
			else
			{
				itemToUpload = new SmcItem(content);
				((TextView)findViewById(R.id.header)).Text = "File: " + itemToUpload.Uri.ToString();
			}
		}
Esempio n. 10
0
    public void select(Button shape)
    {
        if (shape.name.CompareTo (sequence [index]) == 0) {
            shape.interactable = false;
            Debug.Log ("Correct!");
            index++;

            if (index == length) {
                if (correct) {
                    score++;
                }
                instructions--;
                if (instructions == 0) {
                    shutOffButtons ();
                    nextAssesstment.interactable = true;
                    Debug.Log (score);
                } else {
                    index = 0;
                    MakeSequence ();
                }
            }
        } else {
            correct = false;
            Debug.Log ("Try again!");
        }
    }
Esempio n. 11
0
        public MenuState GetNewState(Button btn)
        {
            if (!_pageButtonActions.Contains(btn))
                return MenuState.None;

            return (MenuState)_pageButtonActions[btn];
        }
Esempio n. 12
0
		public Issue1875()
		{
			Button loadData = new Button { Text = "Load", HorizontalOptions = LayoutOptions.FillAndExpand };
			ListView mainList = new ListView {
				VerticalOptions = LayoutOptions.FillAndExpand,
				HorizontalOptions = LayoutOptions.FillAndExpand
			};

			mainList.SetBinding (ListView.ItemsSourceProperty, "Items");

			_viewModel = new MainViewModel ();
			BindingContext = _viewModel;
			loadData.Clicked += async (sender, e) => {
				await LoadData ();
			};

			mainList.ItemAppearing += OnItemAppearing;

			Content = new StackLayout {
				Children = {
					loadData,
					mainList
				}
			};
		}
Esempio n. 13
0
		protected override void OnCreate (Bundle bundle)
		{
			dice1 = new Dice(1, 1, 6);
			dice2 = new Dice(2, 1, 6);
			audio = new PlayAudio (this);
		
			base.OnCreate (bundle);

			game = LbManager.GetGame(Intent.GetIntExtra ("Battle", -1), Intent.GetIntExtra("Scenario", -1));

			// set our layout to be the home screen
			SetContentView(Resource.Layout.General);		

			imgBack = FindViewById<ImageView> (Resource.Id.titleSubLbBack);
			imgLb = FindViewById<ImageView> (Resource.Id.titleSubLb);

			// title
			txtBattleName = FindViewById<TextView>(Resource.Id.titleSubBattleName);
			txtScenarioName = FindViewById<TextView>(Resource.Id.titleSubScenarioName);
			
			imgGeneral2Die1 = FindViewById<ImageView> (Resource.Id.imgGeneral2Die1);
			imgGeneral2Die2 = FindViewById<ImageView> (Resource.Id.imgGeneral2Die2);
			btnGeneral2DiceRoll = FindViewById<Button>(Resource.Id.btnGeneral2DiceRoll);

			imgGeneral1Die1 = FindViewById<ImageView> (Resource.Id.imgGeneral1Die1);
			btnGeneral1DiceRoll = FindViewById<Button>(Resource.Id.btnGeneral1DiceRoll);
		}
Esempio n. 14
0
    void Start()
    {
        _button = GetComponent<Button>();
        _button.interactable = false;

        _rewardCooldownTime = GetRewardCooldownTime();
    }
Esempio n. 15
0
    public MainWindow()
        : base(Gtk.WindowType.Toplevel)
    {
        Build();
        //bingo.NumeroInicialBolas = 43;
        bingo.Iniciar();

        //		uint rowCount = (uint) bingo.NumeroInicialBolas / 10;

        //		for (uint row = 0; row < rowCount; row++){
        //			for (uint col = 0; col <= 9; col++) {
        //				Button button = new Button();
        //				button.Label = "" + (col + 1 + (row * 10));
        //				button.Visible = true;
        //				//table.Add (button);
        //				table.Attach (button, col, 1 + col, row, row + 1,
        //		              AttachOptions.Fill ,
        //		              AttachOptions.Fill,
        //		              1,1);
        //		}

        for (uint index = 0; index < bingo.NumeroInicialBolas; index ++){
            Button button = new Button();
            button.Label = "" + (index + 1);
            button.Visible = true;
            uint row = index / 10;
            uint col = index % 10; //mod
            table.Attach (button, col, 1 + col, row, row + 1,
                      AttachOptions.Fill ,
                      AttachOptions.Fill,
                      1,1);

        }
    }
Esempio n. 16
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.Main);

            // 画面要素取得
            btnAddMemo = FindViewById<Button>(Resource.Id.add_memo_btn);
            btnDeleteAllMemo = FindViewById<Button>(Resource.Id.delete_all_btn);
            memoList = FindViewById<ListView>(Resource.Id.memo_list);

            memos = new List<Memo>();

            // ボタンクリックイベント
            btnAddMemo.Click += (sender, e) =>
            {
                addMemos();
                memoListAdapter = new MemoListAdapter(this, memos);
                memoList.Adapter = memoListAdapter;
            };

            btnDeleteAllMemo.Click += (sender, e) =>
            {
                memos = new List<Memo>();
                memoListAdapter = new MemoListAdapter(this, memos);
                memoList.Adapter = memoListAdapter;
            };
        }
Esempio n. 17
0
 private void Changes_Load(object sender, EventArgs e)
 {
     Color[] colorArray = new Color[] { Color.FromArgb(0x80, 0x80, 0xff), Color.FromArgb(0x80, 0xff, 0x80), Color.FromArgb(0xff, 0xc0, 0x80), Color.FromArgb(0xff, 0x80, 0xff) };
     this.panel1.Controls.Clear();
     int num = 0;
     int num2 = 0;
     Class10.list_0.Add("NovoFatum R3");
     Class10.list_0.Add("NovoFatum R3");
     Class10.list_0.Add("NovoFatum R3");
     Class10.list_0.Add("NovoFatum R3");
     foreach (string str in Class10.list_0)
     {
         Button button = new Button {
             BackColor = colorArray[num++],
             FlatStyle = FlatStyle.Popup,
             ForeColor = SystemColors.ButtonHighlight
         };
         if (num > colorArray.Length)
         {
             num = 0;
         }
         button.Location = new Point(0, 0x3b * num2);
         button.Name = "button_" + num2;
         button.Size = new Size(630, 0x3e);
         button.Text = str;
         button.UseVisualStyleBackColor = false;
         this.panel1.Controls.Add(button);
         num2++;
     }
     this.button2.Text = "Updates [" + num2 + "]";
 }
        public Interact(string title)
        {
            Control.CheckForIllegalCrossThreadCalls = true;
            Poke = new Button();
            Poke.Text = "Poke";
            this.Controls.Add(Poke);
            Poke.Click += new EventHandler(Input);

            //The adaptee includes specific details like this
            //for the user interface
            SendGift = new Button();
            SendGift.Text = "Send Gift";
            SendGift.Location = new Point(80, 0);
            this.Controls.Add(SendGift);
            SendGift.Click += new EventHandler(Input2);

            GiftText = new TextBox();
            GiftText.Location = new Point(160, 0);
            this.Controls.Add(GiftText);

            //*******************************************

            Wall = new TextBox();
            Wall.Multiline = true;
            Wall.Location = new Point(0, 30);
            Wall.Width = 300;
            Wall.Height = 200;
            Wall.Font = new Font(Wall.Font.Name, 12);
            Wall.AcceptsReturn = true;
            this.Text = title;
            this.Controls.Add(Wall);
        }
		private void InitView()
		{
			//设置标题栏
			var btn_headerBack = FindViewById<Button> (Resource.Id.btn_header_back);

			btn_headerBack.Click += (sender, e) => 
			{
				this.Finish();
				OverridePendingTransition(Android.Resource.Animation.SlideInLeft,Android.Resource.Animation.SlideOutRight);
			};
			FindViewById<TextView> (Resource.Id.tv_header_title).Text = "生日";
			edit_birth = FindViewById<EditText>(Resource.Id.edit_birth);
			edit_birth.Click += (sender, e) => 
			{
				var datepickdialog = new DatePickDialogUtil(this,edit_birth.Text);
				datepickdialog.DatePickDialogShow(edit_birth);

			};
			edit_birth.Text = !string.IsNullOrEmpty (Global.MyInfo.Age) ?Convert.ToDateTime(Global.MyInfo.Age).ToString("yyyy-MM-dd") :"";
			btn_Save = FindViewById<Button> (Resource.Id.btn_Save);
			btn_Save.Click += (sender, e) => 
			{
				Save();
			};
		}
    void ServerStart()
    {
        //quitMenu.enabled = false;
        //quitMenu = quitMenu.GetComponent<Canvas> ();
        //startMenu = startMenu.GetComponent<Canvas>();
        //serverMenu = serverMenu.GetComponent<Canvas>();
        //startMenu = startMenu.GetComponent<Canvas>();

        //createButton = createButton.GetComponent<Button> ();
        joinButton = joinButton.GetComponent<Button> ();
        backButton = backButton.GetComponent<Button> ();
        createText = createText.GetComponent<Text> ();
        editable = editable.GetComponent<InputField> ();
        //joinButton = joinButton.GetComponent<Button> ();
        //backButton = backButton.GetComponent<Button> ();

        //serverMenu.enabled = false;
        //startMenu.enabled = true;

        //createButton.gameObject.SetActive (true);
        joinButton.gameObject.SetActive (true);
        backButton.gameObject.SetActive (true);
        //createButton.gameObject.SetActive (false);
        //joinButton.gameObject.SetActive (false);
        //backButton.gameObject.SetActive (false);
        //startMenu.enabled = true;
    }
Esempio n. 21
0
        public override View OnCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var view = inflater.Inflate (Resource.Layout.FeedbackFragment, container, false);
            feedbackPositiveButton = view.FindViewById<ImageButton> (Resource.Id.FeedbackPositiveButton);
            feedbackNeutralButton = view.FindViewById<ImageButton> (Resource.Id.FeedbackNeutralButton);
            feedbackNegativeButton = view.FindViewById<ImageButton> (Resource.Id.FeedbackNegativeButton);

            feedbackPositiveButton.Click += (sender, e) => SetRating (ratingPositive);
            feedbackNeutralButton.Click += (sender, e) => SetRating (ratingNeutral);
            feedbackNegativeButton.Click += (sender, e) => SetRating (ratingNegative);

            feedbackMessageEditText = view.FindViewById<EditText> (Resource.Id.FeedbackMessageText).SetFont (Font.Roboto);
            feedbackMessageEditText.AfterTextChanged += OnEdit;

            submitFeedbackButton = view.FindViewById<Button> (Resource.Id.SendFeedbackButton).SetFont (Font.Roboto);
            submitFeedbackButton.Click += OnSendClick;

            feedbackContainer = view.FindViewById<LinearLayout> (Resource.Id.FeedbackContainer);
            disclaimerContainer = view.FindViewById<LinearLayout> (Resource.Id.FeedbackDisclaimer);
            noUserRegisterButton = view.FindViewById<Button> (Resource.Id.FeedbackRegisterButton);

            bool offline = ServiceContainer.Resolve<AuthManager> ().OfflineMode;
            disclaimerContainer.Visibility = offline ? ViewStates.Visible : ViewStates.Gone;
            feedbackContainer.Visibility = offline ? ViewStates.Gone : ViewStates.Visible;

            noUserRegisterButton.Click += OpenRegisterScreen;

            SetRating (userRating);

            return view;
        }
Esempio n. 22
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            RelativeLayout view = (RelativeLayout)inflater.Inflate (Resource.Layout.raffledetail_gettemppass, container, false);
            rootview = view;

            TextView hinttextview=(TextView)view.FindViewById (Resource.Id.gettemppass_hinttext_textview);
            hinttextview.Text = RequestTPScreenData.ProvideClientInfoTextViewText;

            emailorphone = (EditText)view.FindViewById (Resource.Id.gettemppass_emailorphone_edittext);
            emailorphone.Hint = RequestTPScreenData.ClientInfoTextFieldPlaceholder;

            requesttemppass = (Button)view.FindViewById (Resource.Id.gettemppass_requesttemppass_button);
            requesttemppass.Text = RequestTPScreenData.RequestTPBtnTitle;
            //send web request
            requesttemppass.Click+=OnRequestTempPassClick;

            TextView signuptextview=view.FindViewById<TextView> (Resource.Id.gettemppass_register_textview);
            nn_activity.SetClickAbleText (signuptextview,RequestTPScreenData.DontHaveAccountLabelText+RequestTPScreenData.SignUpBtnTitle,RequestTPScreenData.SignUpBtnTitle,()=>{

                if(FormatManager.chechinput(emailorphone.Text,FormatManager.FormatOption.Email)){
                    (nn_activity as HomeScreen).ShowBuyerSignUp(emailorphone.Text);
                }
                else{
                    (nn_activity as HomeScreen).ShowBuyerSignUp("");
                }

            });

            return view;
        }
Esempio n. 23
0
        protected override void OnCreate(Bundle bundle)
        {
            this.RequestWindowFeature(WindowFeatures.NoTitle);
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.Main);

            loggInnButton = FindViewById<Button>(Resource.Id.loggInnButton);
            EditText editText1 = FindViewById<EditText>(Resource.Id.txtEmail);
            EditText editText2 = FindViewById<EditText>(Resource.Id.txtPassword);

            loggInnButton.Click += delegate
            {
                sendText1 = editText1.Text;
                sendText2 = editText2.Text;
                if (SendToPhp() == 1)
                {
                    StartActivity(typeof(Menu));
                    ISharedPreferences prefs = PreferenceManager.GetDefaultSharedPreferences(ApplicationContext);
                    ISharedPreferencesEditor editor = prefs.Edit();
                    editor.PutString("userName", editText1.Text);
                    editor.Apply();
                }
                else if(SendToPhp() == 2)
                {
                    Toast msg = Toast.MakeText(this, "Feil brukernavn.", ToastLength.Long);
                    msg.Show();
                } else
                {
                    Toast msg = Toast.MakeText(this, "Feil passord.", ToastLength.Long);
                    msg.Show();
                }
            };
        }
Esempio n. 24
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

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

            button = FindViewById<Button>(Resource.Id.GetLocationButton);
            latitude = FindViewById<TextView>(Resource.Id.LatitudeText);
            longitude = FindViewById<TextView>(Resource.Id.LongitudeText);
            provider = FindViewById<TextView>(Resource.Id.ProviderText);
            address = FindViewById<TextView>(Resource.Id.AddressText);

            // MapFragment の用意と初期の場所を指定します。
            // MapFragment.Map が deprecated みたいなので、正しい書き方を教えてください><
            MapFragment mapFrag = (MapFragment)FragmentManager.FindFragmentById(Resource.Id.MapFragment);
            map = mapFrag.Map;
            if (map != null) // Map の準備が出来たら (最初は null を返します)
            {
                map.MyLocationEnabled = true; // 現在地ボタン オン
                map.UiSettings.ZoomControlsEnabled = true; // ズームコントロール オン
                // 初期位置(カメラ)を移動
                map.AnimateCamera(CameraUpdateFactory.NewCameraPosition(
                    new CameraPosition(
                        new LatLng(35.685344d, 139.753029d), // 皇居(中心位置)
                        12f, 0f, 0f))); // ズームレベル、方位、傾き
            }
        }
Esempio n. 25
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate (bundle);

            SetContentView (Resource.Layout.ShareLocation);

            customDate = DateTime.Now;

            boxProgress = FindViewById<LinearLayout> (Resource.Id.boxProgress);
            boxProgress.Visibility = ViewStates.Gone;

            textDate = FindViewById<TextView> (Resource.Id.textDate);
            textDate.Visibility = ViewStates.Gone;

            spinnerTime = FindViewById<Spinner> (Resource.Id.spinnerTime);
            spinnerTime.ItemSelected += HandleItemSelected;
            arrayAdapter = ArrayAdapter.CreateFromResource (this, Resource.Array.expiration_time_array, Android.Resource.Layout.SimpleSpinnerItem);
            arrayAdapter.SetDropDownViewResource (Android.Resource.Layout.SimpleSpinnerDropDownItem);
            spinnerTime.Adapter = arrayAdapter;
            spinnerTime.SetSelection (defaultTimeIndex);
            selectedTime = timeValues [defaultTimeIndex];

            shareButton = FindViewById<Button> (Resource.Id.buttonShare);
            shareButton.Click += HandleShareClick;

            textDate.Click += delegate {
                ShowDialog (0);
            };
        }
Esempio n. 26
0
 public void LoginCharacter(Button button)
 {
     CharacterOptions options = button.transform.parent.GetComponent<CharacterOptions>();
     characterId = options.characterId;
     Debug.Log("Using character " + characterId);
     CharacterApi.instance.SetCharacter(characterId, this);
 }
Esempio n. 27
0
	//Update is called once per frame
	void Update () {
	
		if (isDrag || accel != 0) {
			rotateMenu();
			changeText();
			changeAlpha ();
			renderOrder();
		}

		if (currentButton) {
			float angle = Vector3.Angle ((currentButton.transform.position - canvas.transform.position).normalized, new Vector3 (0, 0, -1));                           
			if (angle > 90.003) {
				var q = currentButton.transform.rotation;
				currentButton.transform.RotateAround (rotateAroundPos, RotateAxis, 0.01f);
				float angle2 = Vector3.Angle ((currentButton.transform.position - canvas.transform.position).normalized, new Vector3 (0, 0, -1));
				if (angle2 > angle) {
					accel = -(angle - 89.7f) * 0.2f;
				} else {
					accel = (angle - 89.7f) * 0.2f;
				}
				currentButton.transform.RotateAround (rotateAroundPos, RotateAxis, -0.01f);
				currentButton.transform.rotation = q;
			} else {
				currentButton = null;
			}
		}
	}
	void Start(){
		qm = qm.GetComponent<Canvas> ();
		toggle = toggle.GetComponent<Button> ();
	
		//playing = true;
		//AudioListener.pause = false;
	}
Esempio n. 29
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

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

            textRegistrationStatus = FindViewById<TextView>(Resource.Id.textRegistrationStatus);
            textRegistrationId = FindViewById<TextView>(Resource.Id.textRegistrationId);
            textLastMsg = FindViewById<TextView>(Resource.Id.textLastMessage);
            buttonRegister = FindViewById<Button>(Resource.Id.buttonRegister);

            Log.Info("C2DM-Sharp-UI", "Hello World");

            this.buttonRegister.Click += delegate
            {
                if (!registered)
                {
                    Log.Info("C2DM-Sharp", "Registering...");
                    PushSharp.Client.MonoForAndroid.C2dmClient.Register(this, senderIdEmail);
                }
                else
                {
                    Log.Info("C2DM-Sharp", "Unregistering...");
                    PushSharp.Client.MonoForAndroid.C2dmClient.Unregister(this);
                }

                RunOnUiThread(() =>
                {
                    //Disable the button so that we can't click it again
                    //until we get back to the activity from a notification
                    this.buttonRegister.Enabled = false;
                });
            };
        }
Esempio n. 30
0
    void Start()
    {
        backToMain = backToMain.GetComponent<Button> ();
        options = options.GetComponent<Button>();

        optionsMenu.enabled = false;
    }
Esempio n. 31
0
            public dialogForm(string title, InputBoxItem[] items, InputBoxButtons buttons)
            {
                int minWidth = 312;

                label = new Label[items.Length];
                for (int i = 0; i < label.Length; i++)
                {
                    label[i] = new Label();
                }
                textBox = new TextBox[items.Length];
                for (int i = 0; i < textBox.Length; i++)
                {
                    textBox[i] = new TextBox();
                }
                button2 = new Button();
                button3 = new Button();
                button1 = new Button();
                SuspendLayout();
                //
                // label
                //
                for (int i = 0; i < items.Length; i++)
                {
                    label[i].AutoSize = true;
                    label[i].Location = new Point(12, 9 + (i * 39));
                    label[i].Name     = "label[" + i + "]";
                    label[i].Text     = items[i].Label;
                    if (label[i].Width > minWidth)
                    {
                        minWidth = label[i].Width;
                    }
                }
                //
                // textBox
                //
                for (int i = 0; i < items.Length; i++)
                {
                    textBox[i].Anchor   = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
                    textBox[i].Location = new Point(12, 25 + (i * 39));
                    textBox[i].Name     = "textBox[" + i + "]";
                    textBox[i].Size     = new Size(288, 20);
                    textBox[i].TabIndex = i;
                    textBox[i].Text     = items[i].Text;
                    if (items[i].IsPassword)
                    {
                        textBox[i].UseSystemPasswordChar = true;
                    }
                }
                //
                // button1
                //
                button1.Anchor   = (AnchorStyles)(AnchorStyles.Bottom | AnchorStyles.Right);
                button1.Location = new Point(208, 15 + (39 * label.Length));
                button1.Name     = "button1";
                button1.Size     = new Size(92, 23);
                button1.TabIndex = items.Length + 2;
                button1.Text     = "button1";
                button1.UseVisualStyleBackColor = true;
                //
                // button2
                //
                button2.Anchor   = (AnchorStyles)(AnchorStyles.Bottom | AnchorStyles.Right);
                button2.Location = new Point(110, 15 + (39 * label.Length));
                button2.Name     = "button2";
                button2.Size     = new Size(92, 23);
                button2.TabIndex = items.Length + 1;
                button2.Text     = "button2";
                button2.UseVisualStyleBackColor = true;
                //
                // button3
                //
                button3.Anchor   = (AnchorStyles)(AnchorStyles.Bottom | AnchorStyles.Right);
                button3.Location = new Point(12, 15 + (39 * label.Length));
                button3.Name     = "button3";
                button3.Size     = new Size(92, 23);
                button3.TabIndex = items.Length;
                button3.Text     = "button3";
                button3.UseVisualStyleBackColor = true;
                //
                // Evaluate MessageBoxButtons
                //
                switch (buttons)
                {
                case InputBoxButtons.OK:
                    button1.Text    = "OK";
                    button1.Click  += OK_Click;
                    button2.Visible = false;
                    button3.Visible = false;
                    AcceptButton    = button1;
                    break;

                case InputBoxButtons.OKCancel:
                    button1.Text    = "Cancel";
                    button1.Click  += Cancel_Click;
                    button2.Text    = "OK";
                    button2.Click  += OK_Click;
                    button3.Visible = false;
                    AcceptButton    = button2;
                    break;

                case InputBoxButtons.YesNo:
                    button1.Text    = "No";
                    button1.Click  += No_Click;
                    button2.Text    = "Yes";
                    button2.Click  += Yes_Click;
                    button3.Visible = false;
                    AcceptButton    = button2;
                    break;

                case InputBoxButtons.YesNoCancel:
                    button1.Text   = "Cancel";
                    button1.Click += Cancel_Click;
                    button2.Text   = "No";
                    button2.Click += No_Click;
                    button3.Text   = "Yes";
                    button3.Click += Yes_Click;
                    AcceptButton   = button3;
                    break;

                case InputBoxButtons.Save:
                    button1.Text    = "Save";
                    button1.Click  += Save_Click;
                    button2.Visible = false;
                    button3.Visible = false;
                    AcceptButton    = button1;
                    break;

                case InputBoxButtons.SaveCancel:
                    button1.Text    = "Cancel";
                    button1.Click  += Cancel_Click;
                    button2.Text    = "Save";
                    button2.Click  += Save_Click;
                    button3.Visible = false;
                    AcceptButton    = button2;
                    break;

                default:
                    throw new Exception("Invalid InputBoxButton Value");
                }
                //
                // dialogForm
                //
                AutoScaleDimensions = new SizeF(6F, 13F);
                AutoScaleMode       = AutoScaleMode.Font;
                ClientSize          = new Size(312, 47 + (39 * items.Length));
                for (int i = 0; i < label.Length; i++)
                {
                    Controls.Add(label[i]);
                }
                for (int i = 0; i < textBox.Length; i++)
                {
                    Controls.Add(textBox[i]);
                }
                Controls.Add(button1);
                Controls.Add(button2);
                Controls.Add(button3);
                MaximizeBox   = false;
                MinimizeBox   = false;
                MaximumSize   = new Size(99999, 85 + (39 * items.Length));
                Name          = "dialogForm";
                ShowIcon      = false;
                ShowInTaskbar = false;
                StartPosition = FormStartPosition.CenterParent;
                Text          = title;
                ResumeLayout(false);
                PerformLayout();
                foreach (Label l in label)
                {
                    if (l.Width > minWidth)
                    {
                        minWidth = l.Width;
                    }
                }
                ClientSize  = new Size(minWidth + 24, 47 + (39 * items.Length));
                MinimumSize = new Size(minWidth + 40, 85 + (39 * items.Length));
            }
 public static void SetIsClearTextButtonBehaviorEnabled(Button obj, bool value)
 {
     obj.SetValue(IsClearTextButtonBehaviorEnabledProperty, value);
 }
Esempio n. 33
0
 protected virtual void Reset()
 {
     _target = GetComponent <Button>();
 }
Esempio n. 34
0
        void OpenNewScreen(int screen)
        {
            foreach (UrlPanel urlPanel in Panel_List)
            {
                urlPanel.Url = urlPanel.panel.Controls.OfType<TextBox>().ToList()[0].Text;
                urlPanel.Label = urlPanel.panel.Controls.OfType<TextBox>().ToList()[1].Text;
            }

            form3 = new Form();
            form3.Controls.Clear();
            Screen screenToUse = Screen.AllScreens[screen];

            form3.FormBorderStyle = FormBorderStyle.None;
            form3.Icon = Properties.Resources.DispatchViewer;
            form3.WindowState = FormWindowState.Maximized;
            form3.BackColor = Color.Black;
            form3.FormClosed += new FormClosedEventHandler(Form_Closing);

            form3.StartPosition = FormStartPosition.Manual;
            form3.Location = screenToUse.Bounds.Location;

            ContextMenuStrip menu = new ContextMenuStrip();
            menu.Items.Add("Exit");
            menu.ItemClicked += Menu_ItemClicked;
            form3.ContextMenuStrip = menu;

            int count = 0;
            int ScreenH = screenToUse.Bounds.Height; int ScreenW = screenToUse.Bounds.Width;
            int total = Panel_List.Count;

            int rows = 0;
            int cols = 0;

            if (AttemptedCols != 0 & AttemptedRows != 0)
            {
                cols = AttemptedCols;
                rows = AttemptedRows;
            }
            else
            {
                if (Panel_List.Count == 1)
                {
                    rows = 1;
                    cols = 1;
                }
                else
                {
                    if (ScreenH < ScreenW)
                    {
                        rows = 2;
                        cols = Convert.ToInt32(Math.Ceiling((decimal)total / 2));
                    }
                    else
                    {
                        cols = 2;
                        rows = Convert.ToInt32(Math.Ceiling((decimal)total / 2));
                    }
                }
            }

            try
            {
                for (int i = 0; i < rows; i++)
                {
                    for (int j = 0; j < cols; j++)
                    {
                        UrlPanel urlPanel = Panel_List[count];

                        VlcControl vlcControl = new VlcControl();
                        vlcControl.BeginInit();
                        vlcControl.VlcLibDirectory = vlcLibDirectory;
                        vlcControl.VlcMediaplayerOptions = new[] { "-vvv" };
                        vlcControl.EndInit();
                        vlcControl.SetMedia(urlPanel.Url);

                        vlcControl.Play();
                        vlcControl.Enabled = true;

                        vlcControl.Dock = DockStyle.None;
                        vlcControl.Size = new Size(ScreenW / cols, (ScreenH / rows) - 30);
                        vlcControl.Location = new Point((ScreenW / cols) * j, (ScreenH / rows) * i + 30);

                        #region Label
                        Label AddressLabel = new Label
                        {
                            Text = (urlPanel.Label != String.Empty) ? urlPanel.Label : urlPanel.Url,
                            Height = 30,
                            Width = (ScreenW / cols) / 3,

                            Font = new Font(Font.FontFamily, 16),
                            ForeColor = Color.White,
                            Cursor = Cursors.Hand,
                            AutoEllipsis = true,

                            Tag = vlcControl,
                            Location = new Point((ScreenW / cols) * j, (ScreenH / rows) * i)
                        };
                        AddressLabel.Click += new EventHandler(Label_Clicked);

                        #endregion

                        Button button1 = new Button
                        {
                            Text = "Rec.",
                            BackColor = Color.White,
                            Height = 30,
                            Width = 65,
                            Font = new Font(Font.FontFamily, 10),
                            Location = new Point(AddressLabel.Right + 15, AddressLabel.Location.Y),
                            Tag = vlcControl
                        };
                        button1.Click += button1_Click;

                        form3.Controls.Add(button1);
                        form3.Controls.Add(AddressLabel);
                        form3.Controls.Add(vlcControl);
                        VlcControlList.Add(vlcControl);

                        count++;
                    }
                }
            }
            catch (Exception)
            {
            }

            form3.Show();
            formOpen = true;
        }
Esempio n. 35
0
        private void button_click(object sender, EventArgs e)
        {
            Button b = (Button)sender;

            b.Text = (int.Parse(b.Text) + 1).ToString();
        }
Esempio n. 36
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Button button = (Button)sender;

            PlayerMove(button);
        }
Esempio n. 37
0
 public void ButtonClicked(Button btn) => OnButtonClick?.Invoke(btn);
Esempio n. 38
0
        public WindowDDos()
        {
            InitializeComponent();

            hacker = new BitmapImage(new Uri(@"/ModelDanSimulasi;component/Images/user.png", UriKind.Relative));
            computer = new BitmapImage(new Uri(@"/ModelDanSimulasi;component/Images/computer.png", UriKind.Relative));
            serverOK = new BitmapImage(new Uri(@"/ModelDanSimulasi;component/Images/computer_ok.png", UriKind.Relative));
            serverX = new BitmapImage(new Uri(@"/ModelDanSimulasi;component/Images/computer_x.png", UriKind.Relative));

            _random = new Random(17 * DateTime.Now.Millisecond);

            _canvas.Children.Add(textBoxInfoServer = new TextBox
            {
                Name = "infoRAM",
                Margin = new Thickness(X_ETC + 205, 5, 0, 0),
                Height = 20,
                Width = 300,
                IsReadOnly = true
            });

            _canvas.Children.Add(listBoxPing = new ListBox
            {
                Name = "listPing",
                Margin = new Thickness(X_ETC + 205, 30, 0, 0),
                Height = getHeight() - 30,
                Width = 300
            });

            _canvas.Children.Add(listBoxRequestSent = new ListBox
            {
                Margin = new Thickness(X_ETC, 180, 20, 20),
                Height = getHeight() - 180,
                Width = 200
            });

            // Slider
            Label speed;
            _canvas.Children.Add(speed = new Label
            {
                Content = "Speed (500ms)",
                Margin = new Thickness(X_ETC, 5, 0, 0)
            });
            _canvas.Children.Add(sliderSpeed = new Slider
            {
                Name = "sliderSpeed",
                Orientation = Orientation.Horizontal,
                Margin = new Thickness(X_ETC, 30, 0, 0),
                Width = 200,
                BorderBrush = Brushes.Black,
                BorderThickness = new Thickness(0.5),
                Maximum = 2000,
                Minimum = 50,
                Value = 500,
                SmallChange = 10,
                LargeChange = 10
            });
            _canvas.Children.Add(new Label
            {
                Content = "Faster",
                Margin = new Thickness(X_ETC, 50, 0, 0)
            });
            _canvas.Children.Add(new Label
            {
                Content = "Slower",
                Margin = new Thickness(X_ETC + 155, 50, 0, 0)
            });

            // N Zombie
            _canvas.Children.Add(new Label
            {
                Content = "N Zombie",
                Margin = new Thickness(X_ETC, 75, 0, 0)
            });
            _canvas.Children.Add(textBoxNZombie = new TextBox
            {
                Name = "textBoxNZombie",
                Margin = new Thickness(X_ETC + 100, 75, 0, 0),
                Width = 100
            });

            // Server RAM
            _canvas.Children.Add(new Label
            {
                Content = "Target RAM(MB)",
                Margin = new Thickness(X_ETC, 100, 0, 0)
            });
            _canvas.Children.Add(textBoxRAM = new TextBox
            {
                Name = "textBoxRAM",
                Margin = new Thickness(X_ETC + 100, 100, 0, 0),
                Width = 100
            });

            fadeOut = new DoubleAnimation
            {
                Name = "fadeOut",
                From = 1.0,
                To = 0.0,
                Duration = new Duration(TimeSpan.FromMilliseconds(sliderSpeed.Value + 100))
            };

            timerPing = new DispatcherTimer
            {
                Interval = TimeSpan.FromMilliseconds(sliderSpeed.Value)
            };

            timer = new DispatcherTimer
            {
                Interval = TimeSpan.FromMilliseconds(sliderSpeed.Value)
            };

            timerPing.Tick += (s, e) =>
            {
                int idx, n = _random.Next(2, listLineReflector.Count);
                int packetSize;
                for (int i = 0; i < n; i++)
                {
                    idx = _random.Next(listIpReflector.Count);
                    packetSize = 1 << _random.Next(5, 11);
                    queuePingSize += packetSize;
                    listLineReflector[idx].BeginAnimation(Line.OpacityProperty, fadeOut);
                    listBoxRequestSent.Items.Add(new ListBoxItem
                    {
                        Content = listIpReflector[idx] + " send request, size = " + packetSize
                    });
                    queuePing.Enqueue(new PingRequest { IP = listIpReflector[idx], lineIndex = idx, size = packetSize });
                }
            };

            timer.Tick += (s, e) =>
            {
                int n = _random.Next(4, 7);
                while (n-- > 0 && queuePing.Count > 0)
                {
                    PingRequest p = queuePing.Dequeue();
                    queuePingSize -= p.size;
                    (listBoxRequestSent.Items[idxListRequest++] as ListBoxItem).Background = Brushes.Green;
                    listBoxPing.Items.Add("Request from " + p.IP + " size = " + p.size);
                    listLineReflector[p.lineIndex].BeginAnimation(Line.OpacityProperty, fadeOut);
                }
                textBoxInfoServer.Text = "RAM = " + queuePingSize + "kB / " + ramSize + "kB (" + Math.Round(((double)queuePingSize * 100 / ramSize), 2) + " %)";
                if (queuePingSize > ramSize)
                {
                    //DOWN
                    timerPing.Stop();
                    timer.Stop();
                    imageTarget.Source = serverX;
                    labelTarget.Background = Brushes.Red;
                    buttonSimulate.IsEnabled = true;
                }
            };

            sliderSpeed.ValueChanged += (s, e) =>
            {
                speed.Content = "Speed (" + sliderSpeed.Value + "ms)";
                timerPing.Interval = TimeSpan.FromMilliseconds(sliderSpeed.Value);
                timer.Interval = TimeSpan.FromMilliseconds(sliderSpeed.Value);
                fadeOut.Duration = TimeSpan.FromMilliseconds(sliderSpeed.Value + 100);
            };

            countBasic = _canvas.Children.Add(buttonSimulate = new Button
            {
                Name = "buttonSimulate",
                Content = "DDos",
                Margin = new Thickness(X_ETC, 150, 20, 20)
            });

            countBasic++;

            buttonSimulate.Click += (s, e) => { simulasi(); };
        }
Esempio n. 39
0
        private void OnJsonFileDataSelected()
        {
            JsonFileData fileData = mSelectedFileData as JsonFileData;

            if (fileData.TreeNode != null)
            {
                treeView.SelectedNode = fileData.TreeNode;
            }

            List <string> addedOpenFiles = new List <string>();
            bool          hasImage       = false;

            foreach (FileData openedFile in fileData.OpenedFiles)
            {
                TabPage newTabPage = new TabPage();
                newTabPage.Text = openedFile.FileName;
                if (ModuleDataManager.GetInstance().ModifiedFiles.Contains(openedFile))
                {
                    newTabPage.Text = newTabPage.Text + "*";
                }

                if (openedFile.HasErrors)
                {
                    newTabPage.ImageIndex  = 0;
                    newTabPage.ToolTipText = openedFile.Errors;
                }

                FilePreview filePreview = new FilePreview(this, openedFile);
                filePreview.Dock = DockStyle.Fill;
                newTabPage.Controls.Add(filePreview);
                filePreviewTabs.TabPages.Add(newTabPage);

                foreach (KeyValuePair <string, FileData> linkedFile in openedFile.LinkedFileData)
                {
                    if (addedOpenFiles.Contains(linkedFile.Key))
                    {
                        continue;
                    }

                    addedOpenFiles.Add(linkedFile.Key);

                    if (linkedFile.Value is QubicleFileData)
                    {
                        QubicleFileData qbFileData     = linkedFile.Value as QubicleFileData;
                        string          fileName       = qbFileData.FileName;
                        Button          openFileButton = new Button();
                        openFileButton.Name                    = qbFileData.GetOpenFilePath();
                        openFileButton.BackgroundImage         = global::StonehearthEditor.Properties.Resources.qmofileicon_small;
                        openFileButton.BackgroundImageLayout   = ImageLayout.None;
                        openFileButton.Text                    = Path.GetFileName(openFileButton.Name);
                        openFileButton.TextAlign               = System.Drawing.ContentAlignment.MiddleRight;
                        openFileButton.UseVisualStyleBackColor = true;
                        openFileButton.Click                  += new System.EventHandler(openFileButton_Click);
                        openFileButton.Padding                 = new Padding(22, 2, 2, 2);
                        openFileButton.AutoSize                = true;
                        openFileButtonPanel.Controls.Add(openFileButton);
                    }
                    else if (linkedFile.Value is ImageFileData)
                    {
                        string imageFilePath = linkedFile.Value.Path;
                        if (System.IO.File.Exists(imageFilePath))
                        {
                            if (!hasImage)
                            {
                                iconView.ImageLocation = imageFilePath;
                                hasImage = true;
                            }

                            Button openFileButton = new Button();
                            openFileButton.Name = imageFilePath;
                            Image thumbnail = ThumbnailCache.GetThumbnail(imageFilePath);

                            openFileButton.BackgroundImage       = thumbnail;
                            openFileButton.BackgroundImageLayout = ImageLayout.None;
                            openFileButton.Text      = Path.GetFileName(openFileButton.Name);
                            openFileButton.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
                            openFileButton.UseVisualStyleBackColor = true;
                            openFileButton.Click   += new System.EventHandler(openFileButton_Click);
                            openFileButton.Padding  = new Padding(22, 2, 2, 2);
                            openFileButton.AutoSize = true;
                            openFileButtonPanel.Controls.Add(openFileButton);
                        }
                    }
                }
            }
        }
 private void buttonFilter_Click(object sender, EventArgs e)
 {
     Button b = sender as Button;
     cfs.FilterButton(DbFilterSave, b,
                      discoveryform.theme.TextBackColor, discoveryform.theme.TextBlockColor, this.FindForm());
 }
Esempio n. 41
0
 /// <summary>
 /// Toggles whether the passed in button is enabled.
 /// Used to prevent returning an empty selection.
 /// </summary>
 /// <param name="btn">A reference to the desired button</param>
 /// <param name="bEnabled">An optional override to control button state</param>
 private void ToggleButtonEnabled(ref Button btn, bool?bEnabled = null)
 {
     btn.Enabled   = (bEnabled == null) ? !btn.Enabled : (bool)bEnabled;
     btn.BackColor = btn.Enabled ? SystemColors.ButtonFace : SystemColors.ScrollBar;
 }
Esempio n. 42
0
        private void openFileButton_Click(object sender, EventArgs eventArgs)
        {
            // open file
            Button button   = sender as Button;
            string filePath = button.Name;

            if (filePath.EndsWith(".qmo"))
            {
                // Find qubicle constructor.ini
                string myDocuments = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
                string qcIni       = myDocuments + "/QubicleConstructor/1.0/QubicleConstructor.ini";
                if (System.IO.File.Exists(qcIni))
                {
                    try
                    {
                        string directory = System.IO.Path.GetDirectoryName(filePath);
                        string qcFile    = "";
                        using (StreamReader sr = new StreamReader(qcIni))
                        {
                            qcFile = sr.ReadToEnd();
                        }

                        int    folderIndex  = qcFile.IndexOf("[Folder]");
                        string beforeFolder = "";
                        string afterFolder  = string.Empty;
                        if (folderIndex >= 0)
                        {
                            beforeFolder = qcFile.Substring(0, folderIndex);
                            string folderString      = qcFile.Substring(folderIndex + 8);
                            int    endOfFolderString = folderString.IndexOf('[');
                            if (endOfFolderString >= 0)
                            {
                                afterFolder = folderString.Substring(endOfFolderString);
                            }
                        }
                        else
                        {
                            beforeFolder = qcFile;
                        }

                        StringBuilder newQcFile = new StringBuilder();
                        newQcFile.AppendLine(beforeFolder);
                        newQcFile.AppendLine("[Folder]");
                        newQcFile.AppendLine("Open=" + directory);
                        newQcFile.AppendLine("Save=" + directory);
                        newQcFile.AppendLine("Import=" + directory);
                        newQcFile.AppendLine("Export=" + directory);
                        newQcFile.AppendLine(afterFolder);
                        using (StreamWriter sw = new StreamWriter(qcIni))
                        {
                            sw.Write(newQcFile.ToString());
                        }
                    }
                    catch (Exception e)
                    {
                        MessageBox.Show("Failure while reading QubicleConstructor ini file " + qcIni + ". Error: " + e.Message);
                    }
                }
            }

            System.Diagnostics.Process.Start(@filePath);
        }
Esempio n. 43
0
 // Start is called before the first frame update
 void Start()
 {
     button = gameObject.GetComponent <Button>();
     button.onClick.AddListener(ChangeScene);
 }
Esempio n. 44
0
        private void Initialize()
        {
            Width  = 3 * PADDING + labelSize.Width + textBoxSize.Width;
            Height = 6 * PADDING + 4 * labelSize.Height + buttonSize.Height;


            labelServerName        = new Label();
            labelAuthentication    = new Label();
            labelLogin             = new Label();
            labelPassword          = new Label();
            comboBoxServerName     = new ComboBox();
            comboBoxAuthentication = new ComboBox();
            textBoxLogin           = new TextBox();
            textBoxPassword        = new TextBox();
            buttonConnect          = new Button();
            buttonExit             = new Button();
            linkHelp = new HelpRequestingLink();
            checkBoxRememberLogin            = new CheckBox();
            panelLoginPasswordContainer      = new Panel();
            panelConnectionSettingsContainer = new Panel();
            labelTitle                      = new Label();
            pictureBoxLoginBorder           = new PictureBox();
            pictureBoxPasswordBorder        = new PictureBox();
            pictureBoxServerNameBorder      = new PictureBox();
            pictureBoxAuthenticationBorder  = new PictureBox();
            linkLabelShowConnectionSettings = new LinkLabel();
            //
            // labelTitle
            //
            labelTitle.Location  = new Point(PADDING, PADDING - 10);
            labelTitle.AutoSize  = true;
            labelTitle.Text      = "Login form";
            labelTitle.Font      = new Font("Verdana", 18F, FontStyle.Bold);
            labelTitle.BackColor = Color.Transparent;
            labelTitle.ForeColor = Color.White;
            //
            // panelLoginPasswordContainer
            //
            panelLoginPasswordContainer.TabIndex  = 1;
            panelLoginPasswordContainer.Location  = new Point(PADDING, PADDING + labelTitle.Height + PADDING);
            panelLoginPasswordContainer.Size      = new Size(Width - 2 * PADDING, 160);
            panelLoginPasswordContainer.BackColor = Color.Transparent;

            pictureBoxConnectionStatus           = new PictureBox();
            pictureBoxConnectionStatus.Dock      = DockStyle.Bottom;
            pictureBoxConnectionStatus.Height    = 10;
            pictureBoxConnectionStatus.BackColor = Color.Transparent;
            panelLoginPasswordContainer.Controls.Add(pictureBoxConnectionStatus);

            //
            // panelConnectionSettingsContainer
            //
            panelConnectionSettingsContainer.TabIndex = 2;
            panelConnectionSettingsContainer.Location =
                new Point(PADDING, panelLoginPasswordContainer.Top + panelLoginPasswordContainer.Height + 10);
            panelConnectionSettingsContainer.Size      = new Size(Width - 2 * PADDING, 200);
            panelConnectionSettingsContainer.BackColor = Color.Transparent;
            panelConnectionSettingsContainer.Visible   = false;
            //
            // labelLogin
            //
            labelLogin.AutoSize  = true;
            labelLogin.Location  = new Point(0, 20);
            labelLogin.Font      = labelFont;
            labelLogin.ForeColor = Color.White;
            labelLogin.TextAlign = ContentAlignment.MiddleLeft;
            labelLogin.Text      = "User name:";
            //
            // labelPassword
            //
            labelPassword.Size      = labelSize;
            labelPassword.AutoSize  = true;
            labelPassword.Location  = new Point(0, 70);
            labelPassword.Font      = labelFont;
            labelPassword.ForeColor = Color.White;
            labelPassword.TextAlign = ContentAlignment.MiddleLeft;
            labelPassword.Text      = "Password:"******"Simple");
            comboBoxAuthentication.Items.Add("Windows");
            comboBoxAuthentication.FlatStyle             = FlatStyle.Flat;
            comboBoxAuthentication.BackColor             = Color.FromArgb(52, 121, 191);
            comboBoxAuthentication.SelectedIndexChanged += comboBoxAuthentication_SelectedIndexChanged;
            comboBoxAuthentication.PreviewKeyDown       += EnterPressed;
            //
            // labelServerName
            //
            labelServerName.AutoSize  = true;
            labelServerName.Location  = new Point(0, 10);
            labelServerName.Font      = labelFont;
            labelServerName.ForeColor = Color.White;
            labelServerName.TextAlign = ContentAlignment.MiddleLeft;
            labelServerName.Text      = "Server name:";
            //
            // labelAuthentication
            //
            labelAuthentication.AutoSize  = true;
            labelAuthentication.Location  = new Point(0, 55);
            labelAuthentication.Font      = labelFont;
            labelAuthentication.ForeColor = Color.White;
            labelAuthentication.TextAlign = ContentAlignment.MiddleLeft;
            labelAuthentication.Text      = "Authentication:";
            //
            // textBoxLogin
            //
            textBoxLogin.Size            = textBoxSize;
            textBoxLogin.Location        = new Point(130, 12);
            textBoxLogin.Font            = textBoxFont;
            textBoxLogin.ForeColor       = Color.White;
            textBoxLogin.TabIndex        = 1;
            textBoxLogin.BackColor       = Color.FromArgb(52, 121, 191);
            textBoxLogin.BorderStyle     = BorderStyle.None;
            textBoxLogin.Text            = "username";
            textBoxLogin.PreviewKeyDown += EnterPressed;
            //
            // textBoxPassword
            //
            textBoxPassword.Size            = textBoxSize;
            textBoxPassword.Location        = new Point(130, 62);
            textBoxPassword.Font            = textBoxFont;
            textBoxPassword.ForeColor       = Color.White;
            textBoxPassword.TabIndex        = 2;
            textBoxPassword.BackColor       = Color.FromArgb(52, 121, 191);
            textBoxPassword.PasswordChar    = '•';
            textBoxPassword.BorderStyle     = BorderStyle.None;
            textBoxPassword.PreviewKeyDown += EnterPressed;
            //
            // pictureBoxPasswordBorder
            //
            pictureBoxPasswordBorder.Location  = new Point(textBoxPassword.Left - 2, textBoxPassword.Top - 2);
            pictureBoxPasswordBorder.Size      = new Size(textBoxPassword.Width + 4, textBoxPassword.Height - 3);
            pictureBoxPasswordBorder.BackColor = Color.White;
            //
            // pictureBoxLoginBorder
            //
            pictureBoxLoginBorder.Location  = new Point(textBoxLogin.Left - 2, textBoxLogin.Top - 2);
            pictureBoxLoginBorder.Size      = new Size(textBoxLogin.Width + 4, textBoxLogin.Height - 3);
            pictureBoxLoginBorder.BackColor = Color.White;
            //
            // pictureBoxAuthenticationBorder
            //
            pictureBoxAuthenticationBorder.Location  = new Point(185, 49);
            pictureBoxAuthenticationBorder.Size      = new Size(comboBoxAuthentication.Width + 2, 28);
            pictureBoxAuthenticationBorder.BackColor = Color.White;
            //
            // pictureBoxServerNameBorder
            //
            pictureBoxServerNameBorder.Location  = new Point(185, 9);
            pictureBoxServerNameBorder.Size      = new Size(comboBoxServerName.Width + 2, 28);
            pictureBoxServerNameBorder.BackColor = Color.White;
            //
            // buttonConnect
            //
            buttonConnect.Size = buttonSize;
            //buttonConnect.Location = new Point(Width - 3*PADDING - 3*buttonSize.Width,5*PADDING + 4*textBoxSize.Height);
            buttonConnect.FlatStyle = FlatStyle.Flat;
            buttonConnect.FlatAppearance.BorderSize         = 0;
            buttonConnect.FlatAppearance.MouseOverBackColor = Color.FromArgb(255, 186, 0);
            buttonConnect.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 180, 0);
            buttonConnect.BackColor = Color.FromArgb(255, 138, 0);
            buttonConnect.Location  = new Point(186, 110);
            buttonConnect.Font      = buttonFont;
            buttonConnect.ForeColor = Color.White;
            buttonConnect.TabIndex  = 3;
            buttonConnect.Text      = "Connect";
            buttonConnect.Click    += ButtonConnectClick;
            buttonConnect.Enabled   = false;
            //
            // buttonExit
            //
            buttonExit.Size = buttonSize;
            //buttonExit.Location = new Point(Width - 2*PADDING - 2*buttonSize.Width,5*PADDING + 4*textBoxSize.Height);
            buttonExit.FlatStyle = FlatStyle.Flat;
            buttonExit.FlatAppearance.BorderSize         = 0;
            buttonExit.FlatAppearance.MouseOverBackColor = Color.FromArgb(255, 186, 0);
            buttonExit.FlatAppearance.MouseDownBackColor = Color.FromArgb(255, 180, 0);
            buttonExit.BackColor = Color.FromArgb(255, 138, 0);
            buttonExit.Location  = new Point(186 + PADDING / 2 + buttonConnect.Width, 110);
            buttonExit.Font      = buttonFont;
            buttonExit.ForeColor = Color.White;
            buttonExit.TabIndex  = 4;
            buttonExit.Text      = "Exit";
            buttonExit.Click    += ButtonExitClick;
            //
            // linkHelp
            //
            linkHelp.Size             = buttonSize;
            linkHelp.Location         = new Point(376, 17);
            linkHelp.Font             = labelFont;
            linkHelp.TopicId          = "system-login.html";
            linkHelp.ActiveLinkColor  = Color.White;
            linkHelp.VisitedLinkColor = Color.White;
            linkHelp.LinkColor        = Color.White;
            linkHelp.ForeColor        = Color.Transparent;
            linkHelp.TabIndex         = 0;
            linkHelp.Text             = "Help";
            linkHelp.Visible          = false;
            linkHelp.Click           += LinkHelpClick;
            //
            // linkLabelShowConnectionSettings
            //
            linkLabelShowConnectionSettings.Text             = "Connection settings";
            linkLabelShowConnectionSettings.ActiveLinkColor  = Color.White;
            linkLabelShowConnectionSettings.VisitedLinkColor = Color.White;
            linkLabelShowConnectionSettings.LinkColor        = Color.White;
            linkLabelShowConnectionSettings.ForeColor        = Color.Transparent;
            linkLabelShowConnectionSettings.Location         = new Point(0, 115);
            linkLabelShowConnectionSettings.Font             = new Font(labelFont.FontFamily, labelFont.Size - 1);
            linkLabelShowConnectionSettings.AutoSize         = true;
            linkLabelShowConnectionSettings.TabStop          = true;


            linkLabelShowConnectionSettings.Visible = false;



            linkLabelShowConnectionSettings.PreviewKeyDown += linkLabelShowConnectionSettings_PreviewKeyDown;
            linkLabelShowConnectionSettings.Click          += LinkLabelShowConnectionSettingsClick;

            panelLoginPasswordContainer.Controls.Add(labelLogin);
            panelLoginPasswordContainer.Controls.Add(labelPassword);
            panelLoginPasswordContainer.Controls.Add(textBoxLogin);
            panelLoginPasswordContainer.Controls.Add(textBoxPassword);
            panelLoginPasswordContainer.Controls.Add(pictureBoxPasswordBorder);
            panelLoginPasswordContainer.Controls.Add(pictureBoxLoginBorder);
            panelLoginPasswordContainer.Controls.Add(buttonConnect);
            panelLoginPasswordContainer.Controls.Add(buttonExit);
            panelLoginPasswordContainer.Controls.Add(linkLabelShowConnectionSettings);

            panelConnectionSettingsContainer.Controls.Add(labelServerName);
            panelConnectionSettingsContainer.Controls.Add(labelAuthentication);
            panelConnectionSettingsContainer.Controls.Add(comboBoxServerName);
            panelConnectionSettingsContainer.Controls.Add(comboBoxAuthentication);
            panelConnectionSettingsContainer.Controls.Add(pictureBoxAuthenticationBorder);
            panelConnectionSettingsContainer.Controls.Add(pictureBoxServerNameBorder);

            Controls.Add(panelLoginPasswordContainer);
            Controls.Add(panelConnectionSettingsContainer);
            Controls.Add(labelTitle);
            Controls.Add(linkHelp);
        }
Esempio n. 45
0
    public Journal(Level level) : base()
    {
        open          = new Sound("opening_journal_shop_sound.wav");
        this.level    = level;
        freshFish     = new List <Fish>();
        seaFish       = new List <Fish>();
        deepFish      = new List <Fish>();
        buttons       = new List <Button>();
        freshButtons  = new List <Button>();
        seaButtons    = new List <Button>();
        deepButtons   = new List <Button>();
        categories    = new List <Button>();
        fishSprites   = new List <Sprite>();
        freshSprites  = new List <Sprite>();
        seaSprites    = new List <Sprite>();
        deepSprites   = new List <Sprite>();
        journalButton = new Sprite("journal_icon.png");
        journalButton.SetScaleXY(0.25f);
        journalButton.SetXY(game.width - 130, game.height - 400);
        close = new Sprite("cross1.png");
        close.SetScaleXY(0.1f);
        journal = new Sprite("journalitself.png");
        journal.SetScaleXY(1.8f);
        journal.SetXY(game.width / 2 - journal.width / 2, game.height / 2 - journal.height / 2);
        close.SetXY(journal.x + journal.width - 120, journal.y + 40);
        canvas            = new Canvas(journal.width, journal.height);
        descriptionCanvas = new Canvas(550, 500);
        category          = 1;
        window            = new Sprite("window_PNG17666.png");
        window.SetScaleXY(0.9f, 0.5f);
        window.SetXY(journal.x + 660, journal.y + 120);
        window.alpha = 0f;
        AddChild(journalButton);
        AddChild(journal);
        AddChild(close);
        AddChild(canvas);
        AddChild(descriptionCanvas);
        AddChild(window);
        journal.alpha = 0f;
        close.alpha   = 0f;
        titleFont     = new Font("MV Boli", 48);
        textFont      = new Font("MV Boli", 16);
        inWindow      = false;
        for (int i = 0; i < 3; i++)
        {
            string text = "";
            switch (i)
            {
            case 0:
                text = "Fresh Water";
                break;

            case 1:
                text = "Sea Water";
                break;

            case 2:
                text = "Deep Water";
                break;
            }
            Button button = new Button(new Vec2(journal.x + 50 + 180 * i, journal.y + 50), 150, 75, text);
            categories.Add(button);
        }
    }
Esempio n. 46
0
 // Use this for initialization
 void Start()
 {
     button = GetComponent <Button>();
     button.onClick.AddListener(onBackClick);
 }
Esempio n. 47
0
 // Start is called before the first frame update
 void Start()
 {
     menuButton = GetComponent <Button>();
     menuButton.onClick.AddListener(ButtonMenu);
 }
Esempio n. 48
0
        protected override void DidActivate(bool firstActivation, ActivationType activationType)
        {
            if (firstActivation)
            {
                if(activationType == ActivationType.AddedToHierarchy)
                {
                    _serverTableCellInstance = Resources.FindObjectsOfTypeAll<LevelListTableCell>().First(x => (x.name == "LevelListTableCell"));

                    _selectText = BeatSaberUI.CreateText(rectTransform, "Select ServerHub", new Vector2(0f, 35.5f));
                    _selectText.alignment = TextAlignmentOptions.Center;
                    _selectText.fontSize = 7f;

                    _backButton = BeatSaberUI.CreateBackButton(rectTransform);
                    _backButton.onClick.AddListener(delegate () { didFinishEvent?.Invoke(); });

                    _pageUpButton = Instantiate(Resources.FindObjectsOfTypeAll<Button>().Last(x => (x.name == "PageUpButton")), rectTransform, false);
                    (_pageUpButton.transform as RectTransform).anchorMin = new Vector2(0.5f, 1f);
                    (_pageUpButton.transform as RectTransform).anchorMax = new Vector2(0.5f, 1f);
                    (_pageUpButton.transform as RectTransform).anchoredPosition = new Vector2(0f, -14.5f);
                    (_pageUpButton.transform as RectTransform).sizeDelta = new Vector2(40f, 10f);
                    _pageUpButton.interactable = true;
                    _pageUpButton.onClick.AddListener(delegate ()
                    {
                        _serverTableViewScroller.PageScrollUp();
                        _serverHubsTableView.RefreshScrollButtons();
                    });
                    _pageUpButton.interactable = false;

                    _pageDownButton = Instantiate(Resources.FindObjectsOfTypeAll<Button>().First(x => (x.name == "PageDownButton")), rectTransform, false);
                    (_pageDownButton.transform as RectTransform).anchorMin = new Vector2(0.5f, 0f);
                    (_pageDownButton.transform as RectTransform).anchorMax = new Vector2(0.5f, 0f);
                    (_pageDownButton.transform as RectTransform).anchoredPosition = new Vector2(0f, 9f);
                    (_pageDownButton.transform as RectTransform).sizeDelta = new Vector2(40f, 10f);
                    _pageDownButton.interactable = true;
                    _pageDownButton.onClick.AddListener(delegate ()
                    {
                        _serverTableViewScroller.PageScrollDown();
                        _serverHubsTableView.RefreshScrollButtons();
                    });
                    _pageDownButton.interactable = false;

                    tableGameObject = new GameObject("CustomTableView");
                    tableGameObject.SetActive(false);
                    _serverHubsTableView = tableGameObject.AddComponent<TableView>();
                    _serverHubsTableView.gameObject.AddComponent<RectMask2D>();
                    _serverHubsTableView.transform.SetParent(rectTransform, false);
                    (_serverHubsTableView.transform as RectTransform).anchorMin = new Vector2(0.3f, 0.5f);
                    (_serverHubsTableView.transform as RectTransform).anchorMax = new Vector2(0.7f, 0.5f);
                    (_serverHubsTableView.transform as RectTransform).sizeDelta = new Vector2(0f, 50f);
                    (_serverHubsTableView.transform as RectTransform).anchoredPosition = new Vector3(0f, -6f);

                    _serverHubsTableView.SetPrivateField("_isInitialized", false);
                    _serverHubsTableView.SetPrivateField("_preallocatedCells", new TableView.CellsGroup[0]);

                    RectTransform viewport = new GameObject("Viewport").AddComponent<RectTransform>(); //Make a Viewport RectTransform
                    viewport.SetParent(_serverHubsTableView.transform as RectTransform, false); //It expects one from a ScrollRect, so we have to make one ourselves.
                    viewport.sizeDelta = new Vector2(0f, 50f);

                    _serverHubsTableView.Init();
                    _serverHubsTableView.SetPrivateField("_scrollRectTransform", viewport);   
                    
                    _serverHubsTableView.dataSource = this;                    
                    _serverHubsTableView.didSelectCellWithIdxEvent += ServerHubs_didSelectRowEvent;
                    tableGameObject.SetActive(true);
                    ReflectionUtil.SetPrivateField(_serverHubsTableView, "_pageUpButton", _pageUpButton);
                    ReflectionUtil.SetPrivateField(_serverHubsTableView, "_pageDownButton", _pageDownButton);
                    _serverHubsTableView.ScrollToCellWithIdx(0, TableViewScroller.ScrollPositionType.Beginning, false);
                    _serverTableViewScroller = _serverHubsTableView.GetPrivateField<TableViewScroller>("_scroller");
                }
            }
            else
            {
                _serverHubsTableView.dataSource = this;
            }
        }
Esempio n. 49
0
        public Form1()
        {
            InitializeComponent();

            GroupBox groupBox1 = new GroupBox();
            GroupBox groupBox2 = new GroupBox();
            RadioButton radio1 = new RadioButton();
            RadioButton radio2 = new RadioButton();
            RadioButton radio3 = new RadioButton();
            RadioButton radio4 = new RadioButton();
            Button btn = new Button();


            groupBox1.Location = new Point(170, 10);
            groupBox2.Location = new Point(200, 10);
            radio1.Location = new Point(170,30);
            radio2.Location = new Point(170, 60);
            radio1.Location = new Point(170, 30);
            radio2.Location = new Point(170, 60);
            btn.Location = new Point(170, 120);


            CheckBox checkBox1 = new CheckBox();
            CheckBox checkBox2 = new CheckBox();
            CheckBox checkBox3 = new CheckBox();
            Button button = new Button();

            checkBox1.Text = "감자";
            checkBox2.Text = "고구마";
            checkBox3.Text = "토마토";
            button.Text = "클릭";
            button.Name = "check";

            checkBox1.Location = new Point(10, 10);
            checkBox2.Location = new Point(10, 40);
            checkBox3.Location = new Point(10, 70);
            button.Location = new Point(10, 100);

            button.Click += ButtonClick;

            Controls.Add(checkBox1);
            Controls.Add(checkBox2);
            Controls.Add(checkBox3);
            Controls.Add(button);


            RadioButton rb1 = new RadioButton();
            RadioButton rb2 = new RadioButton();
            RadioButton rb3 = new RadioButton();
            Button btn2 = new Button();
            rb1.Text = "감자";
            rb2.Text = "고구마";
            rb3.Text = "토마토";
            btn2.Name = "radio";
            btn2.Text = "클릭";
            rb1.Location = new Point(140, 10);
            rb2.Location = new Point(140, 40);
            rb3.Location = new Point(140, 70);
            btn2.Location = new Point(140, 100);

            btn2.Click += ButtonClick;

            Controls.Add(rb1);
            Controls.Add(rb2);
            Controls.Add(rb3);
            Controls.Add(btn2);
        }
Esempio n. 50
0
        private void InitializeComponent()
        {
            ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(PostTTVForm));

            this.label8                       = new Label();
            this.lineOneTextBox               = new TextBox();
            this.lineTwoTextBox               = new TextBox();
            this.label9                       = new Label();
            this.lineThreeTextBox             = new TextBox();
            this.label10                      = new Label();
            this.lineFourTextBox              = new TextBox();
            this.label11                      = new Label();
            this.groupBox2                    = new GroupBox();
            this.trungCheckBox                = new CheckBox();
            this.hanVietCheckBox              = new CheckBox();
            this.vietCheckBox                 = new CheckBox();
            this.vietPhraseOneMeaningCheckBox = new CheckBox();
            this.groupBox4                    = new GroupBox();
            this.label6                       = new Label();
            this.label5                       = new Label();
            this.label4                       = new Label();
            this.label3                       = new Label();
            this.groupBox5                    = new GroupBox();
            this.thaoLuanTextBox              = new TextBox();
            this.label1                       = new Label();
            this.copyToClipboardButton        = new Button();
            this.postContentRichTextBox       = new RichTextBox();
            this.label2                       = new Label();
            this.groupBox2.SuspendLayout();
            this.groupBox4.SuspendLayout();
            this.groupBox5.SuspendLayout();
            base.SuspendLayout();
            this.label8.BackColor              = SystemColors.GradientInactiveCaption;
            this.label8.Font                   = new Font("Arial", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.label8.Location               = new Point(6, 16);
            this.label8.Name                   = "label8";
            this.label8.Size                   = new Size(74, 22);
            this.label8.TabIndex               = 21;
            this.label8.Text                   = "Dòng 1:";
            this.label8.TextAlign              = ContentAlignment.MiddleRight;
            this.lineOneTextBox.Location       = new Point(86, 18);
            this.lineOneTextBox.Name           = "lineOneTextBox";
            this.lineOneTextBox.Size           = new Size(434, 20);
            this.lineOneTextBox.TabIndex       = 0;
            this.lineOneTextBox.TextChanged   += new EventHandler(this.LineOneTextBoxTextChanged);
            this.lineTwoTextBox.Location       = new Point(86, 44);
            this.lineTwoTextBox.Name           = "lineTwoTextBox";
            this.lineTwoTextBox.Size           = new Size(434, 20);
            this.lineTwoTextBox.TabIndex       = 1;
            this.lineTwoTextBox.TextChanged   += new EventHandler(this.LineOneTextBoxTextChanged);
            this.label9.BackColor              = SystemColors.GradientInactiveCaption;
            this.label9.Font                   = new Font("Arial", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.label9.Location               = new Point(6, 42);
            this.label9.Name                   = "label9";
            this.label9.Size                   = new Size(74, 22);
            this.label9.TabIndex               = 23;
            this.label9.Text                   = "Dòng 2:";
            this.label9.TextAlign              = ContentAlignment.MiddleRight;
            this.lineThreeTextBox.Location     = new Point(86, 70);
            this.lineThreeTextBox.Name         = "lineThreeTextBox";
            this.lineThreeTextBox.Size         = new Size(434, 20);
            this.lineThreeTextBox.TabIndex     = 2;
            this.lineThreeTextBox.TextChanged += new EventHandler(this.LineOneTextBoxTextChanged);
            this.label10.BackColor             = SystemColors.GradientInactiveCaption;
            this.label10.Font                  = new Font("Arial", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.label10.Location              = new Point(6, 68);
            this.label10.Name                  = "label10";
            this.label10.Size                  = new Size(74, 22);
            this.label10.TabIndex              = 25;
            this.label10.Text                  = "Dòng 3:";
            this.label10.TextAlign             = ContentAlignment.MiddleRight;
            this.lineFourTextBox.Location      = new Point(86, 96);
            this.lineFourTextBox.Name          = "lineFourTextBox";
            this.lineFourTextBox.Size          = new Size(434, 20);
            this.lineFourTextBox.TabIndex      = 3;
            this.lineFourTextBox.TextChanged  += new EventHandler(this.LineOneTextBoxTextChanged);
            this.label11.BackColor             = SystemColors.GradientInactiveCaption;
            this.label11.Font                  = new Font("Arial", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0);
            this.label11.Location              = new Point(6, 94);
            this.label11.Name                  = "label11";
            this.label11.Size                  = new Size(74, 22);
            this.label11.TabIndex              = 27;
            this.label11.Text                  = "Dòng 4:";
            this.label11.TextAlign             = ContentAlignment.MiddleRight;
            this.groupBox2.Controls.Add(this.trungCheckBox);
            this.groupBox2.Controls.Add(this.hanVietCheckBox);
            this.groupBox2.Controls.Add(this.vietCheckBox);
            this.groupBox2.Controls.Add(this.vietPhraseOneMeaningCheckBox);
            this.groupBox2.Location       = new Point(10, 156);
            this.groupBox2.Name           = "groupBox2";
            this.groupBox2.Size           = new Size(594, 59);
            this.groupBox2.TabIndex       = 3;
            this.groupBox2.TabStop        = false;
            this.groupBox2.Text           = "Nội Dung (Spoiler)";
            this.trungCheckBox.Checked    = true;
            this.trungCheckBox.CheckState = CheckState.Checked;
            this.trungCheckBox.Location   = new Point(456, 19);
            this.trungCheckBox.Name       = "trungCheckBox";
            this.trungCheckBox.Size       = new Size(123, 24);
            this.trungCheckBox.TabIndex   = 2;
            this.trungCheckBox.Text       = "Tiếng Trung";
            this.trungCheckBox.UseVisualStyleBackColor = true;
            this.trungCheckBox.CheckedChanged         += new EventHandler(this.LineOneTextBoxTextChanged);
            this.hanVietCheckBox.Checked    = true;
            this.hanVietCheckBox.CheckState = CheckState.Checked;
            this.hanVietCheckBox.Location   = new Point(315, 19);
            this.hanVietCheckBox.Name       = "hanVietCheckBox";
            this.hanVietCheckBox.Size       = new Size(123, 24);
            this.hanVietCheckBox.TabIndex   = 1;
            this.hanVietCheckBox.Text       = "Hán Việt";
            this.hanVietCheckBox.UseVisualStyleBackColor = true;
            this.hanVietCheckBox.CheckedChanged         += new EventHandler(this.LineOneTextBoxTextChanged);
            this.vietCheckBox.Location = new Point(6, 19);
            this.vietCheckBox.Name     = "vietCheckBox";
            this.vietCheckBox.Size     = new Size(123, 24);
            this.vietCheckBox.TabIndex = 0;
            this.vietCheckBox.Text     = "Việt";
            this.vietCheckBox.UseVisualStyleBackColor    = true;
            this.vietCheckBox.CheckedChanged            += new EventHandler(this.LineOneTextBoxTextChanged);
            this.vietPhraseOneMeaningCheckBox.Checked    = true;
            this.vietPhraseOneMeaningCheckBox.CheckState = CheckState.Checked;
            this.vietPhraseOneMeaningCheckBox.Location   = new Point(146, 19);
            this.vietPhraseOneMeaningCheckBox.Name       = "vietPhraseOneMeaningCheckBox";
            this.vietPhraseOneMeaningCheckBox.Size       = new Size(149, 24);
            this.vietPhraseOneMeaningCheckBox.TabIndex   = 0;
            this.vietPhraseOneMeaningCheckBox.Text       = "VietPhrase một nghĩa";
            this.vietPhraseOneMeaningCheckBox.UseVisualStyleBackColor = true;
            this.vietPhraseOneMeaningCheckBox.CheckedChanged         += new EventHandler(this.LineOneTextBoxTextChanged);
            this.groupBox4.Controls.Add(this.label6);
            this.groupBox4.Controls.Add(this.label5);
            this.groupBox4.Controls.Add(this.label4);
            this.groupBox4.Controls.Add(this.label3);
            this.groupBox4.Controls.Add(this.label8);
            this.groupBox4.Controls.Add(this.lineOneTextBox);
            this.groupBox4.Controls.Add(this.label9);
            this.groupBox4.Controls.Add(this.lineTwoTextBox);
            this.groupBox4.Controls.Add(this.lineFourTextBox);
            this.groupBox4.Controls.Add(this.label10);
            this.groupBox4.Controls.Add(this.label11);
            this.groupBox4.Controls.Add(this.lineThreeTextBox);
            this.groupBox4.Location = new Point(10, 12);
            this.groupBox4.Name     = "groupBox4";
            this.groupBox4.Size     = new Size(594, 127);
            this.groupBox4.TabIndex = 2;
            this.groupBox4.TabStop  = false;
            this.groupBox4.Text     = "Tiêu Đề";
            this.label6.Location    = new Point(526, 96);
            this.label6.Name        = "label6";
            this.label6.Size        = new Size(62, 20);
            this.label6.TabIndex    = 28;
            this.label6.Text        = "(Converter)";
            this.label6.TextAlign   = ContentAlignment.MiddleLeft;
            this.label5.Location    = new Point(526, 70);
            this.label5.Name        = "label5";
            this.label5.Size        = new Size(62, 20);
            this.label5.TabIndex    = 28;
            this.label5.Text        = "(Tác giả)";
            this.label5.TextAlign   = ContentAlignment.MiddleLeft;
            this.label4.Location    = new Point(526, 44);
            this.label4.Name        = "label4";
            this.label4.Size        = new Size(62, 20);
            this.label4.TabIndex    = 28;
            this.label4.Text        = "(Chương)";
            this.label4.TextAlign   = ContentAlignment.MiddleLeft;
            this.label3.Location    = new Point(526, 17);
            this.label3.Name        = "label3";
            this.label3.Size        = new Size(62, 20);
            this.label3.TabIndex    = 28;
            this.label3.Text        = "(Quyển)";
            this.label3.TextAlign   = ContentAlignment.MiddleLeft;
            this.groupBox5.Controls.Add(this.thaoLuanTextBox);
            this.groupBox5.Controls.Add(this.label1);
            this.groupBox5.Location           = new Point(10, 234);
            this.groupBox5.Name               = "groupBox5";
            this.groupBox5.Size               = new Size(594, 70);
            this.groupBox5.TabIndex           = 4;
            this.groupBox5.TabStop            = false;
            this.groupBox5.Text               = "Link đến Thảo Luận";
            this.thaoLuanTextBox.Location     = new Point(6, 19);
            this.thaoLuanTextBox.Name         = "thaoLuanTextBox";
            this.thaoLuanTextBox.Size         = new Size(573, 20);
            this.thaoLuanTextBox.TabIndex     = 4;
            this.thaoLuanTextBox.TextChanged += new EventHandler(this.LineOneTextBoxTextChanged);
            this.label1.ForeColor             = SystemColors.ControlDarkDark;
            this.label1.Location              = new Point(6, 45);
            this.label1.Name     = "label1";
            this.label1.Size     = new Size(573, 22);
            this.label1.TabIndex = 3;
            this.label1.Text     = "Ví dụ: Mãng Hoang Kỷ là http://www.tangthuvien.com/forum/showthread.php?t=95472";
            this.copyToClipboardButton.Location = new Point(220, 563);
            this.copyToClipboardButton.Name     = "copyToClipboardButton";
            this.copyToClipboardButton.Size     = new Size(179, 34);
            this.copyToClipboardButton.TabIndex = 5;
            this.copyToClipboardButton.Text     = "&Chép vào Clipboard và Đóng";
            this.copyToClipboardButton.UseVisualStyleBackColor = true;
            this.copyToClipboardButton.Click      += new EventHandler(this.CopyToClipboardButtonClick);
            this.postContentRichTextBox.Location   = new Point(10, 348);
            this.postContentRichTextBox.Name       = "postContentRichTextBox";
            this.postContentRichTextBox.ReadOnly   = true;
            this.postContentRichTextBox.ScrollBars = RichTextBoxScrollBars.Vertical;
            this.postContentRichTextBox.Size       = new Size(594, 200);
            this.postContentRichTextBox.TabIndex   = 7;
            this.postContentRichTextBox.Text       = "";
            this.label2.Location     = new Point(10, 322);
            this.label2.Name         = "label2";
            this.label2.Size         = new Size(594, 23);
            this.label2.TabIndex     = 8;
            this.label2.Text         = "/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////";
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode       = AutoScaleMode.Font;
            base.ClientSize          = new Size(616, 609);
            base.Controls.Add(this.label2);
            base.Controls.Add(this.postContentRichTextBox);
            base.Controls.Add(this.copyToClipboardButton);
            base.Controls.Add(this.groupBox4);
            base.Controls.Add(this.groupBox5);
            base.Controls.Add(this.groupBox2);
            base.Icon          = (Icon)componentResourceManager.GetObject("$this.Icon");
            base.MaximizeBox   = false;
            base.MinimizeBox   = false;
            base.Name          = "PostTTVForm";
            base.StartPosition = FormStartPosition.CenterParent;
            this.Text          = "Post to TangThuVien.com";
            this.groupBox2.ResumeLayout(false);
            this.groupBox4.ResumeLayout(false);
            this.groupBox4.PerformLayout();
            this.groupBox5.ResumeLayout(false);
            this.groupBox5.PerformLayout();
            base.ResumeLayout(false);
        }